1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-25 10:12:10 +00:00
seirdy.one/layouts/partials/header.html
Rohan Kumar 08de786bbc
Indieweb: structured data for rest of website
Outside the blogposting, add addl. structured data for the surrounding
site: the license, copyright holder, navigation items, source code link,
etc.
2022-02-10 22:12:45 -08:00

14 lines
600 B
HTML

<header id="banner" itemscope itemtype="https://schema.org/WPHeader">
<nav>
<ul class="unstyled-list">
<li itemscope itemtype="https://schema.org/SiteNavigationElement">
<a rel="home" itemprop="url" href="{{ .Site.BaseURL }}"><span itemprop="name">{{ .Site.Title }}</span></a>
</li>
{{ range .Site.Menus.main.ByWeight -}}
<li itemscope itemtype="https://schema.org/SiteNavigationElement">
{{ .Pre }}<a href="{{ .URL }}" itemprop="url" title="{{ .Title }}"><span itemprop="name">{{- .Name -}}</span></a>{{ .Post }}
</li>
{{- end }}
</ul>
</nav>
</header>