hugo-theme-relearn/exampleSite/layouts/changelog/views/article.html

21 lines
649 B
HTML
Raw Normal View History

2024-09-18 18:36:42 +00:00
<article class="default">
<header class="headline">
{{- partial "content-header.html" . }}
</header>
{{ partial "heading-pre.html" . }}{{ partial "heading.html" . }}{{ partial "heading-post.html" . }}
{{- $page := .}}
2024-09-21 09:17:43 +00:00
{{- $path := replace .Path "basics/changelog" "basics/releasenotes" }}
2024-09-18 18:36:42 +00:00
{{- with or
(.GetPage $path)
(.GetPage (strings.TrimRight "/" $path))
}}
{{ partial "partials/shortcodes/link.html" (dict "page" $page "url" .Path "content" "★ What's new in this version ★") }}
<hr>
{{- end }}
{{ partial "article-content.html" . }}
<footer class="footline">
{{- partial "content-footer.html" . }}
</footer>
</article>