diff --git a/CHANGELOG.md b/CHANGELOG.md index 7005cf9ebab892206af94921866defc6d2d076e4..2532a079c76f5dd16531da096037b0e30966d901 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,8 @@ * Minor improvement to CSS so `page` types dont get clipped by the menu header. * Added a container shortcode for use on `page` types to get left and right margins. +* Adding new sections is now almost completely dynamic and requires much less + modification of code. See updated `README.me`. ## 1.1.0 diff --git a/README.md b/README.md index 5486a74165e9c5fa197cac706d76f63770dbed2a..dc150cb8a90c709ebdddabeff72357b668a8ce08 100644 --- a/README.md +++ b/README.md @@ -12,14 +12,8 @@ just yet. ### Renaming -1. Change the name of the `/layouts/partials/top_list_<section>.html` to the -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, 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>` diff --git a/layouts/entry/single.html b/layouts/entry/single.html deleted file mode 100644 index 709763526bf645cf4edb80a0ce1dea3ea3d8bf0d..0000000000000000000000000000000000000000 --- a/layouts/entry/single.html +++ /dev/null @@ -1,3 +0,0 @@ -{{ partial "top_single.html" . }} -{{ partial "body_single.html" . }} -{{ partial "bottom_single.html" . }} diff --git a/layouts/news/list.html b/layouts/news/list.html deleted file mode 100644 index 215103d3c0f3047f0ef1a6fbc5bbdbe69a6cb4d8..0000000000000000000000000000000000000000 --- a/layouts/news/list.html +++ /dev/null @@ -1,3 +0,0 @@ -{{ partial "top_list_news.html" . }} -{{ partial "body_list.html" . }} -{{ partial "bottom_list.html" . }} diff --git a/layouts/news/single.html b/layouts/news/single.html deleted file mode 100644 index 709763526bf645cf4edb80a0ce1dea3ea3d8bf0d..0000000000000000000000000000000000000000 --- a/layouts/news/single.html +++ /dev/null @@ -1,3 +0,0 @@ -{{ partial "top_single.html" . }} -{{ partial "body_single.html" . }} -{{ partial "bottom_single.html" . }} diff --git a/layouts/partials/top_list_generic.html b/layouts/partials/top_list_generic.html index bf84b00fe0bd609dda58888b762df1e3f7b47ea1..531ab5c542ea3fed405a824064367164c4bf623c 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'> {{ .Title }} + <h2 class='page-title'> {{ .Title }}{{ if .Description }} <small>{{ .Description }}</small>{{ end }} </h2> </div> </header> diff --git a/layouts/partials/top_list_news.html b/layouts/partials/top_list_news.html deleted file mode 100644 index c0efd7a81047e5b385f4479655ec2516ca3f86da..0000000000000000000000000000000000000000 --- a/layouts/partials/top_list_news.html +++ /dev/null @@ -1,12 +0,0 @@ -{{ partial "head.html" . }} -<body class="list h-feed"> - <div> - {{ partial "menu.html" . }} - <div class="main-wrapper"> - <header class='subheader'> - <div class='container'> - <h2 class='page-title'> News <small>For current events in FLEAR and its projects. You can follow this page on the fediverse at @flear@flear.org.</small> - </h2> - </div> - </header> - <main class="hfeed container" id="content" role="main"> diff --git a/layouts/partials/top_list_projects.html b/layouts/partials/top_list_projects.html deleted file mode 100644 index 61c1b594e4ac81058d79e3a73eda0c49b2789212..0000000000000000000000000000000000000000 --- a/layouts/partials/top_list_projects.html +++ /dev/null @@ -1,12 +0,0 @@ -{{ partial "head.html" . }} -<body class="list h-feed"> - <div> - {{ partial "menu.html" . }} - <div class="main-wrapper"> - <header class='subheader'> - <div class='container'> - <h2 class='page-title'> Projects <small>Open source projects past of our incubator for Ham Radio.</small> - </h2> - </div> - </header> - <main class="hfeed container" id="content" role="main"> diff --git a/layouts/partials/top_list_resource.html b/layouts/partials/top_list_resource.html deleted file mode 100644 index 2da29c6393c103abdfe067402795b489d883e85e..0000000000000000000000000000000000000000 --- a/layouts/partials/top_list_resource.html +++ /dev/null @@ -1,12 +0,0 @@ -{{ partial "head.html" . }} -<body class="list h-feed"> - <div> - {{ partial "menu.html" . }} - <div class="main-wrapper"> - <header class='subheader'> - <div class='container'> - <h2 class='page-title'> Resources <small>services, assistance, information, and other resources to assist the FLOSS Ham community.</small> - </h2> - </div> - </header> - <main class="hfeed container" id="content" role="main"> diff --git a/layouts/partials/top_list_taxonomy.html b/layouts/partials/top_list_taxonomy.html index 09d67e2b481280b4284e233a1b0f363cc01f9c68..0aa5df05c68717d972fbd522e92c6ea984ec2c9d 100644 --- a/layouts/partials/top_list_taxonomy.html +++ b/layouts/partials/top_list_taxonomy.html @@ -5,7 +5,7 @@ <div class="main-wrapper"> <header class='subheader'> <div class='container'> - <h2 class='page-title'> Categories <small> a listing of all the topics we cover organized in one place.</small> + <h2 class='page-title'> Categories <small> A listing of all the topics we cover organized in one place.</small> </h2> </div> </header> diff --git a/layouts/projects/list.html b/layouts/projects/list.html deleted file mode 100644 index b7658ea2efb18acf50f47ce10274a8a5315358b7..0000000000000000000000000000000000000000 --- a/layouts/projects/list.html +++ /dev/null @@ -1,3 +0,0 @@ -{{ partial "top_list_projects.html" . }} -{{ partial "body_list.html" . }} -{{ partial "bottom_list.html" . }} diff --git a/layouts/projects/single.html b/layouts/projects/single.html deleted file mode 100644 index 709763526bf645cf4edb80a0ce1dea3ea3d8bf0d..0000000000000000000000000000000000000000 --- a/layouts/projects/single.html +++ /dev/null @@ -1,3 +0,0 @@ -{{ partial "top_single.html" . }} -{{ partial "body_single.html" . }} -{{ partial "bottom_single.html" . }} diff --git a/layouts/resource/list.html b/layouts/resource/list.html deleted file mode 100644 index 91210d750a342b34f1a256e85a5f490aa9c7adfb..0000000000000000000000000000000000000000 --- a/layouts/resource/list.html +++ /dev/null @@ -1,3 +0,0 @@ -{{ partial "top_list_resource.html" . }} -{{ partial "body_list.html" . }} -{{ partial "bottom_list.html" . }} diff --git a/layouts/resource/single.html b/layouts/resource/single.html deleted file mode 100644 index 709763526bf645cf4edb80a0ce1dea3ea3d8bf0d..0000000000000000000000000000000000000000 --- a/layouts/resource/single.html +++ /dev/null @@ -1,3 +0,0 @@ -{{ partial "top_single.html" . }} -{{ partial "body_single.html" . }} -{{ partial "bottom_single.html" . }}