This repository has been archived on 2024-11-01. You can view files and clone it, but cannot push or open issues or pull requests.
blog/themes/kiera/layouts/partials/header.html

47 lines
1.3 KiB
HTML
Raw Normal View History

2024-10-28 16:26:25 -05:00
<!doctype html>
<html lang="{{ .Site.LanguageCode | default "en" }}">
<head>
<title>{{ if and (not .IsHome) (.Title) }}{{ .Params.Title }} - {{ end }}{{ .Site.Title }}</title>
{{ partial "meta" . }}
{{ partialCached "header_includes" . -}}
{{ if (templates.Exists "partials/header_supplement.html") }}
{{ partial "header_supplement.html" . -}}
{{ end }}
</head>
<body>
<div id="container">
<header>
{{ partial "site_logo" . }}
<h1>
<a href="{{ relLangURL "" }}">{{ .Site.Title | markdownify }}</a>
</h1>
<ul id="social-media">
{{- range .Site.Languages -}}
{{ if ne .LanguageName $.Site.Language.LanguageName }}
<li><a href="/{{ .Lang }}">{{ .LanguageName }}</a></li>
{{ end }}
{{- end -}}
{{- range .Site.Data.social.social_icons -}}
{{- if isset $.Site.Params.Author .id }}
<li>
<a href="{{ printf .url (index $.Site.Params.Author .id) }}" title="{{ .title }}">
<i class="{{ .icon }} fa-lg"></i>
</a>
</li>
{{- end -}}
{{ end }}
</ul>
{{ with .Site.Params.tagline }}
<p><em>{{ . | markdownify }}</em></p>
{{ end }}
</header>
{{ partial "nav" . }}
<main>