Blog: Move blog styles and content templates to the base repo

This commit is contained in:
Eryn Wells 2024-08-07 07:43:50 -10:00
parent 2e37336f5e
commit ea26f5f68b
5 changed files with 101 additions and 5 deletions

21
layouts/blog/list.html Normal file
View file

@ -0,0 +1,21 @@
{{ define "head_css" }}
{{ partialCached "blog/css.html" . }}
{{ end }}
{{ define "main" }}
<main class="main--list">
<header class="page-header">
{{ partial "page_header.html" (dict "page" .) }}
</header>
<div class="main--list__content">
{{ .Content }}
</div>
<div class="main--list__page-list">
{{ range .Pages.ByDate.Reverse }}
{{ .Render "page_summary" }}
{{ end }}
</div>
</main>
{{ end }}

18
layouts/blog/single.html Normal file
View file

@ -0,0 +1,18 @@
{{ define "head_css" }}
{{ partialCached "blog/css.html" . }}
{{ end }}
{{ define "main" }}
<article class="content">
<header class="page-header">
{{ partial "page_header.html" (dict "page" .) }}
</header>
{{ .Content }}
<footer class="page-footer">
{{ partial "page/footer.html" . }}
{{ partial "page/prev_next_navigation.html" . }}
</footer>
</article>
{{ end }}