Merge pull request #130 from jixunmoe/master

allow emoji to be used in i18n override
This commit is contained in:
Dmitry Kolosov 2022-01-03 12:08:21 +03:00 committed by GitHub
commit c716d2f396
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -10,7 +10,7 @@
{{ end }}
</head>
<body>
<a class="skip-main" href="#main">{{ i18n "skipToContent" | humanize }}</a>
<a class="skip-main" href="#main">{{ i18n "skipToContent" }}</a>
<div class="container">
<header class="common-header">
{{ block "header" . }}

View File

@ -15,7 +15,7 @@
{{ end }}
<div class="copyright">
<p>© {{ if isset .Site.Params "author"}}{{ .Site.Params.author }}, {{end}}{{ now.Year }}<br>
{{ i18n "powered" | humanize }} <a target="_blank" rel="noopener noreferrer" href="https://gohugo.io/">Hugo</a>, {{ i18n "theme" }} <a target="_blank" rel="noopener noreferrer" href="https://github.com/mitrichius/hugo-theme-anubis">Anubis</a>.<br>
{{ i18n "powered" }} <a target="_blank" rel="noopener noreferrer" href="https://gohugo.io/">Hugo</a>, {{ i18n "theme" }} <a target="_blank" rel="noopener noreferrer" href="https://github.com/mitrichius/hugo-theme-anubis">Anubis</a>.<br>
{{ partial "footer-extra.html" . }}
</p>
</div>

View File

@ -13,7 +13,7 @@
{{ end }}
{{ if and (.Truncated) (.Site.Params.readMore) }}
<div class="read-more">
<a class="u-url" href="{{ .RelPermalink }}">{{ i18n "readMore" | humanize }}</a>
<a class="u-url" href="{{ .RelPermalink }}">{{ i18n "readMore" }}</a>
</div>
{{ end }}

View File

@ -5,7 +5,7 @@
{{ if not (in (slice "light-without-switcher" "dark-without-switcher" "auto-without-switcher") $style) }}
<button class="theme-switcher">
{{ i18n "darkTheme" | humanize }}
{{ i18n "darkTheme" }}
</button>
<script>
@ -54,7 +54,7 @@
function changeButtonText()
{
switchButton.textContent = currentTheme == 'dark' ? {{ i18n "lightTheme" | humanize }} : {{ i18n "darkTheme" | humanize }}
switchButton.textContent = currentTheme == 'dark' ? {{ i18n "lightTheme" }} : {{ i18n "darkTheme" }}
}
function switchTheme(e) {