DRAFT | new theme - minimage
This commit is contained in:
parent
5116fe4640
commit
ac8d9e7eb3
90 changed files with 15302 additions and 1 deletions
12
themes/minimage/layouts/_default/baseof.html
Normal file
12
themes/minimage/layouts/_default/baseof.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{{ partial "head" . }}
|
||||
|
||||
<body>
|
||||
{{ partial "header" . }}
|
||||
|
||||
<main class="c-main-content">
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
|
||||
{{ partial "footer" . }}
|
||||
</body>
|
||||
</html>
|
||||
16
themes/minimage/layouts/_default/home.html
Normal file
16
themes/minimage/layouts/_default/home.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{{ define "main" }}
|
||||
{{ $pages := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) 5 }}
|
||||
|
||||
<div class="p-archive">
|
||||
<div class="c-container">
|
||||
<ul class="c-archive-list">
|
||||
{{ range $pages.Pages }}
|
||||
{{ .Render "li" }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
{{ partial "pagenation.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
19
themes/minimage/layouts/_default/li.html
Normal file
19
themes/minimage/layouts/_default/li.html
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<li class="c-archive-list__item">
|
||||
<a class="c-post{{ if .Params.image }} c-post--has-thumb c-bg-img{{end}}" {{ if .Params.image }}style="background-image: url('{{ .Params.image | absURL }}')"{{ end }} href="{{ .Permalink }}">
|
||||
<header class="c-post__header c-post__header--over-img">
|
||||
<p class="c-post__title">{{ .Title }}</p>
|
||||
<div class="c-post__header__meta">
|
||||
<time class="c-pub-time" datetime="{{ .Date.Format " 2006-01-02T15:04:05Z07:00 " | safeHTML }}">
|
||||
{{ .Lastmod.Format ( .Site.Params.dateformat | default "2006.01.02") }}
|
||||
</time>
|
||||
{{ if .Params.tags }}
|
||||
<div class="c-tag">
|
||||
{{ range .Params.tags }}
|
||||
<span class="c-tag__item">{{ . }}</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</header>
|
||||
</a>
|
||||
</li>
|
||||
17
themes/minimage/layouts/_default/list.html
Normal file
17
themes/minimage/layouts/_default/list.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{{ define "main" }}
|
||||
{{ $pages := .Pages }}
|
||||
{{ $paginator := .Paginate $pages }}
|
||||
|
||||
<div class="p-archive">
|
||||
<div class="c-container">
|
||||
<ul class="c-archive-list">
|
||||
{{ range $pages }}
|
||||
{{ .Render "li" }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
{{ partial "pagenation.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
38
themes/minimage/layouts/_default/single.html
Normal file
38
themes/minimage/layouts/_default/single.html
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{{ define "main" }}
|
||||
<div class="p-single">
|
||||
<div class="c-container">
|
||||
<article class="c-post">
|
||||
<header class="c-post__header">
|
||||
<h1 class="c-post__title">{{ .Title }}</h1>
|
||||
<div class="c-post__header__meta">
|
||||
<time class="c-pub-time" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
|
||||
{{ .Lastmod.Format ( .Site.Params.dateformat | default "2006.01.02") }}
|
||||
</time>
|
||||
{{ if .Params.tags }}
|
||||
<div class="c-tag">
|
||||
{{ range .Params.tags }}
|
||||
<a class="c-tag__item c-link" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ if .Params.image }}
|
||||
<div class="c-thumb c-bg-img" style="background-image: url('{{ .Params.image | absURL }}')"></div>
|
||||
{{ end }}
|
||||
</header>
|
||||
<div class="c-post__body">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
<footer class="c-post__footer">
|
||||
{{ partial "share.html" . }}
|
||||
|
||||
{{ partial "pager.html" . }}
|
||||
|
||||
{{ partial "related.html" . }}
|
||||
</footer>
|
||||
{{ partial "json-single.html" . }}
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
16
themes/minimage/layouts/_default/terms.html
Normal file
16
themes/minimage/layouts/_default/terms.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{{ define "main" }}
|
||||
|
||||
<div class="p-taxonomy">
|
||||
<div class="c-container">
|
||||
<ul class="c-taxonomy-list">
|
||||
{{ $data := .Data }}
|
||||
{{ range $key, $value := $data.Terms }}
|
||||
<li class="c-taxonomy-list__item">
|
||||
<a class="c-link" href="/{{ $data.Plural }}/{{ $key | urlize }}">{{ $key }}</a><span>({{ len $value }})</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue