Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wangchucheng/hugo-eureka.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunle Qian <calebqian.uiuc@gmail.com>2021-03-06 18:45:06 +0300
committerGitHub <noreply@github.com>2021-03-06 18:45:06 +0300
commit36689965a873bbf0853f1a98857e1ab8338cc860 (patch)
treec8e621a6531b78da3f108ee9398f406e8c6ee2d8 /layouts
parent4d319a1c3594e8efe16b47b2c0ced5716c0237e5 (diff)
refactor: add translations to color scheme list (#76)
* Add archive layout * Correct posts range Correct posts range in custom theme's archive layout so that doc pages don't get accidentally archived in posts archive layout. * Force HTTPS * Add Chinese support for light switch * Normalize Archive page CSS style * Separate archive content from article div * Remove archive layout for feature exclusion * refactor: change translations Co-authored-by: Wang Chucheng <me@wangchucheng.com>
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/header.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index eaf53d5..c782397 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -45,9 +45,9 @@
</div>
<div class="absolute flex flex-col left-0 md:left-auto right-auto md:right-0 hidden bg-secondary-bg w-48 rounded py-2 border border-tertiary-bg cursor-pointer z-40"
id='lightDarkOptions'>
- <span class="px-4 py-1 hover:text-eureka">Light</span>
- <span class="px-4 py-1 hover:text-eureka">Dark</span>
- <span class="px-4 py-1 hover:text-eureka">Auto</span>
+ <span class="px-4 py-1 hover:text-eureka" name="Light">{{i18n "light"}}</span>
+ <span class="px-4 py-1 hover:text-eureka" name="Dark">{{i18n "dark"}}</span>
+ <span class="px-4 py-1 hover:text-eureka" name="Auto">{{i18n "auto"}}</span>
</div>
</div>
@@ -118,7 +118,7 @@
element.firstElementChild.classList.add('fa-moon')
}
{{- end }}
-
+
document.addEventListener('DOMContentLoaded', () => {
getcolorscheme();
switchBurger();
@@ -126,4 +126,4 @@
switchLanguage()
{{- end }}
});
-</script> \ No newline at end of file
+</script>