Fork of the Hugo theme hyde-hyde that introduces some necessary cleanup and changes.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

63 lines
3.1 KiB

{{ $include_toc := .Params.include_toc}}
<article>
<header>
<h1>{{ .Title }}</h1>
{{ with .Params.subtitle }}
<span class="post__subtitle">
{{.}}
</span>
{{ end }}
{{ partial "page-single/post-meta.html" . }}
</header>
{{ $screenshotsExist := .Params.screenshots }}
{{ if $screenshotsExist }}
<a href={{ .Params.screenshots.s1.file }} target="_blank" rel="noopener noreferrer"><img class="project__image project__first-screen img-responsive" src="{{ .Params.screenshots.s1.file }}" alt="{{ .Params.screenshots.s1.caption }}" title="{{ .Params.screenshots.s1.caption }}"></a>
{{ end }}
{{ $artworksExist := .Params.artworks }}
{{ if $artworksExist }}
<a href={{ .Params.artworks.s1.file }} target="_blank" rel="noopener noreferrer"><img class="project__image project__first-screen img-responsive" src="{{ .Params.artworks.s1.file }}" alt="{{ .Params.artworks.s1.caption }}" title="{{ .Params.artworks.s1.caption }}"></a>
{{ end }}
{{ $tableOfContents := .TableOfContents }}
{{ with .Site.Params.toc }}
{{ if ne $include_toc false }}
<div class="toc-wrapper">
<input type="checkbox" id="tocToggle">
<label for="tocToggle">Table of Content</label>
{{ if eq . "hugo" }}
{{ $tableOfContents }}
{{ else if eq . "tocbot"}}
<div class="toc" id="TableOfContents"></div>
{{ end }}
{{ if $screenshotsExist }}
<a href=#additional-screenshots>Additional Screenshots</a>
{{ end }}
</div>
{{ end }}
{{ end }}
<div class="post">
{{ .Content }}
</div>
{{ if $artworksExist }}
<p xmlns:cc="http://creativecommons.org/ns#" >This work ©{{ .Params.date.Year }} by <a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="https://diskseven.com">Johanna Decker</a> is licensed under <a href="http://creativecommons.org/licenses/by-nc-nd/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY-NC-ND 4.0
<img class="inline" src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1">
<img class="inline" src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1">
<img class="inline" src="https://mirrors.creativecommons.org/presskit/icons/nc.svg?ref=chooser-v1">
<img class="inline" src="https://mirrors.creativecommons.org/presskit/icons/nd.svg?ref=chooser-v1"></a></p>
{{ end }}
{{ if $screenshotsExist }}
<h2 id=additional-screenshots>Additional Screenshots</h2>
<div class = "project__additional-screens">
{{ range $index, $element := $screenshotsExist }}
{{ if not (eq $index "s1") }}
<div class = "project__single-screen">
<a href={{ .file }} target="_blank" rel="noopener oreferrer"><img class="project__image project__extra-screen img-responsive" src="{{ .file }}" alt="{{ .caption }}" title="{{ .caption }}"></a>
</div>
{{ end }}
{{ end }}
</div>
{{ end }}
{{ partial "page-single/post-navigation.html" . }}
{{ partial "page-single/post-related.html" . }}
{{ partial "page-single/post-comment.html" . }}
</article>