diff options
author | Olivier DOSSMANN <git@dossmann.net> | 2019-09-15 23:28:53 +0300 |
---|---|---|
committer | Olivier DOSSMANN <git@dossmann.net> | 2019-09-15 23:28:53 +0300 |
commit | 8e6c7d1d44373161c0e0aa88611380df81c4ef6a (patch) | |
tree | 89eed60865d54c8274b9ecbe2b229d2e00ba1c0d | |
parent | 224c93fa1af27328fe1799bdecbf6000eac03621 (diff) | |
parent | e925bcdaba5017c526351e113ab0b8140e6fe2f3 (diff) |
Merge branch 'master' of github.com:blankoworld/hugo_theme_adam_eve
-rw-r--r-- | README.md | 12 | ||||
-rw-r--r-- | exampleSite/config.toml | 16 | ||||
-rw-r--r-- | exampleSite/content/_index.md | 4 | ||||
-rw-r--r-- | layouts/index.html | 11 | ||||
-rw-r--r-- | theme.toml | 2 |
5 files changed, 26 insertions, 19 deletions
@@ -134,7 +134,17 @@ Pay attention to read this **entire page** before applying what you read! By default a menu is displayed on Homepage. You can disable it. Use `nohomebar` in **config.toml** like this: ```ini -[params] nohomebar = true +[params] + nohomebar = true +``` + +### Homepage posts list + +By default a list of post from `post` directory is shown on Homepage. You can disable it. Use `NoHomepagePostList` in **config.toml** like this: + +```ini +[params] + NoHomepagePostList = true ``` ## Contributing diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 49e894c..5443043 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,6 +1,7 @@ baseURL = "https://example.org" theme = "hugo_theme_adam_eve" DefaultContentLanguage = "en" +disableKinds = ["taxonomy", "taxonomyTerm", "section"] [Languages] [Languages.fr] @@ -16,18 +17,3 @@ description = "Des poissons et de l'eau" [Languages.en.params] description = "Fish and water" - -[[Languages.fr.menu.main]] - name = "Accueil" - pre = "<span class='homepage'>⌂</span>" - weight = -110 - identifier = "homepage" - url = "/" - -[[Languages.en.menu.main]] - name = "Homepage" - pre = "<span class='homepage'>⌂</span>" - weight = -110 - identifier = "homepage" - url = "/" - diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md index 73ed903..8dd130d 100644 --- a/exampleSite/content/_index.md +++ b/exampleSite/content/_index.md @@ -18,8 +18,8 @@ Please, don't eat me! I'm a **cute** fish. Click on these links to see in what other pages are different. {{% /note %}} - * [Materials]({{< ref "materials.md" >}}) - * [Styles]({{< ref "styles.md" >}}) + * [Materials]({{< relref "design/materials.md" >}}) + * [Styles]({{< relref "design/styles.md" >}}) # Maintenance diff --git a/layouts/index.html b/layouts/index.html index dd392f7..283990f 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -17,6 +17,17 @@ </header> <main> {{ .Content }} + {{ $pages := where .Site.RegularPages "Type" "post" }} + {{ if isset .Site.Params "nohomepagepostlist" }} + <!-- No homepage post list --> + {{ else if ne (len $pages) 0 }} + <h1>Posts</h1> + <ul> + {{ range $pages.ByTitle }} + <li><a href="{{ .Permalink }}">{{ .Name }}</a></li> + {{ end }} + </ul> + {{ end }} </main> <footer> <hr /> @@ -8,7 +8,7 @@ description = "A simple wiki in its original formal state" homepage = "https://github.com/blankoworld/hugo_theme_adam_eve" tags = ['minimal', 'wiki-like', 'documentation'] features = ['wiki-like', 'responsive', 'minimal', 'shortcode', 'clean', 'boxes', 'i18n'] -min_version = "0.43" +min_version = "0.57" [author] name = "Olivier DOSSMANN" |