forked from laurens/fediversity_website
Aanpassen template zodat deze modulair is
This commit is contained in:
parent
d22e405452
commit
ef3be36585
30
themes/nluug/layouts/_default/baseof.html
Normal file
30
themes/nluug/layouts/_default/baseof.html
Normal file
|
@ -0,0 +1,30 @@
|
|||
{{ $currentLang := $.Site.Language.Lang }}
|
||||
<!doctype html>
|
||||
<html lang="{{ $currentLang | default "nl" }}">
|
||||
{{ partial "head.html" . }}
|
||||
<body>
|
||||
<a class="skip-link" href="#main">Ga naar hoofd</a>
|
||||
<main id="main">
|
||||
<div class="content">
|
||||
{{ partial "header.html" . }}
|
||||
<section>
|
||||
<!-- <h2 class="post">{{ .Title }}</h2> -->
|
||||
{{- block "main" . }}
|
||||
{{ .Content }}
|
||||
{{- end }}
|
||||
{{ 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>
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
|
@ -1,33 +1,3 @@
|
|||
<!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>
|
||||
{{ define "content" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
|
|
|
@ -1,13 +1,6 @@
|
|||
<!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" . }}
|
||||
{{ .Content }}
|
||||
{{ if gt (len ( where .Site.RegularPages "Section" "posts" )) 0 }}
|
||||
{{ define "content" }}
|
||||
{{ .Content }}
|
||||
{{ if gt (len ( where .Site.RegularPages "Section" "posts" )) 0 }}
|
||||
<h1>Latest Post</h1>
|
||||
<section>
|
||||
{{ range (first 3 (where .Site.RegularPages "Section" "posts" ).ByDate.Reverse) }}
|
||||
|
@ -17,8 +10,5 @@
|
|||
<p>
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ end }}
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
@ -1,24 +1,14 @@
|
|||
<!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" . }}
|
||||
{{ .Content }}
|
||||
<section>
|
||||
<p>Meer weten?</p>
|
||||
<ul class="list">
|
||||
{{ range .Pages }}
|
||||
<li>
|
||||
<a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
<section>
|
||||
<p>Relevante pagina's:</p>
|
||||
<ul class="list">
|
||||
{{ range .Pages }}
|
||||
<li>
|
||||
<a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
|
14
themes/nluug/layouts/organisatie/section.html
Normal file
14
themes/nluug/layouts/organisatie/section.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
<section>
|
||||
<p>Relevante pagina's:</p>
|
||||
<ul class="list">
|
||||
{{ range .Pages }}
|
||||
<li>
|
||||
<a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
{{ end }}
|
Reference in a new issue