diff options
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 68 |
1 files changed, 35 insertions, 33 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e1f47f9..6892d74 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,38 +4,40 @@ {{ if .Params.Author }} {{ $author = .Params.Author }} {{ end }} -<article class="h-entry"> - <header> - <h1 class="post-title p-name">{{ .Title }}</h1> - {{ if not .Params.Menu }} - <p class="post-date">Posted on - <time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}"> - {{ .PublishDate.Format "2 January, 2006 at 15:04 MST" }} - </time> {{ if $author }} by <a href="{{ .Site.BaseURL }}" class="p-author h-card" rel="author">{{ $author }}</a>{{ end }} - </p> - {{ end }} - {{ if .Params.categories }} - <p class="post-tag">Category: - {{ range .Params.categories }} - <a href="{{ $baseurl }}/categories/{{ . | urlize }}" class="post-tag p-category">{{ . }}</a> +<div id="content"> + <article class="h-entry"> + <header> + <h1 class="post-title p-name">{{ .Title }}</h1> + {{ if not .Params.Menu }} + <p class="post-date">Posted on + <time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}"> + {{ .PublishDate.Format "2 January, 2006 at 15:04 MST" }} + </time> {{ if $author }} by <a href="{{ .Site.BaseURL }}" class="p-author h-card" rel="author">{{ $author }}</a>{{ end }} + </p> {{ end }} - </p> - <hr class="post-underline"> - {{ end }} - </header> - <section class="content e-content"> - {{ .Content }} - </section> - <footer> - <a class="permalink u-url" href="{{ .Permalink }}">{{ .Site.Params.PermalinkText }}</a> - {{ if .Params.tags }} - <hr class="post-underline"> - <p class="post-tag">Tags for this post: - {{ range .Params.tags }} - <a href="{{ $baseurl }}/tags/{{ . | urlize }}" class="post-tag p-category">{{ . }}</a> - {{ end }} - </p> - {{ end }} - </footer> -</article> + {{ if .Params.categories }} + <p class="post-tag">Category: + {{ range .Params.categories }} + <a href="{{ $baseurl }}/categories/{{ . | urlize }}" class="post-tag p-category">{{ . }}</a> + {{ end }} + </p> + <hr class="post-underline"> + {{ end }} + </header> + <section class="content e-content"> + {{ .Content }} + </section> + <footer> + <a class="permalink u-url" href="{{ .Permalink }}">{{ .Site.Params.PermalinkText }}</a> + {{ if .Params.tags }} + <hr class="post-underline"> + <p class="post-tag">Tags for this post: + {{ range .Params.tags }} + <a href="{{ $baseurl }}/tags/{{ . | urlize }}" class="post-tag p-category">{{ . }}</a> + {{ end }} + </p> + {{ end }} + </footer> + </article> +</div> {{ partial "footer.html" . }} |