initial commit
This commit is contained in:
32
themes/hugo-dpsg/layouts/_default/single.html
Normal file
32
themes/hugo-dpsg/layouts/_default/single.html
Normal file
@@ -0,0 +1,32 @@
|
||||
{{ define "main" }}
|
||||
<main class="main" role="main">
|
||||
<article class="post">
|
||||
<header class="post__header">
|
||||
<h1 class="post__title">{{ .Title }}</h1>
|
||||
{{- with .Params.lead }}
|
||||
<p class="post__lead">{{ . }}</p>
|
||||
{{- end }}
|
||||
{{ with partial "post_meta.html" . -}}
|
||||
<div class="post__meta meta">{{ . }}</div>
|
||||
{{- end }}
|
||||
</header>
|
||||
{{- if .Params.thumbnail }}
|
||||
<figure class="post__thumbnail">
|
||||
<img src="{{ .Params.thumbnail | relURL }}" alt="{{ .Title }}">
|
||||
</figure>
|
||||
{{- end }}
|
||||
{{- partial "post_toc.html" . -}}
|
||||
<div class="content post__content clearfix">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{- if .Params.tags }}
|
||||
<footer class="post__footer">
|
||||
{{ partial "post_tags.html" . }}
|
||||
</footer>
|
||||
{{- end }}
|
||||
</article>
|
||||
</main>
|
||||
{{ partial "authorbox.html" . }}
|
||||
{{ partial "post_nav.html" . }}
|
||||
{{ partial "comments.html" . }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user