Omphaloskepsis-2/layouts/cv/organisations/section.html

38 lines
1.3 KiB
HTML
Raw Normal View History

2023-10-03 12:08:35 +00:00
{{ define "title" }}
{{ .Page.Title | plainify }} | {{ .Site.Title }}
{{ end }}
{{ define "main-class" }}--section layouts-cv-organisations-section{{ end }}
{{ define "main-header" }}
{{ if .IsDescendant ( .GetPage "/cv/organisations" ) }}
<header class="site-content__header">
<div class="article-header__featured-image"
{{ if .Params.featured_image }}
{{ with .Resources.GetMatch .Params.featured_image }}
style="background-image: url({{ .RelPermalink }})"
{{ end }}
{{ end }}>
<div class="article-header__title-wrapper{{ if .Params.title_in_logo }} article-header__title-wrapper--no-title{{ end }}">
<h2 class="article-header__title">{{ if ( .Params.markup_title ) }}{{ .Params.markup_title | safeHTML }}{{ else }}{{ .Title }}{{ end }}</h2>
</div>
</div>
</header>
{{ else }}
<header class="site-content__header">
<h2 class="page-title">{{ .Title | safeHTML }}.</h2>
{{- .Content -}}
</header>
{{ end }}
{{ end }}
{{ define "main-body" }}
{{ with .GetPage "cv/organisations" }}
2024-02-04 01:40:15 +00:00
{{ partial "cv/organisations/organisations-table.html.tmpl" . }}
2023-10-03 12:08:35 +00:00
{{ end }}
{{ end }}
{{ define "main-footer" }}
{{ end }}