Kloon van Maverick-thema naar custom-thema
This commit is contained in:
parent
9072f86867
commit
1e1d536e3d
65 changed files with 2923 additions and 1 deletions
8
themes/nluug/layouts/_default/_markup/render-image.html
Normal file
8
themes/nluug/layouts/_default/_markup/render-image.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
<img
|
||||
src="{{ .Destination | safeURL }}"
|
||||
alt="{{ .Text }}"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
class="full-width"
|
||||
/>
|
||||
|
24
themes/nluug/layouts/_default/list.html
Normal file
24
themes/nluug/layouts/_default/list.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
{{ partial "head.html" . }}
|
||||
<body>
|
||||
<a class="skip-link" href="#main">Skip to main</a>
|
||||
<main id="main">
|
||||
<div class="content">
|
||||
{{ partial "header.html" . }}
|
||||
<section>
|
||||
<ul reversed class="list">
|
||||
{{ range .Pages }}
|
||||
<li>
|
||||
<a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}
|
||||
</a>
|
||||
<hr class="hr-list">
|
||||
<time class="g time" datetime="{{ dateFormat "2006-01-02" .Date }}">{{ dateFormat "02/01/06" .Date }}</time>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
32
themes/nluug/layouts/_default/single.html
Normal file
32
themes/nluug/layouts/_default/single.html
Normal file
|
@ -0,0 +1,32 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
{{ partial "head.html" . }}
|
||||
<body>
|
||||
<a class="skip-link" href="#main">Skip to main</a>
|
||||
<main id="main">
|
||||
<div class="content">
|
||||
{{ partial "header.html" . }}
|
||||
<section>
|
||||
<h2 class="post">{{ .Title }}</h2>
|
||||
{{ .Content }}
|
||||
{{ if eq .Section "posts" }}
|
||||
<div class="post-date">
|
||||
<span class="g time">{{.Date.Format "January 2, 2006"}} </span> ∙
|
||||
{{ $taxonomy := "tags" }} {{ with .Param $taxonomy }}
|
||||
{{ range $index, $tag := . }} {{ with $.Site.GetPage (printf "/%s/%s"
|
||||
$taxonomy $tag) -}}
|
||||
<a href="{{ .Permalink }}">{{ $tag | urlize }}</a>
|
||||
{{- end -}} {{- end -}}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ if eq .Section "posts" }}
|
||||
<div id="comments">
|
||||
{{ partial "comments.html" $ }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue