Merge branch 'base' into develop

This commit is contained in:
Daniil Krymov
2023-01-02 22:34:47 +01:00
62 changed files with 864 additions and 459 deletions

View File

@ -1,21 +1,21 @@
{{- if not (.Param "hideFooter") }}
<footer class="footer">
{{- if .Site.Copyright }}
<span>{{ .Site.Copyright | markdownify }}</span>
{{- if site.Copyright }}
<span>{{ site.Copyright | markdownify }}</span>
{{- else }}
<span>&copy; {{ if $.Site.Params.launchYear }}{{ .Site.Params.launchYear }}{{ end }}{{ now.Year }} {{ .Site.Title | default .Site.Params.label.text }}</span>
<span>&copy; {{ if site.Params.launchYear }}{{ site.Params.launchYear }}{{ end }}{{ now.Year }} {{ site.Title | default site.Params.label.text }}</span>
{{- end }}
{{- if not $.Site.Params.hideCredits }}
{{- if not site.Params.hideCredits }}
<span>
Powered by
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &
<a href="https://git.io/hugopapermod" rel="noopener" target="_blank">PaperMod</a>
<a href="https://github.com/adityatelange/hugo-PaperMod/" rel="noopener" target="_blank">PaperMod</a>
</span>
{{- end }}
</footer>
{{- end }}
{{- if (not .Site.Params.disableScrollToTop) }}
{{- if (not site.Params.disableScrollToTop) }}
<a href="#top" aria-label="go to top" title="Go to Top (Alt + G)" class="top-link" id="top-link" accesskey="g">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6" fill="currentColor">
<path d="M12 6H0l6-6z" />
@ -55,7 +55,7 @@
</script>
{{- if (not .Site.Params.disableScrollToTop) }}
{{- if (not site.Params.disableScrollToTop) }}
<script>
var mybutton = document.getElementById("top-link");
window.onscroll = function () {
@ -71,7 +71,7 @@
</script>
{{- end }}
{{- if (not .Site.Params.disableThemeToggle) }}
{{- if (not site.Params.disableThemeToggle) }}
<script>
document.getElementById("theme-toggle").addEventListener("click", () => {
if (document.body.className.includes("dark")) {
@ -93,12 +93,12 @@
const copybutton = document.createElement('button');
copybutton.classList.add('copy-code');
copybutton.innerText = '{{- i18n "code_copy" | default "copy" }}';
copybutton.innerHTML = '{{- i18n "code_copy" | default "copy" }}';
function copyingDone() {
copybutton.innerText = '{{- i18n "code_copied" | default "copied!" }}';
copybutton.innerHTML = '{{- i18n "code_copied" | default "copied!" }}';
setTimeout(() => {
copybutton.innerText = '{{- i18n "code_copy" | default "copy" }}';
copybutton.innerHTML = '{{- i18n "code_copy" | default "copy" }}';
}, 2000);
}