Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/blankoworld/hugo_theme_adam_eve.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier DOSSMANN <git@dossmann.net>2019-09-15 23:28:53 +0300
committerOlivier DOSSMANN <git@dossmann.net>2019-09-15 23:28:53 +0300
commit8e6c7d1d44373161c0e0aa88611380df81c4ef6a (patch)
tree89eed60865d54c8274b9ecbe2b229d2e00ba1c0d
parent224c93fa1af27328fe1799bdecbf6000eac03621 (diff)
parente925bcdaba5017c526351e113ab0b8140e6fe2f3 (diff)
Merge branch 'master' of github.com:blankoworld/hugo_theme_adam_eve
-rw-r--r--README.md12
-rw-r--r--exampleSite/config.toml16
-rw-r--r--exampleSite/content/_index.md4
-rw-r--r--layouts/index.html11
-rw-r--r--theme.toml2
5 files changed, 26 insertions, 19 deletions
diff --git a/README.md b/README.md
index 6a5bec9..7d1da8e 100644
--- a/README.md
+++ b/README.md
@@ -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 />
diff --git a/theme.toml b/theme.toml
index 1a0c6cb..cfddb60 100644
--- a/theme.toml
+++ b/theme.toml
@@ -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"