Zebra/themes/casper/layouts/_default/single.html

71 lines
1.9 KiB
HTML
Raw Normal View History

2020-08-05 17:22:00 +02:00
{{ partial "header.html" . }}
{{if .Params.image}}
{{if or (eq (substr .Params.image 0 7) "http://") (eq (substr .Params.image 0 8) "https://")}}
<header class="main-header post-head" style="background-image: url({{.Params.image }})">
{{ else }}
<header class="main-header post-head" style="background-image: url({{.Params.image | relURL}})">
{{ end }}
<nav class="main-nav overlay clearfix">
{{else}}
<header class="main-header post-head no-cover">
<nav class="main-nav clearfix">
{{end}}
{{ if .Site.Params.logo }}
<a class="blog-logo" href="{{.Site.BaseURL}}"><img src="{{ .Site.Params.logo | relURL}}" alt="Home" /></a>
{{end}}
{{ if .Site.Menus.main }}
<a class="menu-button" href="#"><span class="burger">&#9776;</span><span class="word">Menu</span></a>
{{else}}
<a class="menu-button icon-feed" href="{{ "index.xml"| relURL}}" >&nbsp;&nbsp;Subscribe</a>
{{end}}
</nav>
</header>
<main class="content" role="main">
<article class="post {{ .Section }}">
<section class="post-content">
<header class="post-header">
<h1 class="post-title">{{.Title}}</h1>
<small>{{.Description}}</small>
<section class="post-meta">
{{ if eq .Section "post"}}
<time class="post-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
{{ .Date.Format "Jan 2, 2006" }}
</time>
{{end}}
{{ range .Params.tags }}
<span class="post-tag small"><a href="{{$.Site.BaseURL}}/tags/{{ . | urlize }}/">#{{ . }}</a></span>
{{ end }}
</section>
</header>
{{ .Content }}
</section>
<footer class="post-footer">
{{ partial "author.html" . }}
</footer>
</article>
</main>
{{if not .Params.hideSuggestions }}
{{ partial "suggestions.html" . }}
{{ end }}
{{ partial "footer.html" . }}