diff --git a/LICENSE b/LICENSE index a4d70877..9d6f9884 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,7 @@ The MIT License (MIT) Copyright (c) 2018 LIUZHICHAO.COM +Copyright (c) 2019 DILLONZQ.TOP Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/LICENSE.md b/LICENSE.md deleted file mode 100644 index a4d70877..00000000 --- a/LICENSE.md +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2018 LIUZHICHAO.COM - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/assets/css/_common/_section/footer.scss b/assets/css/_common/_section/footer.scss index 16b5e837..03282195 100644 --- a/assets/css/_common/_section/footer.scss +++ b/assets/css/_common/_section/footer.scss @@ -1,9 +1,9 @@ /**Footer**/ - + .copyright { font-size: 14px; } - + #dynamic-to-top { display: none; overflow: hidden; diff --git a/i18n/de.toml b/i18n/de.toml deleted file mode 100644 index 0aadc7a1..00000000 --- a/i18n/de.toml +++ /dev/null @@ -1,70 +0,0 @@ -# Translations for German -# https://gohugo.io/content-management/multilingual/#translation-of-strings - -# Single.html - -[Written] -other = "Geschrieben" - -[by] -other = "durch" - -[with] -other = "mit" - -[on] -other = "auf" - -[in] -other = "im" - -[Author] -other = "Autor" - -[Words] -other = "Wörter" - -[Tag] -other = "Etikett" - -[Home] -other = "Hause" - -[back] -other = "Zurück" - -[minute] -other = "minute" - -[Share] -other = "Aktie" - -# 404.html - -[page] -other = "Seite" - -[not] -other = "nicht" - -[found] -other = "gefunden" - -[return] -other = "Zurückkommen" - -[to] -other = "zu" - -# Pagination - -[More] -other = "Mehr" - -# Related post - -[Related] -other = "Ähnliche" - -[Articles] -other = "Artikel" \ No newline at end of file diff --git a/i18n/en.toml b/i18n/en.toml index 4aeb15a8..d5ddc6f0 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -1,70 +1,71 @@ # Translations for English # https://gohugo.io/content-management/multilingual/#translation-of-strings -# Single.html +# === Post === +[posts] +other = "Posts" +# === Post === -[Written] -other = "Written" - -[by] -other = "by" - -[with] -other = "with" - -[on] -other = "on" - -[in] -other = "in" - -[Author] -other = "Author" - -[Words] -other = "Words" - -[Tag] +# === Taxonomy === +[tag] other = "Tag" -[Home] -other = "Home" +[tags] +other = "Tags" + +[category] +other = "Category" + +[categories] +other = "Categories" +# === Taxonomy === + +# === Pagination === +[More] +other = "More" +# === Pagination === + +# === partials/footer.html === +[powered] +other = "Powered by %s" + +[theme] +other = "Theme - " +# === partials/footer.html === + +# === posts/single.html === +[wrote] +other = "wrote on" + +[wordCount] +other = "about {{ .Count }} words" + +[readingTime] +other = "{{ .Count }} min" + +[author] +other = "Author" + +[lastMod] +other = "Last Modified" + +[share] +other = "Share" + +[license] +other = "License" [back] other = "Back" -[minute] -other = "minute" +[home] +other = "Home" +# === posts/single.html === -[Share] -other = "Share" +# === 404.html === +[pageNotFound] +other = "Page not found" -# 404.html - -[page] -other = "page" - -[not] -other = "not" - -[found] -other = "found" - -[return] -other = "Return" - -[to] -other = "to" - -# Pagination - -[More] -other = "More" - -# Related post - -[Related] -other = "Related" - -[Articles] -other = "Articles" \ No newline at end of file +[backToHome] +other = "Back to Home" +# === 404.html === diff --git a/i18n/eo.toml b/i18n/eo.toml deleted file mode 100644 index fd9f8055..00000000 --- a/i18n/eo.toml +++ /dev/null @@ -1,70 +0,0 @@ -# Translations for Esperanto -# https://gohugo.io/content-management/multilingual/#translation-of-strings - -# Single.html - -[Written] -other = "Skribita" - -[by] -other = "de" - -[with] -other = "kun" - -[on] -other = "il" - -[in] -other = "sur" - -[Author] -other = "Aŭtoro" - -[Words] -other = "Vortoj" - -[Tag] -other = "Tag" - -[Home] -other = "Hejmo" - -[back] -other = "Reen" - -[minute] -other = "minuto" - -[Share] -other = "Kunhavigi" - -# 404.html - -[page] -other = "paĝo" - -[not] -other = "ne" - -[found] -other = "trovita" - -[return] -other = "Revenu" - -[to] -other = "al" - -# Pagination - -[More] -other = "Pli" - -# Related post - -[Related] -other = "Similaj" - -[Articles] -other = "Artikoloj" \ No newline at end of file diff --git a/i18n/es.toml b/i18n/es.toml deleted file mode 100644 index 441cc8f4..00000000 --- a/i18n/es.toml +++ /dev/null @@ -1,70 +0,0 @@ -# Translations for Spanish -# https://gohugo.io/content-management/multilingual/#translation-of-strings - -# Single.html - -[Written] -other = "Escrito" - -[by] -other = "por" - -[with] -other = "con" - -[on] -other = "en" - -[in] -other = "en" - -[Author] -other = "Autor" - -[Words] -other = "Palabras" - -[Tag] -other = "Etiqueta" - -[Home] -other = "Casa" - -[back] -other = "Atrás" - -[minute] -other = "minuto" - -[Share] -other = "Compartir" - -# 404.html - -[page] -other = "página" - -[not] -other = "no" - -[found] -other = "encontrada" - -[return] -other = "Volver" - -[to] -other = "a" - -# Pagination - -[More] -other = "Más" - -# Related post - -[Related] -other = "Artículos" - -[Articles] -other = "Similares" \ No newline at end of file diff --git a/i18n/fr.toml b/i18n/fr.toml deleted file mode 100644 index 30e86590..00000000 --- a/i18n/fr.toml +++ /dev/null @@ -1,70 +0,0 @@ -# Translations for French -# https://gohugo.io/content-management/multilingual/#translation-of-strings - -# Single.html - -[Written] -other = "Écrit" - -[by] -other = "par" - -[with] -other = "avec" - -[on] -other = "sur" - -[in] -other = "dans" - -[Author] -other = "Auteur" - -[Words] -other = "Mots" - -[Tag] -other = "Étiquette" - -[Home] -other = "Accueil" - -[back] -other = "Retour" - -[minute] -other = "minute" - -[Share] -other = "Partager" - -# 404.html - -[page] -other = "Page" - -[not] -other = "non" - -[found] -other = "trouvée" - -[return] -other = "Retourner" - -[to] -other = "à" - -# Pagination - -[More] -other = "Plus" - -# Related post - -[Related] -other = "Articles" - -[Articles] -other = "Similaires" \ No newline at end of file diff --git a/i18n/it.toml b/i18n/it.toml deleted file mode 100644 index 9fc1a02c..00000000 --- a/i18n/it.toml +++ /dev/null @@ -1,71 +0,0 @@ -# Translations for Italian -# https://gohugo.io/content-management/multilingual/#translation-of-strings - -# Single.html - -[Written] -other = "Scritto" - -[by] -other = "da" - -[with] -other = "con" - -[on] -other = "il" - -[in] -other = "in" - -[Author] -other = "Autore" - -[Words] -other = "Parole" - -[Tag] -other = "Tag" - -[Home] -other = "Home" - -[back] -other = "Indietro" - -[minute] -other = "minuto" - -[Share] -other = "Condividi" - - -# 404.html - -[page] -other = "pagina" - -[not] -other = "non" - -[found] -other = "trovata" - -[return] -other = "Torna" - -[to] -other = "alla" - -# Pagination - -[More] -other = "Altro" - -# Related post - -[Related] -other = "Articoli" - -[Articles] -other = "Correlati" \ No newline at end of file diff --git a/i18n/sq.toml b/i18n/sq.toml deleted file mode 100644 index 28c350e8..00000000 --- a/i18n/sq.toml +++ /dev/null @@ -1,71 +0,0 @@ -# Translations for Albanian -# https://gohugo.io/content-management/multilingual/#translation-of-strings - -# Single.html - -[Written] -other = "Shkruar" - -[by] -other = "nga" - -[with] -other = "me" - -[on] -other = "në" - -[in] -other = "në" - -[Author] -other = "Autor" - -[Words] -other = "Fjalë" - -[Tag] -other = "Etiketë" - -[Home] -other = "Shtëpi" - -[back] -other = "Prapa" - -[minute] -other = "minutë" - -[Share] -other = "Pjesë" - - -# 404.html - -[page] -other = "Faqja" - -[not] -other = "nuk u" - -[found] -other = "gjet" - -[return] -other = "Kthehu" - -[to] -other = "në" - -# Pagination - -[More] -other = "më shumë" - -# Related post - -[Related] -other = "Artikuj" - -[Articles] -other = "Të lidhura" \ No newline at end of file diff --git a/i18n/zh.toml b/i18n/zh.toml new file mode 100644 index 00000000..739970e1 --- /dev/null +++ b/i18n/zh.toml @@ -0,0 +1,71 @@ +# Translations for Simplified Chinese +# https://gohugo.io/content-management/multilingual/#translation-of-strings + +# === Post === +[posts] +other = "文章" +# === Post === + +# === Taxonomy === +[tag] +other = "标签" + +[tags] +other = "标签" + +[category] +other = "分类" + +[categories] +other = "分类" +# === Taxonomy === + +# === Pagination === +[More] +other = "更多" +# === Pagination === + +# === partials/footer.html === +[powered] +other = "由 %s 强力驱动" + +[theme] +other = "主题 - " +# === partials/footer.html === + +# === posts/single.html === +[wrote] +other = "创作于" + +[wordCount] +other = "约 {{ .Count }} 字" + +[readingTime] +other = "预计阅读 {{ .Count }} 分钟" + +[author] +other = "作者" + +[lastMod] +other = "上次更新" + +[share] +other = "内容分享" + +[license] +other = "许可协议" + +[back] +other = "返回" + +[home] +other = "主页" +# === posts/single.html === + +# === 404.html === +[pageNotFound] +other = "页面没找到" + +[backToHome] +other = "回到主页" +# === 404.html === diff --git a/layouts/404.html b/layouts/404.html index da1ae411..7efa393d 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,8 +1,8 @@ {{ define "content" }}
/* 404 {{ i18n "page" }} {{ i18n "not" }} {{ i18n "found" }}. */
-↑ {{ i18n "back" }} {{ i18n "to" }} {{ i18n "Home" }} ↑
+/* 404 {{ T "pageNotFound" }}. */
++ {{ T "author" }}: + {{ $author }} +
+ ++ {{ T "lastMod" }}: + {{ $modify_date }} +
+ ++ {{ if and ( $.Param "socialShare" ) (gt (len ($.Param "share")) 0) }} + {{ T "share" }}: + {{ partial "share-links" . }} + {{ end }} +
+ + {{ with .Site.Params.license }} ++ {{ T "license" }}: + {{ . | safeHTML }} +
+ {{ end }} +