hugo-theme-more-contentful/layouts/_default/terms.html
Gabriel Arazas 092df10444
Switch absolute links to relative links
This is to make testing and deploying between different versions easier
such as Netlify deployments.
2023-04-28 00:55:59 +08:00

27 lines
752 B
HTML

{{ define "main" }}
{{ .Content }}
<h1>{{ .Title }}</h1>
{{- range .Data.Terms }}
{{- $pages := .Pages }}
{{- if ge (len $pages) 1 }}
<section id="{{ .Page.Title | urlize }}">
<header class="taxonomy__header">
<h2>{{ .Page.Title }}</h2>
<small>(<a href="{{ .Page.RelPermalink }}">{{ i18n "permalink" | default "Permalink" }}</a>)</small>
</header>
<ul class="posts--list">
{{- range $pages }}
<li class="post--list">
<date class="post--list__date" datetime="{{ .PublishDate }}">{{ .PublishDate.Format "2006-01-02" }}</date>
<a class="post--list__title" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
</li>
{{- end }}
</ul>
</section>
{{- end }}
{{- end }}
{{ end }}