71 lines
1.9 KiB
HTML
71 lines
1.9 KiB
HTML
|
{{ 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">☰</span><span class="word">Menu</span></a>
|
||
|
{{else}}
|
||
|
<a class="menu-button icon-feed" href="{{ "index.xml"| relURL}}" > 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" . }}
|