casper3 | new theme!
This commit is contained in:
parent
afc968f2fd
commit
79bd0dfa77
27 changed files with 1989 additions and 0 deletions
71
themes/casper3/layouts/_default/single.html
Normal file
71
themes/casper3/layouts/_default/single.html
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
{{ define "body_class" }} post-template {{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
|
||||
<header class="site-header">
|
||||
{{- partial "site-header.html" $ -}}
|
||||
</header>
|
||||
|
||||
<main id="site-main" class="site-main outer">
|
||||
<div class="inner">
|
||||
|
||||
<article class="post-full post {{ if not (.Param "featured_image") }} no-image {{ end }}">
|
||||
|
||||
<header class="post-full-header">
|
||||
|
||||
{{ with .Params.tags }}
|
||||
{{ $primaryTag := (index . 0) }}
|
||||
<section class="post-full-tags">
|
||||
<a href="{{ "/tags/" | relLangURL }}{{ $primaryTag | urlize }}">{{ $primaryTag }}</a>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
<h1 class="post-full-title">{{ .Title }}</h1>
|
||||
|
||||
{{ if .Param "summary" }}
|
||||
<p class="post-full-custom-excerpt">{{ .Summary }}</p>
|
||||
{{ end }}
|
||||
|
||||
<div class="post-full-byline">
|
||||
<section class="post-full-byline-content">
|
||||
|
||||
{{ if .Param "author" }}
|
||||
{{- partial "post-author.html" . -}}
|
||||
{{ end }}
|
||||
|
||||
<section class="post-full-byline-meta">
|
||||
{{ if .Param "author" }}
|
||||
<h4 class="author-name">{{ .Param "author" }}</h4>
|
||||
{{ end }}
|
||||
<div class="byline-meta-content">
|
||||
<time class="byline-meta-date" datetime="{{.Date.Format "2006-31-01"}}">{{.Date.Format "2 January 2006"}}</time>
|
||||
<span class="byline-reading-time"><span class="bull">•</span> {{ .ReadingTime }} min read</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{ if .Param "featured_image" }}
|
||||
<figure class="post-full-image">
|
||||
<img src="{{ .Param "featured_image" }}" alt="{{ .Title }}" />
|
||||
</figure>
|
||||
{{ end }}
|
||||
|
||||
<section class="post-full-content">
|
||||
<div class="post-content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</article>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{{- partial "post-navigation.html" . -}}
|
||||
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue