semantic-indieweb/layouts/_default/single.html

20 lines
718 B
HTML
Raw Normal View History

{{/* This will override the default value set in baseof.html; i.e., "{{.Site.Title}}" in the original example */}}
{{ define "title" }}
{{ .Title }} – {{ .Site.Title }}
{{ end }}
{{ define "content-header" }}
<h1 class="p-name u-url"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
<p>
Published by <a class="p-author h-card" href="{{ .Site.BaseURL }}">{{ .Site.Params.Card.Author }}</a> on
<time class="dt-published" datetime="{{ .Date }}">{{ .Date.Format "January 2, 2006" }}</time>
</p>
{{ end }}
{{ define "content" }}
<article class="e-content">
{{ .Content }}
</article>
{{ end }}
{{ define "content-footer" }}
{{ partial "webmentions.html" . }}
{{ partial "prev-next-page.html" . }}
{{ end }}