diff --git a/README.md b/README.md index 99ccf97..30f9673 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Anubis Theme for Hugo +# Anubis Theme for Hugo [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT) [![Donate](https://img.shields.io/badge/Donate-PayPal-blue.svg)](https://www.paypal.com/paypalme/mitrichius/1) Anubis is a simple minimalist theme for [Hugo blog engine](https://gohugo.io/). @@ -20,6 +20,7 @@ Anubis is a simple minimalist theme for [Hugo blog engine](https://gohugo.io/). - Robots.txt - Favorite posts - Pagination on post single page +- Optional "Read more" link ## Installation @@ -66,6 +67,7 @@ params: dateFormat: "2006-01-02" paginationSinglePost: true style: light-without-switcher + readMore: false markup: goldmark: @@ -113,7 +115,7 @@ Enabled by `paginationSinglePost` param in `params` section of config. ## Contributing -If you find a bug or have an idea for a feature, feel free to write an [issue](https://github.com/mitrichius/hugo-theme-anubis/issues). +If you find a bug or have an idea for a feature, feel free to write an [issue](https://github.com/mitrichius/hugo-theme-anubis/issues) or make a PR. ## TODO See [issues](https://github.com/mitrichius/hugo-theme-anubis/issues). @@ -121,5 +123,5 @@ See [issues](https://github.com/mitrichius/hugo-theme-anubis/issues). ## License MIT -(c) Dmitry Kolosov +© Dmitry Kolosov 2020 diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 817f7a9..b3fb036 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -16,6 +16,7 @@ googleAnalytics = "" dateFormat = "2006-01-02" paginationSinglePost = true style = "light-without-switcher" + readMore = false [menu] diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md index 59b428d..627e661 100644 --- a/exampleSite/content/about.md +++ b/exampleSite/content/about.md @@ -9,13 +9,11 @@ aliases: author: "Hugo Authors" menu: about: - identifier: about name: About title: About url: /about weight: 1 subpage: - identifier: subpage parent: about name: Subpage title: Subpage diff --git a/exampleSiteMultilingual/config.toml b/exampleSiteMultilingual/config.toml index e33540b..a04f2a6 100644 --- a/exampleSiteMultilingual/config.toml +++ b/exampleSiteMultilingual/config.toml @@ -17,6 +17,7 @@ googleAnalytics = "" dateFormat = "2006-01-02" paginationSinglePost = true style = "light-without-switcher" + readMore = false [languages.en] languageName = "English" diff --git a/i18n/de.yaml b/i18n/de.yaml index 7ae5a07..363a3c2 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -36,3 +36,9 @@ toAllCategories: skipToContent: other: "Zum Hauptinhalt springen" + +darkTheme: + other: "Dunkles thema" + +lightTheme: + other: "Licht thema" diff --git a/i18n/en.yaml b/i18n/en.yaml index 3d396fe..a397d85 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -35,4 +35,10 @@ toAllCategories: other: "to all categories" skipToContent: - other: "skip to main content" \ No newline at end of file + other: "skip to main content" + +darkTheme: + other: "dark theme" + +lightTheme: + other: "light theme" diff --git a/i18n/fr.yaml b/i18n/fr.yaml index 9b022c4..b7c50d5 100644 --- a/i18n/fr.yaml +++ b/i18n/fr.yaml @@ -35,4 +35,10 @@ toAllCategories: other: "vers toutes les catégories" skipToContent: - other: "passer au contenu principal" \ No newline at end of file + other: "passer au contenu principal" + +darkTheme: + other: "thème sombre" + +lightTheme: + other: "thème léger" diff --git a/i18n/pl.yaml b/i18n/pl.yaml index 89759a8..5233c63 100644 --- a/i18n/pl.yaml +++ b/i18n/pl.yaml @@ -36,3 +36,9 @@ toAllCategories: skipToContent: other: "przejdź do głównej zawartości" + +darkTheme: + other: "ciemny schemat" + +lightTheme: + other: "lekki schemat" diff --git a/i18n/ru.yaml b/i18n/ru.yaml index baafa10..12e9ed7 100644 --- a/i18n/ru.yaml +++ b/i18n/ru.yaml @@ -35,4 +35,10 @@ toAllCategories: other: "ко списку всех категорий" skipToContent: - other: "перейти к основному контенту" \ No newline at end of file + other: "перейти к основному контенту" + +darkTheme: + other: "тёмная тема" + +lightTheme: + other: "светлая тема" diff --git a/i18n/tw.yaml b/i18n/tw.yaml new file mode 100644 index 0000000..5d55d6c --- /dev/null +++ b/i18n/tw.yaml @@ -0,0 +1,44 @@ +powered: + other: "提供" + +theme: + other: "主題" + +readMore: + other: "繼續閱讀" + +toNewPosts: + other: "新文章" + +toOldPosts: + other: "舊文章" + +tag: + other: "標籤" + +Tags: + other: "標籤" + +Posts: + other: "文章" + +category: + other: "類別" + +Categories: + other: "類別" + +toAllTags: + other: "所有標籤" + +toAllCategories: + other: "所有類別" + +skipToContent: + other: "跳至內容" + +darkTheme: + other: "暗色主題" + +lightTheme: + other: "亮色主題" diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 759193a..bc3dd13 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -3,6 +3,7 @@ {{ if gt $languagesCount 1 }} {{ partial "languageSelect.html" . }} {{ end }} +
+ + {{ partial "themeSwitcher.html" . }} - {{ partial "themeSwitcher.html" . }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 2b29c7e..f8459c9 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,9 +1,13 @@