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" }}
|
||||
<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 }}
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{{ $paginator := .Paginate (where .RegularPagesRecursive "Type" "art") }}
|
||||
|
||||
<div class="grid">
|
||||
<div class="grid-sizer"></div>
|
||||
<div class="grid-sizer"></div>
|
||||
|
||||
{{ range $paginator.Pages }}
|
||||
{{ range $paginator.Pages }}
|
||||
{{ partial "render-art" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div style="text-align: center;">
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<h2>{{ .Title }}</h2>
|
||||
|
||||
<hr>
|
||||
|
||||
{{ .Content }}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<h3>Comments</h3>
|
||||
|
||||
{{ if hugo.IsProduction }}
|
||||
<script
|
||||
<script
|
||||
data-isso="//{{ $.Site.Params.isso_url }}/"
|
||||
data-isso-title=""
|
||||
data-isso-avatar="false"
|
||||
|
@ -9,9 +9,9 @@
|
|||
data-isso-reveal-on-click="5"
|
||||
data-isso-page-author-hashes="96ab157c3aaa"
|
||||
src="//{{ $.Site.Params.isso_url }}/js/embed.min.js" async crossorigin></script>
|
||||
<section id="isso-thread" data-title="{{ .Title }}" data-isso-id="{{ .File.ContentBaseName }}">
|
||||
<section id="isso-thread" data-title="{{ .Title }}" data-isso-id="{{ .File.ContentBaseName }}">
|
||||
<noscript>Javascript needs to be activated to view comments.</noscript>
|
||||
</section>
|
||||
</section>
|
||||
{{ else }}
|
||||
<p>Comments are disabled in development mode.</p>
|
||||
<p>Comments are disabled in development mode.</p>
|
||||
{{ end }}
|
||||
|
|
|
@ -35,9 +35,7 @@
|
|||
</figcaption>
|
||||
|
||||
{{ else }}
|
||||
|
||||
<em>CANNOT FIND {{ .filename }}</em>
|
||||
|
||||
{{ end }}
|
||||
</figure>
|
||||
{{ end }}
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{{ $avatar := resources.Get .Site.Params.profile_picture }}
|
||||
{{ with $avatar }}
|
||||
<img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}"/>
|
||||
{{ with resources.Get .Site.Params.profile_picture }}
|
||||
<img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}"/>
|
||||
{{ end }}
|
||||
<h1>{{ .Site.Title }}</h1>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{{ $related := .Site.RegularPages.Related . | first 5 }}
|
||||
{{ with $related }}
|
||||
{{ with .Site.RegularPages.Related . | first 5 }}
|
||||
<h3>See Also</h3>
|
||||
<ul>
|
||||
{{ range . }}
|
||||
|
|
|
@ -1,29 +1,29 @@
|
|||
{{ $base := "art" }}
|
||||
|
||||
{{ if .Params.threed }}
|
||||
{{ $base = "3d" }}
|
||||
{{ $base = "3d" }}
|
||||
{{ end }}
|
||||
|
||||
{{ if .Params.animation }}
|
||||
{{ $base = "animation" }}
|
||||
{{ $base = "animation" }}
|
||||
{{ end }}
|
||||
|
||||
{{ $full := resources.Get (printf "%s/%s.webp" $base .Params.slug) }}
|
||||
{{ if $full }}
|
||||
{{ $filename_without_ext := .Params.slug }}
|
||||
|
||||
{{ $filename_without_ext := .Params.slug }}
|
||||
{{ $month := 1 }}
|
||||
{{ $year := 1 }}
|
||||
|
||||
{{ $month := 1 }}
|
||||
{{ $year := 1 }}
|
||||
|
||||
{{ if .Params.date }}
|
||||
{{ if .Params.date }}
|
||||
{{ $split := split .Params.date "-" }}
|
||||
{{ $month = index $split 0 }}
|
||||
{{ $year = index $split 3 }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<a class="no-decoration grid-item" href="{{ .Permalink }}">
|
||||
<a class="no-decoration grid-item" href="{{ .Permalink }}">
|
||||
|
||||
{{ $path := printf "/%s/%d/%.2d/%s" $base (int $year) (int $month) $filename_without_ext}}
|
||||
{{ $path := printf "/%s/%d/%.2d/%s" $base (int $year) (int $month) $filename_without_ext}}
|
||||
{{ $title := .Params.title }}
|
||||
{{ $image := (resources.Get (printf "%s/%s.webp" $base .Params.slug)).Resize "400x" }}
|
||||
|
||||
|
@ -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>
|
||||
</a>
|
||||
{{ else }}
|
||||
|
||||
<em>CANNOT FIND {{ .Params.slug }}</em>
|
||||
|
||||
<em>CANNOT FIND {{ .Params.slug }}</em>
|
||||
{{ end }}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{{ $name := urlize .Title }}
|
||||
|
||||
{{ with .Slug }}
|
||||
{{ $name = . }}
|
||||
{{ $name = . }}
|
||||
{{ end }}
|
||||
|
||||
<div style="width: 100px; margin-top: 20px; margin-bottom: 20px; margin-left: auto; margin-right: auto">
|
||||
|
@ -11,16 +11,13 @@
|
|||
</div>
|
||||
|
||||
{{ if hugo.IsProduction }}
|
||||
{{ $site := resources.Get "js/voting.js" }}
|
||||
{{ if hugo.IsProduction }}
|
||||
{{ $site = $site | minify | fingerprint | resources.PostProcess }}
|
||||
{{ end }}
|
||||
<script src="{{ $site.RelPermalink }}" integrity="{{ $site.Data.Integrity }}"></script>
|
||||
{{ $site = resources.Get "js/voting.js" | minify | fingerprint | resources.PostProcess }}
|
||||
<script src="{{ $site.RelPermalink }}" integrity="{{ $site.Data.Integrity }}"></script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
<script type="text/javascript">
|
||||
refresh({{ $name }})
|
||||
</script>
|
||||
</script>
|
||||
{{ else }}
|
||||
<p>debug: {{ $name }}</p>
|
||||
<p style="text-align: center">Voting is disabled in development mode.</p>
|
||||
{{ end }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
<h3>Recent Blog Posts</h3>
|
||||
<div class="generic-con">
|
||||
|
||||
{{ range first 3 (where .Site.Pages "Type" "blog").ByDate.Reverse }}
|
||||
<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 }}
|
||||
|
||||
{{ end }}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue