casper3 | new theme!
This commit is contained in:
parent
afc968f2fd
commit
79bd0dfa77
27 changed files with 1989 additions and 0 deletions
10
themes/casper3/layouts/partials/header-background.html
Normal file
10
themes/casper3/layouts/partials/header-background.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{{ if .Scratch.Get "background" }}
|
||||
<style type="text/css">
|
||||
.responsive-header-img {
|
||||
background-image: url('{{ .Scratch.Get "background" }}');
|
||||
}
|
||||
</style>
|
||||
<div class="outer site-header-background responsive-header-img">
|
||||
{{ else }}
|
||||
<div class="outer site-header-background no-image">
|
||||
{{ end }}
|
||||
1
themes/casper3/layouts/partials/icons/avatar.html
Normal file
1
themes/casper3/layouts/partials/icons/avatar.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M3.513 18.998C4.749 15.504 8.082 13 12 13s7.251 2.504 8.487 5.998C18.47 21.442 15.417 23 12 23s-6.47-1.558-8.487-4.002zM12 12c2.21 0 4-2.79 4-5s-1.79-4-4-4-4 1.79-4 4 1.79 5 4 5z" fill="#FFF"/></g></svg>
|
||||
|
After Width: | Height: | Size: 307 B |
1
themes/casper3/layouts/partials/icons/facebook.html
Normal file
1
themes/casper3/layouts/partials/icons/facebook.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M16 0c8.837 0 16 7.163 16 16s-7.163 16-16 16S0 24.837 0 16 7.163 0 16 0zm5.204 4.911h-3.546c-2.103 0-4.443.885-4.443 3.934.01 1.062 0 2.08 0 3.225h-2.433v3.872h2.509v11.147h4.61v-11.22h3.042l.275-3.81h-3.397s.007-1.695 0-2.187c0-1.205 1.253-1.136 1.329-1.136h2.054V4.911z" /></svg>
|
||||
|
After Width: | Height: | Size: 350 B |
11
themes/casper3/layouts/partials/icons/loader.html
Normal file
11
themes/casper3/layouts/partials/icons/loader.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<svg version="1.1" id="loader-1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
|
||||
y="0px" width="40px" height="40px" viewBox="0 0 40 40" enable-background="new 0 0 40 40" xml:space="preserve">
|
||||
<path opacity="0.2" fill="#000" d="M20.201,5.169c-8.254,0-14.946,6.692-14.946,14.946c0,8.255,6.692,14.946,14.946,14.946
|
||||
s14.946-6.691,14.946-14.946C35.146,11.861,28.455,5.169,20.201,5.169z M20.201,31.749c-6.425,0-11.634-5.208-11.634-11.634
|
||||
c0-6.425,5.209-11.634,11.634-11.634c6.425,0,11.633,5.209,11.633,11.634C31.834,26.541,26.626,31.749,20.201,31.749z" />
|
||||
<path fill="#000" d="M26.013,10.047l1.654-2.866c-2.198-1.272-4.743-2.012-7.466-2.012h0v3.312h0
|
||||
C22.32,8.481,24.301,9.057,26.013,10.047z">
|
||||
<animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 20 20" to="360 20 20"
|
||||
dur="0.5s" repeatCount="indefinite" />
|
||||
</path>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 923 B |
1
themes/casper3/layouts/partials/icons/rss.html
Normal file
1
themes/casper3/layouts/partials/icons/rss.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="6.18" cy="17.82" r="2.18"/><path d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17 7.07 7.07h2.83c0-5.47-4.43-9.9-9.9-9.9z"/></svg>
|
||||
|
After Width: | Height: | Size: 262 B |
1
themes/casper3/layouts/partials/icons/twitter.html
Normal file
1
themes/casper3/layouts/partials/icons/twitter.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M30.063 7.313c-.813 1.125-1.75 2.125-2.875 2.938v.75c0 1.563-.188 3.125-.688 4.625a15.088 15.088 0 0 1-2.063 4.438c-.875 1.438-2 2.688-3.25 3.813a15.015 15.015 0 0 1-4.625 2.563c-1.813.688-3.75 1-5.75 1-3.25 0-6.188-.875-8.875-2.625.438.063.875.125 1.375.125 2.688 0 5.063-.875 7.188-2.5-1.25 0-2.375-.375-3.375-1.125s-1.688-1.688-2.063-2.875c.438.063.813.125 1.125.125.5 0 1-.063 1.5-.25-1.313-.25-2.438-.938-3.313-1.938a5.673 5.673 0 0 1-1.313-3.688v-.063c.813.438 1.688.688 2.625.688a5.228 5.228 0 0 1-1.875-2c-.5-.875-.688-1.813-.688-2.75 0-1.063.25-2.063.75-2.938 1.438 1.75 3.188 3.188 5.25 4.25s4.313 1.688 6.688 1.813a5.579 5.579 0 0 1 1.5-5.438c1.125-1.125 2.5-1.688 4.125-1.688s3.063.625 4.188 1.813a11.48 11.48 0 0 0 3.688-1.375c-.438 1.375-1.313 2.438-2.563 3.188 1.125-.125 2.188-.438 3.313-.875z"/></svg>
|
||||
|
After Width: | Height: | Size: 888 B |
13
themes/casper3/layouts/partials/post-author.html
Normal file
13
themes/casper3/layouts/partials/post-author.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<ul class="author-list">
|
||||
<li class="author-list-item">
|
||||
<div class="author-card">
|
||||
<div class="author-profile-image">{{- partial "icons/avatar.html" -}}</div>
|
||||
<div class="author-info">
|
||||
<div class="author-info">
|
||||
<h2>{{ .Param "author" }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a href="#" class="author-avatar author-profile-image">{{- partial "icons/avatar.html" -}}</a>
|
||||
</li>
|
||||
</ul>
|
||||
49
themes/casper3/layouts/partials/post-card.html
Normal file
49
themes/casper3/layouts/partials/post-card.html
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<article class="post-card post
|
||||
{{ if not (.context.Param "featured_image") }} no-image
|
||||
{{ else }}
|
||||
{{ if (eq (mod .index 6) 0) }} post-card-large {{ end }}
|
||||
{{ end }} ">
|
||||
|
||||
{{ if .context.Param "featured_image" }}
|
||||
<a class="post-card-image-link" href="{{ .context.Permalink }}">
|
||||
<img class="post-card-image"src="{{ .context.Param "featured_image" }}" alt="{{ .context.Title }}"/>
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
<div class="post-card-content">
|
||||
|
||||
<a class="post-card-content-link" href="{{ .context.Permalink }}">
|
||||
|
||||
<header class="post-card-header">
|
||||
{{ with .context.Params.tags }}
|
||||
{{ $primaryTag := (index . 0) }}
|
||||
<div class="post-card-primary-tag">{{ $primaryTag }}</div>
|
||||
{{ end }}
|
||||
|
||||
<h2 class="post-card-title">{{ .context.Title }}</h2>
|
||||
</header>
|
||||
|
||||
<section class="post-card-excerpt">
|
||||
<p>{{ .context.Summary }}</p>
|
||||
</section>
|
||||
|
||||
</a>
|
||||
|
||||
<footer class="post-card-meta">
|
||||
<ul class="author-list">
|
||||
<li class="author-list-item">
|
||||
<div class="author-name-tooltip">{{ .context.Param "author" }}</div>
|
||||
<a href="#" class="static-avatar author-profile-image">{{- partial "icons/avatar.html" -}}</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="post-card-byline-content">
|
||||
<span>{{ .context.Param "author" }}</span>
|
||||
<span class="post-card-byline-date"><time datetime="{{ .context.Date.Format "2006-31-01" }}">{{ .context.Date.Format "2 January 2006" }}</time>
|
||||
<span class="bull">•</span> {{ .context.ReadingTime }} min read</span>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
17
themes/casper3/layouts/partials/post-navigation.html
Normal file
17
themes/casper3/layouts/partials/post-navigation.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
|
||||
<aside class="read-next outer">
|
||||
<div class="inner">
|
||||
<div class="read-next-feed">
|
||||
|
||||
{{- partial "read-next.html" . -}}
|
||||
|
||||
{{ with .PrevInSection}}
|
||||
{{- partial "post-card.html" (dict "context" . "index" 1) -}}
|
||||
{{end}}
|
||||
|
||||
{{ with .NextInSection}}
|
||||
{{- partial "post-card.html" (dict "context" . "index" 1) -}}
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
22
themes/casper3/layouts/partials/read-next.html
Normal file
22
themes/casper3/layouts/partials/read-next.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{{ with .Params.tags }}
|
||||
{{ $primaryTag := (index . 0) }}
|
||||
<article class="read-next-card">
|
||||
<header class="read-next-card-header">
|
||||
<h3><span>More in</span> <a href="{{ "/tags/" | relLangURL }}{{ $primaryTag | urlize }}">{{ $primaryTag }}</a></h3>
|
||||
</header>
|
||||
<div class="read-next-card-content">
|
||||
<ul>
|
||||
{{ range first 3 (where (index $.Site.Taxonomies.tags $primaryTag).Pages "Section" "post") }}
|
||||
<li>
|
||||
<h4><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
|
||||
<div class="read-next-card-meta">
|
||||
<p><time datetime="{{.Date.Format "2006-31-01"}}">{{.Date.Format "01 Jan 2006"}}</time>
|
||||
{{ if .Params.reading_time }} – {{ .Params.reading_time }} {{ end }}
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
6
themes/casper3/layouts/partials/site-header.html
Normal file
6
themes/casper3/layouts/partials/site-header.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<div class="outer site-nav-main">
|
||||
<div class="inner">
|
||||
{{- partial "site-nav.html" . -}}
|
||||
{{ partial "victorhugo.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
19
themes/casper3/layouts/partials/site-nav.html
Normal file
19
themes/casper3/layouts/partials/site-nav.html
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<nav class="site-nav">
|
||||
<div class="site-nav-left">
|
||||
{{ if eq $.Site.Params.logo "thisshouldfail" }}
|
||||
<a class="site-nav-logo" href="{{ $.Site.BaseURL }}"><img src="{{ $.Site.Params.logo }}" alt="{{ $.Site.Title }}" /></a>
|
||||
{{ else }}
|
||||
<a class="site-nav-logo" href="{{ $.Site.BaseURL }}">{{ $.Site.Title }}</a>
|
||||
{{ end }}
|
||||
|
||||
<div class="site-nav-content">
|
||||
<ul class="nav" role="menu">
|
||||
{{ range $.Site.Menus.main }}
|
||||
<li class="nav-home" role="menuitem"><a href="{{ .URL }}">{{- .Name -}}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
1571
themes/casper3/layouts/partials/victorhugo.html
Normal file
1571
themes/casper3/layouts/partials/victorhugo.html
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue