Made things more generic

This commit is contained in:
Jeffrey Phillips Freeman 2023-10-15 21:59:00 -04:00
parent c2008803ff
commit 1954354021
No known key found for this signature in database
GPG key ID: AD914585C9406B6A
5 changed files with 17 additions and 18 deletions

View file

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

View file

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

View file

@ -9,6 +9,7 @@ defaultContentLanguageInSubdir = false
enableRobotsTXT = true
uglyURLs=false
pluralizelisttitles=false
[services.rss]
limit = 50

View file

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

View file

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