adds utility to put partials under page content
This commit is contained in:
@ -1,12 +1,17 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<article class="single-default">
|
||||
|
||||
<header class="mb-4">{{ partial "article-wompum.html" . }}</header>
|
||||
|
||||
<div class="prose lg:prose-xl p-4 mx-auto">
|
||||
<p class="font-bold text-4xl">{{ .Title }}</p>
|
||||
{{ .Content }}
|
||||
|
||||
{{/* Check for additional partials to include */}}
|
||||
{{ with .Params.include_partials }}
|
||||
{{ range . }}
|
||||
{{ partial . $ }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
20
layouts/partials/facilitator-list.html
Normal file
20
layouts/partials/facilitator-list.html
Normal file
@ -0,0 +1,20 @@
|
||||
<section>
|
||||
<h2 class="text-4xl mb-4 font-iosevka">Facilitators</h2>
|
||||
<div class="tag-cloud font-iosevka text-gray-600">
|
||||
{{ $facilitators := slice }}
|
||||
{{ range .Site.RegularPages }}
|
||||
{{ with .Params.facilitator }}
|
||||
{{ $facilitators = $facilitators | append . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ $facilitators = $facilitators | uniq | sort }}
|
||||
{{ range $facilitator := $facilitators }}
|
||||
<a href="{{ " facilitators/" | relLangURL }}{{ $facilitator | urlize }}"
|
||||
class="tag inline-block p-2 my-1 border border-gray-100 rounded-lg hover:bg-yellow-100 whitespace-nowrap"
|
||||
style="font-size: 1rem;">
|
||||
{{ $facilitator }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
|
Reference in New Issue
Block a user