Switch to hugo-bearblog theme
This commit is contained in:
20
layouts/_default/single.html
Normal file
20
layouts/_default/single.html
Normal file
@ -0,0 +1,20 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ if eq .Type "blog" }}{{ if not .Params.menu }}
|
||||
<p>
|
||||
<i>
|
||||
<time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
|
||||
{{ .Date.Format (default "02 Jan, 2006" .Site.Params.dateFormat) }}
|
||||
</time>
|
||||
</i>
|
||||
</p>
|
||||
{{ end }}{{ end }}
|
||||
<content>
|
||||
{{ .Content }}
|
||||
</content>
|
||||
<p>
|
||||
{{ range (.GetTerms "tags") }}
|
||||
<a href="{{ .Permalink }}">#{{ .LinkTitle }}</a>
|
||||
{{ end }}
|
||||
</p>
|
||||
{{ end }}
|
@ -1,15 +0,0 @@
|
||||
{{ $css := resources.Get "css/comments.css" }}
|
||||
{{ $style := $css | resources.Minify }}
|
||||
|
||||
<script defer
|
||||
src="https://commento.bbaovanc.com/js/commento.js"
|
||||
data-page-id="{{ .RelPermalink }}"
|
||||
data-no-fonts="true"
|
||||
data-css-override="{{ $style.Permalink }}">
|
||||
</script>
|
||||
<div id="commento"></div>
|
||||
|
||||
<noscript>
|
||||
<br />
|
||||
<b>Comments are not available when JavaScript is disabled.</b>
|
||||
</noscript>
|
Reference in New Issue
Block a user