mirror of
https://git.qoto.org/fedipage/fedipage.git
synced 2024-11-15 19:47:57 +01:00
Made adding sections much easier
This commit is contained in:
parent
bd42774b53
commit
f1ad48028e
14 changed files with 4 additions and 65 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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>`
|
||||
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
{{ partial "top_single.html" . }}
|
||||
{{ partial "body_single.html" . }}
|
||||
{{ partial "bottom_single.html" . }}
|
|
@ -1,3 +0,0 @@
|
|||
{{ partial "top_list_news.html" . }}
|
||||
{{ partial "body_list.html" . }}
|
||||
{{ partial "bottom_list.html" . }}
|
|
@ -1,3 +0,0 @@
|
|||
{{ partial "top_single.html" . }}
|
||||
{{ partial "body_single.html" . }}
|
||||
{{ partial "bottom_single.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>
|
||||
|
|
|
@ -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">
|
|
@ -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">
|
|
@ -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">
|
|
@ -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>
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
{{ partial "top_list_projects.html" . }}
|
||||
{{ partial "body_list.html" . }}
|
||||
{{ partial "bottom_list.html" . }}
|
|
@ -1,3 +0,0 @@
|
|||
{{ partial "top_single.html" . }}
|
||||
{{ partial "body_single.html" . }}
|
||||
{{ partial "bottom_single.html" . }}
|
|
@ -1,3 +0,0 @@
|
|||
{{ partial "top_list_resource.html" . }}
|
||||
{{ partial "body_list.html" . }}
|
||||
{{ partial "bottom_list.html" . }}
|
|
@ -1,3 +0,0 @@
|
|||
{{ partial "top_single.html" . }}
|
||||
{{ partial "body_single.html" . }}
|
||||
{{ partial "bottom_single.html" . }}
|
Loading…
Reference in a new issue