change to hugo-blog-awesome theme
This commit is contained in:
parent
113e3650f1
commit
15b6142a8e
131 changed files with 5895 additions and 124 deletions
23
themes/hugo-blog-awesome/layouts/_default/single.html
Normal file
23
themes/hugo-blog-awesome/layouts/_default/single.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
{{ define "main" }}
|
||||
<div class="wrapper post">
|
||||
<main class="page-content" aria-label="Content">
|
||||
<article>
|
||||
<header class="header">
|
||||
<h1 class="header-title">{{ .Title }}</h1>
|
||||
{{ $configDateFormat := .Site.Params.dateFormat | default ":date_medium" }}
|
||||
{{ with .Date }}
|
||||
{{ $ISO_time := dateFormat "2006-01-02T15:04:05-07:00" . }}
|
||||
<div class="post-meta">
|
||||
<time datetime="{{ $ISO_time }}" itemprop="datePublished"> {{ . | time.Format $configDateFormat }} </time>
|
||||
</div>
|
||||
{{ end }}
|
||||
</header>
|
||||
{{ partial "toc.html" .}}
|
||||
<div class="page-content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
{{- partial "comments.html" . -}}
|
||||
</main>
|
||||
</div>
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue