From 488c42075a2b3686848f741d9c654610dac9c9bb Mon Sep 17 00:00:00 2001 From: Dmitry Kolosov Date: Sat, 1 Aug 2020 20:21:48 +0300 Subject: [PATCH 01/10] Add badges to REAME --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 99ccf97..c96f10f 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/). From 5f4719fbcc8f46caff8678738ba34c7ca627ea6f Mon Sep 17 00:00:00 2001 From: Dmitry Kolosov Date: Mon, 3 Aug 2020 20:13:49 +0300 Subject: [PATCH 02/10] fix submenu error in example site #53 --- exampleSite/content/about.md | 2 -- 1 file changed, 2 deletions(-) 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 From 09f5cf03731de8f2cc393d80e5ed52bff446e9e0 Mon Sep 17 00:00:00 2001 From: Dmitry Kolosov Date: Sat, 8 Aug 2020 11:25:27 +0300 Subject: [PATCH 03/10] Update Readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c96f10f..e0c3c50 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,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 +121,5 @@ See [issues](https://github.com/mitrichius/hugo-theme-anubis/issues). ## License MIT -(c) Dmitry Kolosov +© Dmitry Kolosov 2020 From 3d08f965095ccc1b42ddb3098f974a79381b3a54 Mon Sep 17 00:00:00 2001 From: Dmitry Kolosov Date: Wed, 12 Aug 2020 22:25:08 +0300 Subject: [PATCH 04/10] Add optional Read more. Close #47 --- README.md | 2 ++ exampleSite/config.toml | 1 + exampleSiteMultilingual/config.toml | 1 + layouts/partials/footer.html | 5 ++++- layouts/partials/postSummary.html | 4 ++-- layouts/partials/themeSwitcher.html | 9 +++------ static/css/style.css | 2 +- 7 files changed, 14 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index e0c3c50..30f9673 100644 --- a/README.md +++ b/README.md @@ -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: 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/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/layouts/partials/footer.html b/layouts/partials/footer.html index e022af9..d8512fe 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -4,13 +4,16 @@ {{ partial "languageSelect.html" . }} {{ end }} + + - {{ partial "themeSwitcher.html" . }} diff --git a/layouts/partials/postSummary.html b/layouts/partials/postSummary.html index 11bb9e0..352e09d 100644 --- a/layouts/partials/postSummary.html +++ b/layouts/partials/postSummary.html @@ -6,11 +6,11 @@
{{ .Summary | safeHTML }}
- + {{ end }} {{ partial "postInfo.html" . }} \ No newline at end of file diff --git a/layouts/partials/themeSwitcher.html b/layouts/partials/themeSwitcher.html index 6da264b..5e8de97 100644 --- a/layouts/partials/themeSwitcher.html +++ b/layouts/partials/themeSwitcher.html @@ -5,7 +5,7 @@ {{ if not (in (slice "light-without-switcher" "dark-without-switcher" "auto-without-switcher") $style) }}