Made adding sections much easier

This commit is contained in:
Jeffrey Phillips Freeman 2023-10-16 13:26:55 -04:00
parent bd42774b53
commit f1ad48028e
No known key found for this signature in database
GPG key ID: AD914585C9406B6A
14 changed files with 4 additions and 65 deletions

View file

@ -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

View file

@ -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>`

View file

@ -1,3 +0,0 @@
{{ partial "top_single.html" . }}
{{ partial "body_single.html" . }}
{{ partial "bottom_single.html" . }}

View file

@ -1,3 +0,0 @@
{{ partial "top_list_news.html" . }}
{{ partial "body_list.html" . }}
{{ partial "bottom_list.html" . }}

View file

@ -1,3 +0,0 @@
{{ partial "top_single.html" . }}
{{ partial "body_single.html" . }}
{{ partial "bottom_single.html" . }}

View file

@ -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>

View file

@ -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 related to Fedipage. You can follow this page on the fediverse at @fedipage@fedipage.com.</small>
</h2>
</div>
</header>
<main class="hfeed container" id="content" role="main">

View file

@ -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 related to the fedipage project.</small>
</h2>
</div>
</header>
<main class="hfeed container" id="content" role="main">

View file

@ -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 in contributing to the Fedipage project.</small>
</h2>
</div>
</header>
<main class="hfeed container" id="content" role="main">

View file

@ -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>

View file

@ -1,3 +0,0 @@
{{ partial "top_list_projects.html" . }}
{{ partial "body_list.html" . }}
{{ partial "bottom_list.html" . }}

View file

@ -1,3 +0,0 @@
{{ partial "top_single.html" . }}
{{ partial "body_single.html" . }}
{{ partial "bottom_single.html" . }}

View file

@ -1,3 +0,0 @@
{{ partial "top_list_resource.html" . }}
{{ partial "body_list.html" . }}
{{ partial "bottom_list.html" . }}

View file

@ -1,3 +0,0 @@
{{ partial "top_single.html" . }}
{{ partial "body_single.html" . }}
{{ partial "bottom_single.html" . }}