Merge pull request #130 from jixunmoe/master
allow emoji to be used in i18n override
This commit is contained in:
commit
c716d2f396
@ -10,7 +10,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<a class="skip-main" href="#main">{{ i18n "skipToContent" | humanize }}</a>
|
<a class="skip-main" href="#main">{{ i18n "skipToContent" }}</a>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<header class="common-header">
|
<header class="common-header">
|
||||||
{{ block "header" . }}
|
{{ block "header" . }}
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="copyright">
|
<div class="copyright">
|
||||||
<p>© {{ if isset .Site.Params "author"}}{{ .Site.Params.author }}, {{end}}{{ now.Year }}<br>
|
<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" . }}
|
{{ partial "footer-extra.html" . }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if and (.Truncated) (.Site.Params.readMore) }}
|
{{ if and (.Truncated) (.Site.Params.readMore) }}
|
||||||
<div class="read-more">
|
<div class="read-more">
|
||||||
<a class="u-url" href="{{ .RelPermalink }}">{{ i18n "readMore" | humanize }}</a>
|
<a class="u-url" href="{{ .RelPermalink }}">{{ i18n "readMore" }}</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{{ if not (in (slice "light-without-switcher" "dark-without-switcher" "auto-without-switcher") $style) }}
|
{{ if not (in (slice "light-without-switcher" "dark-without-switcher" "auto-without-switcher") $style) }}
|
||||||
<button class="theme-switcher">
|
<button class="theme-switcher">
|
||||||
{{ i18n "darkTheme" | humanize }}
|
{{ i18n "darkTheme" }}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -54,7 +54,7 @@
|
|||||||
|
|
||||||
function changeButtonText()
|
function changeButtonText()
|
||||||
{
|
{
|
||||||
switchButton.textContent = currentTheme == 'dark' ? {{ i18n "lightTheme" | humanize }} : {{ i18n "darkTheme" | humanize }}
|
switchButton.textContent = currentTheme == 'dark' ? {{ i18n "lightTheme" }} : {{ i18n "darkTheme" }}
|
||||||
}
|
}
|
||||||
|
|
||||||
function switchTheme(e) {
|
function switchTheme(e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user