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

View file

@ -2,9 +2,14 @@
<div id="layout" class="pure-g"> <div id="layout" class="pure-g">
<article class="pure-u-1"> <article class="pure-u-1">
{{ partial "brand.html" . }} {{ 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 }} {{ if .IsNode }}
<a href="{{ .Permalink }}">{{ .Title}}</a> <a href="{{ .Permalink }}">{{ .Title}}</a>
{{ else }} {{ else }}
@ -12,11 +17,7 @@
{{ end }} {{ end }}
</h1> </h1>
<p>{{ truncate 140 .Summary }}</p>
<p>{{ truncate 120 .Summary }}</p>
{{/* {{ if .Truncated }} */}}
<p><a href="{{ .RelPermalink }}">Read On &rarr;</a></p>
{{/* {{ end }} */}}
{{ end }} {{ end }}
{{ partial "footer.html" . }} {{ partial "footer.html" . }}

View file

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

View file

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