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

github.com/funkydan2/alpha-church.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Saunders <daniel.saunders@gmail.com>2019-11-23 09:46:50 +0300
committerDaniel Saunders <daniel.saunders@gmail.com>2019-11-23 09:46:50 +0300
commita3e69cfb6593fef1c1beb8bc37be6e0f2895c887 (patch)
treeb2595100f207c2dda4225fe78f2873f01925f8bd
parent84265a6e4569ce40528e49ffab57513105730954 (diff)
Closes #2020191123
-rw-r--r--CHANGELOG.md6
-rw-r--r--exampleSite/config.toml12
-rw-r--r--layouts/partials/nav.html13
3 files changed, 28 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5952e61..30e1403 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+# Saturday, 23 November 2019
+* Support for sub-submenus. See `exampleSite/config.toml` for an idea of how to implement this. Note that these sub-sub-menus *will not have a visual prompt for users*, so don't hide essential navigation in them. (This is because I couldn't work out a way to implement this atractively in the UI, as well as to discourage burying essential navigation.)
+Note: this is the last update which will be reported in this changelog. This project will move to using [github tags](https://developer.github.com/v3/git/tags/).
+
# Saturday, 16 November 2019
On the home page (\_index.html), feature_icons tiles can have an optional `url` specified that wil make the whole tile clickable. The text of that tile will turn into the link accent color.
@@ -6,7 +10,7 @@ I've made it possible for a sermon to have multiple preachers. Now, 99% of the t
1. It makes [the taxonomies](https://gohugo.io/content-management/taxonomies/#readout) more consistent with pluarlisation.
2. There is a potential *use case* for having multiple preachers, such as a panel discussion, or a sermon where one person does an exegetical portion and another person applies the passage.
-This is a **breaking change**: you'll need to change all your sermons to have the `preachers:` paramater an array. If you're using TOML frontmatter you can do this with a regular expression. In [atom](//atom.io) I ran a regex find-and-replace over my whole project *Finding* `preachers: "([A-z ]+)"` and replacing it with `preachers: ["$1"]`.
+This is a **breaking change**: you'll need to change all your sermons to have the `preachers:` parameter an array. If you're using TOML frontmatter you can do this with a regular expression. In [atom](//atom.io) I ran a regex find-and-replace over my whole project *Finding* `preachers: "([A-z ]+)"` and replacing it with `preachers: ["$1"]`.
# Tuesday, 13 August 2019
* Thanks to [@Anaeijon](https://github.com/Anaeijon) who [provided a PR](https://github.com/funkydan2/alpha-church/pull/15) with some improved SCSS process.
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 80f431b..588767b 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -54,6 +54,18 @@ googleAnalytics = ""
weight = 1
[[menu.main]]
+ name = "Preachers"
+ url = "/preachers"
+ parent = "Sermons"
+ weight = 1
+
+ [[menu.main]]
+ name = "Best Ever"
+ url = "#"
+ parent = "Sermons"
+ weight = 1
+
+ [[menu.main]]
name = "Blog"
url = "/posts"
parent = "Resources"
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index ec1c151..5709da5 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -15,9 +15,18 @@
</a>
<ul>
{{ range .Children }}
- <li>
+ {{ if .HasChildren }}
+ <li>
<a href="{{ .URL }}">{{ .Name }}</a>
- </li>
+ <ul>
+ {{ range .Children }}
+ <li><a href="{{ .URL }}">{{ .Name }}</a></li>
+ {{ end }}
+ </ul>
+ {{ else }}
+ <li><a href="{{ .URL }}">{{ .Name }}</a></li>
+ {{ end }}
+ </li>
{{ end }}
</ul>
</li>