diff options
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 105 |
1 files changed, 37 insertions, 68 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e28413d..7c95390 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,71 +1,40 @@ {{ define "main" }} -<article> - <div id="post-header-cover" class="w-100 vh-50 dt bg-center cover bg-black-30 pt4" - {{ with .Params.coverimage }} - style="background-image:url({{ . }})" - {{ end }} > - <header class="dt pa2 pa5-ns mw7 center post-header white"> - <h1 class="f1 lh-title"> - {{ .Title }}</h1> - - {{ if not (eq .Params.showMeta false) }} - <div class="f4 tracked mb3">{{ .Date.Format "Mon, Jan 2, 2006" }}</div> - {{ partial "meta.html" . }} - {{ end }} - </header> - </div> - - <div id="content" class="bg-near-white"> - <div class="mw7 center lh-copy pv4 ph2 black-70"> - {{ .Content }} - </div> - - <footer class="mw7 center ph3 pb2 bt bb cf b--black-50"> - {{ with .Params.tags }} - <div class="fl-ns w-50-ns mb2"> - - <h5 class="f5 ttu black-60"><i class="fa fa-lg fa-tags"></i> Tagged in</h5> - {{ range . }} - <a class="f5 link br1 ph3 pv2 blue dib hover-bg-light-blue hover-white ba" - href="{{ $.Site.LanguagePrefix }}/tags/{{ . | urlize }}/">{{ . }}</a> - {{ end }} - </div> - {{ end }} - - <div class="fl-ns w-50-ns mb2"> - <h5 class="f5 ttu black-60"><i class="fa fa-lg fa-share-alt"></i> Share in Social Networks</h5> - {{ range .Site.Params.sharingOptions }} - <a class="f4 link br1 ph3 pv2 blue dib hover-bg-light-blue hover-white ba" target="new" href="{{ printf .url $.Permalink }}"> - <i class="fa {{ .icon }}"></i> - </a> - {{ end }} - </div> - </footer> - - <!-- Pagination Actions for posts --> - {{ if not (eq .Params.showActions false) }} - <div class="mv3 tc"> - {{ with .NextInSection }} - <a href="{{ .RelPermalink }}" class="dib f4 link br1 ma1 pa2 blue hover-bg-light-blue hover-white ba"> - <i class="fa fa-angle-left"></i> Newer <br/> - {{ .Title }} - </a> - {{ end}} - - {{ with .PrevInSection }} - <a href="{{ .RelPermalink }}" class="dib f4 link br1 ma1 pa2 blue hover-bg-light-blue hover-white ba"> - Older <i class="fa fa-angle-right"></i> <br/> - {{ .Title }} - </a> - {{ end}} - </div> - {{ end}} - - {{ if not (eq .Params.comments false) }} - <div class="mw7 center mv4 pa2"> - {{ template "_internal/disqus.html" . }} - </div> + <header class="max-w-screen-md mx-auto"> + <h1 class="baskerville px-1"> + {{ .Title }} + </h1> + + {{ with .Params.subtitle }} + <h3 class="text-2xl baskerville my-4 p-1">{{ . }}</h3> + {{ end }} + + {{ partial "meta_links.html" . }} + {{ if .Params.metadata }} + {{ partial "metadata.html" . }} + {{ end }} + + {{ partial "leading_image.html" . }} + </header> + <div class="main-content max-w-screen-md mx-auto px-1"> + {{ .Content }} + </div> + {{ partial "image-gallery" . }} + + {{ if .Site.Params.tipping }} + {{ partial "tipping" . }} + {{ end }} + <div class="py-2"> + {{ if in (slice "post" "talk") .Section }} + {{ range .Params.authors }} + {{ $name := . }} + {{ $path := printf "/%s/%s" "authors" ( $name | urlize ) }} + {{ with $.GetPage $path }} + {{ if .File }} + {{ partial "author_card" (merge .Params (dict "path" $path )) }} + {{ end }} {{ end }} - </div> -</article> + {{ end }} + {{ end }} + {{ partial "post_pager" . }} + </div> {{ end }} |