Improve indents in theme

This commit is contained in:
Joshua Goins 2023-04-13 17:19:53 -04:00
parent adbe777ccf
commit d4ba7a063f
12 changed files with 76 additions and 90 deletions

View file

@ -1,6 +1,5 @@
{{ define "main" }}
<h2>{{ .Title }}</h2>
<hr>
{{ with resources.Get .Params.filename }}
@ -100,9 +99,7 @@
{{ with .Content }}
<h3>Commentary</h3>
<p>
{{ . }}
</p>
<p>{{ . }}</p>
{{ end }}
{{ if .Params.threed }}

View file

@ -1,5 +1,4 @@
<h2>{{ .Title }}</h2>
<hr>
{{ .Content }}

View file

@ -35,9 +35,7 @@
</figcaption>
{{ else }}
<em>CANNOT FIND {{ .filename }}</em>
{{ end }}
</figure>
{{ end }}

View file

@ -27,13 +27,13 @@
{{ $masonry := resources.Get "js/masonry.min.js" }}
{{ if hugo.IsProduction }}
{{ $masonry = $masonry | minify | fingerprint | resources.PostProcess }}
{{ $masonry = $masonry | fingerprint | resources.PostProcess }}
{{ end }}
<script src="{{ $masonry.RelPermalink }}" integrity="{{ $masonry.Data.Integrity }}"></script>
{{ $imagesloaded := resources.Get "js/imagesloaded.min.js" }}
{{ if hugo.IsProduction }}
{{ $imagesloaded = $imagesloaded | minify | fingerprint | resources.PostProcess }}
{{ $imagesloaded = $imagesloaded | fingerprint | resources.PostProcess }}
{{ end }}
<script src="{{ $imagesloaded.RelPermalink }}" integrity="{{ $imagesloaded.Data.Integrity }}"></script>

View file

@ -1,5 +1,4 @@
{{ $avatar := resources.Get .Site.Params.profile_picture }}
{{ with $avatar }}
{{ with resources.Get .Site.Params.profile_picture }}
<img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}"/>
{{ end }}
<h1>{{ .Site.Title }}</h1>

View file

@ -1,5 +1,4 @@
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
{{ with .Site.RegularPages.Related . | first 5 }}
<h3>See Also</h3>
<ul>
{{ range . }}

View file

@ -1,4 +1,5 @@
{{ $base := "art" }}
{{ if .Params.threed }}
{{ $base = "3d" }}
{{ end }}
@ -9,7 +10,6 @@
{{ $full := resources.Get (printf "%s/%s.webp" $base .Params.slug) }}
{{ if $full }}
{{ $filename_without_ext := .Params.slug }}
{{ $month := 1 }}
@ -43,14 +43,13 @@
<img alt="Viewable Animation" title="Viewable Animation" style="z-index: 1; position: absolute; left: 10px; top: 10px" src="{{ .Permalink }}" />
{{ end }}
{{ end }}
<img width="{{ .Width }}" height="{{ .Height }}" alt="{{ $title }}" title="{{ $title }}" src="{{ .Permalink }}">
{{ else }}
<p>Thumbnail not found!</p>
{{ end }}
</a>
{{ else }}
<em>CANNOT FIND {{ .Params.slug }}</em>
{{ end }}

View file

@ -11,10 +11,7 @@
</div>
{{ if hugo.IsProduction }}
{{ $site := resources.Get "js/voting.js" }}
{{ if hugo.IsProduction }}
{{ $site = $site | minify | fingerprint | resources.PostProcess }}
{{ end }}
{{ $site = resources.Get "js/voting.js" | minify | fingerprint | resources.PostProcess }}
<script src="{{ $site.RelPermalink }}" integrity="{{ $site.Data.Integrity }}"></script>
@ -22,5 +19,5 @@
refresh({{ $name }})
</script>
{{ else }}
<p>debug: {{ $name }}</p>
<p style="text-align: center">Voting is disabled in development mode.</p>
{{ end }}

View file

@ -1,4 +1,3 @@
{{ $avatar := resources.Get .Site.Params.profile_picture }}
{{ with $avatar }}
<img id="about-pic" src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}"/>
{{ with resources.Get .Site.Params.profile_picture }}
<img id="about-pic" alt="Profile Picture" title="Profile Picture" src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}"/>
{{ end }}

View file

@ -1,11 +1,10 @@
<h3>Recent Blog Posts</h3>
<div class="generic-con">
<div class="generic-con">
{{ range first 3 (where .Site.Pages "Type" "blog").ByDate.Reverse }}
<li style="margin-left: 10px; list-style-type: square;">
<a href="{{ .Permalink }}">{{ .Title }}</a>
<p><i>{{ .Summary }}</i></p>
</li>
{{ end }}
</div>