From 1954354021076389af5c2eee3691381669179aa4 Mon Sep 17 00:00:00 2001
From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me>
Date: Sun, 15 Oct 2023 21:59:00 -0400
Subject: [PATCH] Made things more generic

---
 CHANGELOG.md                           |  3 +++
 README.md                              |  5 ++---
 config/_default/hugo.toml              |  1 +
 layouts/partials/menu.html             | 24 ++++++++++--------------
 layouts/partials/top_list_generic.html |  2 +-
 5 files changed, 17 insertions(+), 18 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 161767cc6..885eeaba1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,9 @@
 * Card shortcodes no longer need to be linkable. By leaving the url argument as
     an empty string it will not render as a clickable link.
 * Fixed microblog submenu so it no longer extends past bottom of the page.
+* Made `/layout/top_list_generic` site generic, it no longer mentions Fedipage.
+* Made the `/layout/menu/html` dynamic so now there is no need to edit it when
+    you customize sections.
 
 ## 1.1.0
 
diff --git a/README.md b/README.md
index 3f54456cf..5486a7416 100644
--- a/README.md
+++ b/README.md
@@ -16,13 +16,12 @@ just yet.
 new name and edit its content.
 1. Modify `./clean-build.cjs` at the bottom of the file to include the name of
 the new section.
-1. Rename directory `./layouts/<section>` to the name of the new section.
+1. Rename directory `./layouts/<section>` to the name of the new section, or
+    create a new directory using an existing directory as a template.
 1. Edit `./layouts/<section>/list.html` to point to the new section partial
 (first line).
 1. Change or create a new directory for section content under
 `/content/<new_section>`
-1. Change `/layouts/partials/menu.html` to use the new name and url to the new
-section.
 
 ## Update /hugo.toml
 
diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml
index 441c0e3cf..f65f0efef 100644
--- a/config/_default/hugo.toml
+++ b/config/_default/hugo.toml
@@ -9,6 +9,7 @@ defaultContentLanguageInSubdir = false
 
 enableRobotsTXT = true
 uglyURLs=false
+pluralizelisttitles=false
 
 [services.rss]
 limit = 50
diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html
index be1ff1fc5..4b663ad70 100644
--- a/layouts/partials/menu.html
+++ b/layouts/partials/menu.html
@@ -14,10 +14,10 @@
 		</div>
 		<div class="navbar__items navbar__items--right">
 			<a class="navbar__item navbar__link" href="/">Home</a>
-			<a class="navbar__item navbar__link" href="/news">News</a>
-			<a class="navbar__item navbar__link" href="/projects">Projects</a>
-      <a class="navbar__item navbar__link" href="/resource">Resources</a>
-			<a class="displayOnlyInLargeViewport_16CL button button--primary" href={{ site.Params.repoUrl }} style="margin:0;margin-left:15px">OUR GIT →</a>
+			{{ range .Site.Sections }}
+			  <a class="navbar__item navbar__link" href="{{ .Permalink }}">{{ .Title }}</a>
+			{{ end }}
+			<a class="displayOnlyInLargeViewport_16CL button button--primary" href={{ site.Params.repoUrl }} style="margin:0;margin-left:15px">MY GIT →</a>
 		</div>
 	</div>
 	<div role="presentation" class="navbar-sidebar__backdrop"></div>
@@ -34,17 +34,13 @@
 					<li class="menu__list-item">
 						<a class="menu__link" href="/">Home</a>
 					</li>
-					<li class="menu__list-item">
-						<a class="menu__link" href="/news">News</a>
-					</li>
-					<li class="menu__list-item">
-						<a class="menu__link" href="/projects">Projects</a>
-					</li>
-          <li class="menu__list-item">
-						<a class="menu__link" href="/resource">Resources</a>
-					</li>
+					{{ range .Site.Sections }}
+						<li class="menu__list-item">
+							<a class="menu__link" href="{{ .Permalink }}">{{ .Title }}</a>
+						</li>
+					{{ end }}
 					<div style="margin:5px;margin-top:15px"></div>
-					<a class="button button--block button--primary" href={{ site.Params.repoUrl }}>OUR GITLAB →</a>
+					<a class="button button--block button--primary" href={{ site.Params.repoUrl }}>MY GIT →</a>
 				</ul>
 			</div>
 		</div>
diff --git a/layouts/partials/top_list_generic.html b/layouts/partials/top_list_generic.html
index 141d71a52..bf84b00fe 100644
--- a/layouts/partials/top_list_generic.html
+++ b/layouts/partials/top_list_generic.html
@@ -5,7 +5,7 @@
     <div class="main-wrapper">
       <header class='subheader'>
         <div class='container'>
-          <h2 class='page-title'> Fedipage <small>Hugo based static page genedator and blog with ActivityPub support</small>
+          <h2 class='page-title'> {{ .Title }}
           </h2>
         </div>
       </header>
-- 
GitLab