mainly cosmetic changes to the code

This commit is contained in:
loikein 2023-04-15 00:36:29 +01:00
parent eb95b736e4
commit 6760f0cb6b
4 changed files with 170 additions and 165 deletions

View file

@ -2,17 +2,18 @@
<div id="layout" class="pure-g">
<article class="pure-u-1">
{{ partial "brand.html" . }}
{{ partial "content.header.html" . }}
<section class="list-page">
{{ range .Data.Pages.GroupByDate "2006" }}
<details open>
<summary class="year">{{ .Key }} ({{ len .Pages }})</summary>
<ul>
<li class="year">{{ .Key }} ({{ len .Pages }})</li>
{{ range .Pages.GroupByDate "January" }}
<ul>
<li>
<details open>
<summary>{{ .Key }} ({{ len .Pages }})</summary>
<li>{{ .Key }} ({{ len .Pages }})</li>
{{ range .Pages }}
<ul>
<li>
@ -21,14 +22,15 @@
</li>
</ul>
{{ end }}
</details>
</li>
</ul>
{{ end }}
</details>
</ul>
{{ end }}
</section>
{{ partial "footer.html" . }}
</article>
</div>

View file

@ -2,9 +2,14 @@
<div id="layout" class="pure-g">
<article class="pure-u-1">
{{ partial "brand.html" . }}
{{ range where .Site.RegularPages "Type" "post"}}
{{ with .Content }}
<section>
{{ . }}
</section>
{{ end }}
{{ range where .Site.RegularPages "Type" "posts" }}
<h1 class="content-title">
<h2 class="content-title">
{{ if .IsNode }}
<a href="{{ .Permalink }}">{{ .Title}}</a>
{{ else }}
@ -12,11 +17,7 @@
{{ end }}
</h1>
<p>{{ truncate 120 .Summary }}</p>
{{/* {{ if .Truncated }} */}}
<p><a href="{{ .RelPermalink }}">Read On &rarr;</a></p>
{{/* {{ end }} */}}
<p>{{ truncate 140 .Summary }}</p>
{{ end }}
{{ partial "footer.html" . }}

View file

@ -7,10 +7,12 @@
<a href="{{ .RelPermalink }}">{{ .Title }}{{ if .Draft }} :: Draft {{end}}</a>
{{ end }}
</h1>
{{ if .IsPage }}
{{ if .Params.subtitle }}
<p class=subtitle>{{ .Params.subtitle }}</p>
{{ end }}
{{ if or (eq .Type "post") (.Params.meta) }}
<span class="content-meta">
{{ if .Params.author }}
@ -18,7 +20,6 @@
&nbsp;{{ .Params.author }}</span> <br>
{{ end }}
{{ if not .Params.hidedate }}
<i class="fa fa-calendar"></i>
&nbsp;{{ .Date.Format "Jan 2, 2006" }}
@ -39,4 +40,5 @@
</span>
{{ end }}
{{ end }}
</section>

View file

@ -14,7 +14,6 @@
</div>
<ul class="page-footer-menu">
{{/* SOCIALS */}}
{{ if isset .Site.Params "twitter" }}
<li><a href="https://twitter.com/{{.Site.Params.twitter}}"><i class='fab fa-twitter fa-lg'></i></a></li>
@ -72,7 +71,7 @@
{{ if .Site.Params.showPoweredBy}}
<p>
Powered by <a href="https://gohugo.io">Hugo</a> and the
<a href="https://github.com/slashformotion/hugo-tufte">Tufte theme</a>.
<a href="https://github.com/loikein/hugo-tufte">Tufte theme</a>.
</p>
{{ end }}
@ -87,4 +86,5 @@
{{end}}
</p>
</div>
</footer>