meta partial for indieweb
This commit is contained in:
parent
368b4e9ba0
commit
37b9067f05
@ -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
|
||||
|
@ -14,6 +14,7 @@
|
||||
{{ template "_internal/twitter_cards.html" . }}
|
||||
</head>
|
||||
<body>
|
||||
{{ partial "meta" . }}
|
||||
{{ partial "header" . }}
|
||||
{{ block "main" . }}{{ end }}
|
||||
{{ partial "footer" . }}
|
||||
|
@ -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>
|
||||
|
11
themes/xsfx/layouts/partials/meta.html
Normal file
11
themes/xsfx/layouts/partials/meta.html
Normal 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>
|
@ -181,3 +181,7 @@ header .upsidedown {
|
||||
-moz-transform: rotate(-180deg);
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
body .meta {
|
||||
display: none;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user