Improve indents in theme
This commit is contained in:
parent
adbe777ccf
commit
d4ba7a063f
12 changed files with 76 additions and 90 deletions
|
@ -1,6 +1,5 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<h2>{{ .Title }}</h2>
|
<h2>{{ .Title }}</h2>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
{{ with resources.Get .Params.filename }}
|
{{ with resources.Get .Params.filename }}
|
||||||
|
@ -100,9 +99,7 @@
|
||||||
{{ with .Content }}
|
{{ with .Content }}
|
||||||
<h3>Commentary</h3>
|
<h3>Commentary</h3>
|
||||||
|
|
||||||
<p>
|
<p>{{ . }}</p>
|
||||||
{{ . }}
|
|
||||||
</p>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Params.threed }}
|
{{ if .Params.threed }}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
<h2>{{ .Title }}</h2>
|
<h2>{{ .Title }}</h2>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
|
@ -35,9 +35,7 @@
|
||||||
</figcaption>
|
</figcaption>
|
||||||
|
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
|
||||||
<em>CANNOT FIND {{ .filename }}</em>
|
<em>CANNOT FIND {{ .filename }}</em>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</figure>
|
</figure>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -27,13 +27,13 @@
|
||||||
|
|
||||||
{{ $masonry := resources.Get "js/masonry.min.js" }}
|
{{ $masonry := resources.Get "js/masonry.min.js" }}
|
||||||
{{ if hugo.IsProduction }}
|
{{ if hugo.IsProduction }}
|
||||||
{{ $masonry = $masonry | minify | fingerprint | resources.PostProcess }}
|
{{ $masonry = $masonry | fingerprint | resources.PostProcess }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<script src="{{ $masonry.RelPermalink }}" integrity="{{ $masonry.Data.Integrity }}"></script>
|
<script src="{{ $masonry.RelPermalink }}" integrity="{{ $masonry.Data.Integrity }}"></script>
|
||||||
|
|
||||||
{{ $imagesloaded := resources.Get "js/imagesloaded.min.js" }}
|
{{ $imagesloaded := resources.Get "js/imagesloaded.min.js" }}
|
||||||
{{ if hugo.IsProduction }}
|
{{ if hugo.IsProduction }}
|
||||||
{{ $imagesloaded = $imagesloaded | minify | fingerprint | resources.PostProcess }}
|
{{ $imagesloaded = $imagesloaded | fingerprint | resources.PostProcess }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<script src="{{ $imagesloaded.RelPermalink }}" integrity="{{ $imagesloaded.Data.Integrity }}"></script>
|
<script src="{{ $imagesloaded.RelPermalink }}" integrity="{{ $imagesloaded.Data.Integrity }}"></script>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{{ $avatar := resources.Get .Site.Params.profile_picture }}
|
{{ with resources.Get .Site.Params.profile_picture }}
|
||||||
{{ with $avatar }}
|
|
||||||
<img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}"/>
|
<img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}"/>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<h1>{{ .Site.Title }}</h1>
|
<h1>{{ .Site.Title }}</h1>
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{{ $related := .Site.RegularPages.Related . | first 5 }}
|
{{ with .Site.RegularPages.Related . | first 5 }}
|
||||||
{{ with $related }}
|
|
||||||
<h3>See Also</h3>
|
<h3>See Also</h3>
|
||||||
<ul>
|
<ul>
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{{ $base := "art" }}
|
{{ $base := "art" }}
|
||||||
|
|
||||||
{{ if .Params.threed }}
|
{{ if .Params.threed }}
|
||||||
{{ $base = "3d" }}
|
{{ $base = "3d" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -9,7 +10,6 @@
|
||||||
|
|
||||||
{{ $full := resources.Get (printf "%s/%s.webp" $base .Params.slug) }}
|
{{ $full := resources.Get (printf "%s/%s.webp" $base .Params.slug) }}
|
||||||
{{ if $full }}
|
{{ if $full }}
|
||||||
|
|
||||||
{{ $filename_without_ext := .Params.slug }}
|
{{ $filename_without_ext := .Params.slug }}
|
||||||
|
|
||||||
{{ $month := 1 }}
|
{{ $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 }}" />
|
<img alt="Viewable Animation" title="Viewable Animation" style="z-index: 1; position: absolute; left: 10px; top: 10px" src="{{ .Permalink }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<img width="{{ .Width }}" height="{{ .Height }}" alt="{{ $title }}" title="{{ $title }}" src="{{ .Permalink }}">
|
<img width="{{ .Width }}" height="{{ .Height }}" alt="{{ $title }}" title="{{ $title }}" src="{{ .Permalink }}">
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<p>Thumbnail not found!</p>
|
<p>Thumbnail not found!</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</a>
|
</a>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
|
||||||
<em>CANNOT FIND {{ .Params.slug }}</em>
|
<em>CANNOT FIND {{ .Params.slug }}</em>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
|
@ -11,10 +11,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ if hugo.IsProduction }}
|
{{ if hugo.IsProduction }}
|
||||||
{{ $site := resources.Get "js/voting.js" }}
|
{{ $site = resources.Get "js/voting.js" | minify | fingerprint | resources.PostProcess }}
|
||||||
{{ if hugo.IsProduction }}
|
|
||||||
{{ $site = $site | minify | fingerprint | resources.PostProcess }}
|
|
||||||
{{ end }}
|
|
||||||
<script src="{{ $site.RelPermalink }}" integrity="{{ $site.Data.Integrity }}"></script>
|
<script src="{{ $site.RelPermalink }}" integrity="{{ $site.Data.Integrity }}"></script>
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,5 +19,5 @@
|
||||||
refresh({{ $name }})
|
refresh({{ $name }})
|
||||||
</script>
|
</script>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<p>debug: {{ $name }}</p>
|
<p style="text-align: center">Voting is disabled in development mode.</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
{{ $avatar := resources.Get .Site.Params.profile_picture }}
|
{{ with resources.Get .Site.Params.profile_picture }}
|
||||||
{{ with $avatar }}
|
<img id="about-pic" alt="Profile Picture" title="Profile Picture" src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}"/>
|
||||||
<img id="about-pic" src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}"/>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
<h3>Recent Blog Posts</h3>
|
<h3>Recent Blog Posts</h3>
|
||||||
<div class="generic-con">
|
|
||||||
|
|
||||||
|
<div class="generic-con">
|
||||||
{{ range first 3 (where .Site.Pages "Type" "blog").ByDate.Reverse }}
|
{{ range first 3 (where .Site.Pages "Type" "blog").ByDate.Reverse }}
|
||||||
<li style="margin-left: 10px; list-style-type: square;">
|
<li style="margin-left: 10px; list-style-type: square;">
|
||||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
<p><i>{{ .Summary }}</i></p>
|
<p><i>{{ .Summary }}</i></p>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue