meta partial for indieweb

This commit is contained in:
Marvin Steadfast 2020-03-12 10:19:51 +01:00
parent 368b4e9ba0
commit 37b9067f05
5 changed files with 19 additions and 4 deletions

View File

@ -8,7 +8,7 @@ params:
AuthorName: "Marvin Preuss"
mainSections:
- "posts"
me:
links:
github: https://github.com/xsteadfastx/
twitter: https://twitter.com/xsteadfastx
mastodon: https://chaos.social/@xsteadfastx

View File

@ -14,6 +14,7 @@
{{ template "_internal/twitter_cards.html" . }}
</head>
<body>
{{ partial "meta" . }}
{{ partial "header" . }}
{{ block "main" . }}{{ end }}
{{ partial "footer" . }}

View File

@ -5,10 +5,9 @@
{{ range where .Site.RegularPages "Type" "pages"}}
<div class="column"><a href="{{ .RelPermalink }}">{{ .Title }}</a></div>
{{ end }}
{{ range $name, $url := .Site.Params.me}}
<div class="column"><a href="{{ $url }}" rel="me">{{ $name }}</a></div>
{{ range $name, $url := .Site.Params.links}}
<div class="column"><a href="{{ $url }}">{{ $name }}</a></div>
{{ end }}
<link rel="pgpkey" href="/key.txt">
<div class="column"></div>
<div class="column"></div>
</div>

View File

@ -0,0 +1,11 @@
<div class="meta">
<p class="h-card">
<a class="p-name u-url p-author" rel="me author" href="http://xsteadfastx.org/">{{ .Site.Params.AuthorName }}</a>
<img class="u-photo" src="https://xsteadfastx.org/images/xsfxmarat1000.png" alt="xsteadfastx photo">
</p>
<link rel="pgpkey" href="/key.txt">
<a href="https://github.com/xsteadfastx" rel="me">github</a>
<a href="https://twitter.com/xsteadfastx" rel="me">twitter</a>
<a href="https://chaos.social/@xsteadfastx" rel="me">mastodon</a>
<a href="https://www.flickr.com/photos/marvinxsteadfast/" rel="me">flickr</a>
</div>

View File

@ -181,3 +181,7 @@ header .upsidedown {
-moz-transform: rotate(-180deg);
display: inline-block;
}
body .meta {
display: none;
}