ybbond

My site. The main domain
Log | Files | Refs | README | LICENSE | CC-LICENSE

commit 80613f52680b20b819624753dfdb67925ba2683f
parent af2b0bae6c8ef5889d61f8893e4098c85841d0e4
Author: Yohanes Bandung <bandungpenting@gmail.com>
Date:   Sun,  3 May 2020 23:13:16 +0700

refactor: separate auth links header

Diffstat:
Alayouts/partials/head/auth-links.html | 13+++++++++++++
Mlayouts/partials/head/head.html | 23+++++++----------------

2 files changed, 20 insertions(+), 16 deletions(-)

diff --git a/layouts/partials/head/auth-links.html b/layouts/partials/head/auth-links.html
@@ -0,0 +1,12 @@
+<link data-hint="Twitter" title="Twitter" href="https://twitter.com/{{ .Site.Params.Twitter }}" rel="me" />
+<link data-hint="GitHub" title="GitHub" href="https://github.com/{{ .Site.Params.Github }}" rel="me" />
+<link data-hint="Micro.Blog" title="Micro.Blog" href="https://micro.blog/ybbond" rel="me" />
+<link data-hint="Email" title="Email" href="mailto:{{ .Site.Params.Email }}" rel="me" />
+<link data-hint="Mastodon" title="Mastodon" href="https://indieweb.social/@ybbond" rel="me" />
+
+
+<link rel="openid.delegate" href="https://ybbond.dev/" />
+<link rel="openid.server" href="https://openid.indieauth.com/openid" />
+
+<link rel="webmention" href="https://webmention.io/ybbond.dev/webmention" />
+<link rel="pingback" href="https://webmention.io/ybbond.dev/xmlrpc" />+
\ No newline at end of file
diff --git a/layouts/partials/head/head.html b/layouts/partials/head/head.html
@@ -2,23 +2,7 @@
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <meta http-equiv="X-UA-Compatible" content="IE=edge">
 
-<link data-hint="Twitter" title="Twitter" href="https://twitter.com/{{ .Site.Params.Twitter }}" rel="me" />
-<link data-hint="GitHub" title="GitHub" href="https://github.com/{{ .Site.Params.Github }}" rel="me" />
-<link data-hint="Micro.Blog" title="Micro.Blog" href="https://micro.blog/ybbond" rel="me" />
-<link data-hint="Email" title="Email" href="mailto:{{ .Site.Params.Email }}" rel="me" />
-<link data-hint="Mastodon" title="Mastodon" href="https://indieweb.social/@ybbond" rel="me" />
-
-
-{{ with .OutputFormats.Get "rss" }}
-    {{ $rssTitle := printf "%s RSS" $.Site.Title }}
-    {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $rssTitle | safeHTML }}
-{{ end }}
-
-<link rel="openid.delegate" href="https://ybbond.dev/" />
-<link rel="openid.server" href="https://openid.indieauth.com/openid" />
-
 <title>{{ with or (.Page.Title) (.Site.Title) }}{{ . }} ::{{ end }} {{ .Site.Params.Author }}</title>
-
 <meta
   name="description"
   content="{{if .IsHome}}{{ .Site.Params.Description }}{{ else if .Params.description }}{{ .Params.description }}{{else}}{{ .Summary }} →{{end}}"
@@ -27,6 +11,11 @@
   <meta name="author" content="{{ . }}">
 {{ end }}
 
+{{ with .OutputFormats.Get "rss" }}
+    {{ $rssTitle := printf "%s RSS" $.Site.Title }}
+    {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $rssTitle | safeHTML }}
+{{ end }}
+
 <style amp-custom>
   {{ with resources.Get "styles.scss" | resources.ToCSS | resources.Minify }}
       {{ .Content | safeCSS }}
@@ -41,3 +30,4 @@
 
 {{ partial "head/og-metas.html" . }}
 {{ partial "head/twitter-card-metas.html" . }}
+{{ partial "head/auth-links.html" . }}+
\ No newline at end of file