layouts: overlay hugo-ink layouts for SA and Utterances [deploy]

This commit is contained in:
Harsh Shandilya 2022-01-06 11:15:18 +05:30
parent d7c5b92562
commit a74a24d7fc
2 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,46 @@
<!DOCTYPE html>
<html>
{{ partial "header.html" . }}
<body>
<div class="container wrapper">
{{ partial "head.html" . }}
<div class="post">
<div class="post-header">
{{ if ne .Date.Year 1 }}
<div class="meta">
<div class="date">
<span class="day">{{ dateFormat "02" .Date }}</span>
<span class="rest">{{ if $.Site.Data.month }}{{ index $.Site.Data.month (printf "%d" .Date.Month) }} {{ .Date.Year }}{{ else }}{{ dateFormat "Jan 2006" .Date }}{{ end }}</span>
</div>
</div>
{{ end }}
<div class="matter">
<h1 class="title">{{ .Title }}</h1>
</div>
</div>
<div class="markdown">
{{ .Content }}
</div>
<div class="tags">
{{ if ne .Type "page" }}
{{ if gt .Params.tags 0 }}
<ul class="flat">
{{ range .Params.tags }}
<li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
{{ end }}
</ul>
{{ end }}
{{ end }}
</div>
{{- if and (isset .Site.Params "utterancesrepo") (and (not .Site.IsServer) (not .Site.BuildDrafts)) -}}
{{ partial "utterances.html" . }}
{{- end -}}
</div>
</div>
{{ partial "footer.html" . }}
</body>
</html>

View File

@ -0,0 +1,10 @@
<div class="footer wrapper">
<nav class="nav">
<div>{{ dateFormat "2006" now }} {{ with .Site.Copyright }} {{ . | safeHTML }} | {{ end }} <a href="https://github.com/knadh/hugo-ink">Ink</a> theme on <a href="https://gohugo.io">Hugo</a></div>
</nav>
</div>
{{ partial "simple_analytics.html" . }}
{{- with .Site.Params.Social -}}
<script>feather.replace()</script>
{{- end -}}