commit 7a9ea62f9694b9385e7dec25aad07c3f8a226d71 parent 7a68bcf8fcdad76d77857be32f80d1b306e7a7e0 Author: Yohanes Bandung <hi@ybbond.dev> Date: Sun, 7 Jun 2020 14:19:42 +0700 refactor: add indieauth, svgs and refactor style Diffstat:
| M | assets/styles.scss | | | 4 | ---- |
| M | content/_index.md | | | 4 | ++-- |
| M | layouts/partials/head/auth-links.html | | | 15 | ++++++++++----- |
| M | layouts/partials/post/webmentions-handler.html | | | 32 | ++++++++++++++------------------ |
| A | layouts/partials/svgs/github.svg | | | 2 | ++ |
| M | layouts/partials/svgs/twitter.svg | | | 4 | ++-- |
6 files changed, 30 insertions(+), 31 deletions(-)
diff --git a/assets/styles.scss b/assets/styles.scss @@ -401,10 +401,6 @@ time { font-size: 0.8rem; } -.wm-avatar-list { - display: flex; - align-items: center; -} a.wm-avatar { width: 2rem; height: 2rem; diff --git a/content/_index.md b/content/_index.md @@ -4,4 +4,4 @@ menu: home Hi! I'm **Bandung**, welcome to my site! This site contains my blog [posts](/posts/), my often random [notes](/notes/), "snapshot" [report](/reports/) of this site's size. Here is the RSS for [post](/index.xml) and here is for [notes](/notes/index.xml). -Web analytics that I use respects your privacy, see it [here](https://stats.ybbond.dev/ "Link to stats.ybbond.dev").- \ No newline at end of file +Web analytics that I use respects your privacy, see [the stats](https://stats.ybbond.dev/ "Link to stats.ybbond.dev").+ \ No newline at end of file diff --git a/layouts/partials/head/auth-links.html b/layouts/partials/head/auth-links.html @@ -1,3 +1,11 @@ +<link rel="webmention" href="https://webmention.io/ybbond.dev/webmention" /> +<link rel="pingback" href="https://webmention.io/ybbond.dev/xmlrpc" /> + +<link rel="authorization_endpoint" href="https://indieauth.com/auth"> +<link rel="token_endpoint" href="https://tokens.indieauth.com/token"> + +<link rel="microsub" href="https://aperture.p3k.io/microsub/522"> + <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" /> @@ -6,7 +14,4 @@ <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 +<link rel="openid.server" href="https://openid.indieauth.com/openid" />+ \ No newline at end of file diff --git a/layouts/partials/post/webmentions-handler.html b/layouts/partials/post/webmentions-handler.html @@ -9,24 +9,20 @@ {{ with where . "wm-property" "in" (slice "repost-of" "bookmark-of" "rsvp") -}} <p class="wm-subtitle">Reposted/Boosted by:</p> - <div class="wm-avatar-container"> - {{- range . }} - <div class="wm-avatar-list"> - {{ $like := . }} - <a - href="{{ $like.author.url }}" - title="Photo of {{ $like.author.name }}" - class="wm-avatar" - > - <img - src="{{ $like.author.photo }}" - alt="Photo of {{ $like.author.name }}" - class="wm-avatar" - /> - </a> - </div> - {{- end }} - </div> + {{- range . }} + {{ $like := . }} + <a + href="{{ $like.author.url }}" + title="Photo of {{ $like.author.name }}" + class="wm-avatar" + > + <img + src="{{ $like.author.photo }}" + alt="Photo of {{ $like.author.name }}" + class="wm-avatar" + /> + </a> + {{- end }} {{ end -}} {{ with where . "wm-property" "in" (slice "like-of") -}} diff --git a/layouts/partials/svgs/github.svg b/layouts/partials/svgs/github.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" width={{ .width }} height={{ .height }} fill-rule="evenodd" stroke-miterlimit="1.414" viewBox="0 0 16 16" clip-rule="evenodd" stroke-linejoin="round"><path d="M8 0a8 8 0 0 0-8 8 8 8 0 0 0 5.47 7.59c.4.075.547-.172.547-.385 0-.19-.007-.693-.01-1.36-2.226.483-2.695-1.073-2.695-1.073-.364-.924-.89-1.17-.89-1.17-.725-.496.056-.486.056-.486.803.056 1.225.824 1.225.824.714 1.223 1.873.87 2.33.665.072-.517.278-.87.507-1.07-1.777-.2-3.644-.888-3.644-3.953 0-.873.31-1.587.823-2.147-.083-.202-.358-1.015.077-2.117 0 0 .672-.215 2.2.82a7.68 7.68 0 0 1 2.003-.27c.68.004 1.364.092 2.003.27 1.527-1.035 2.198-.82 2.198-.82.437 1.102.163 1.915.08 2.117.513.56.823 1.274.823 2.147 0 3.073-1.87 3.75-3.653 3.947.287.246.543.735.543 1.48 0 1.07-.01 1.933-.01 2.195 0 .215.144.463.55.385A8 8 0 0 0 8 0"/></svg>+ \ No newline at end of file diff --git a/layouts/partials/svgs/twitter.svg b/layouts/partials/svgs/twitter.svg @@ -1 +1 @@ -<svg id="Logo_FIXED" data-name="Logo — FIXED" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><style>.cls-1{fill:none;}.cls-2{fill:#1da1f2;}</style></defs><title>Twitter_Logo_Blue</title><rect class="cls-1" width="400" height="400"/><path class="cls-2" d="M153.62,301.59c94.34,0,145.94-78.16,145.94-145.94,0-2.22,0-4.43-.15-6.63A104.36,104.36,0,0,0,325,122.47a102.38,102.38,0,0,1-29.46,8.07,51.47,51.47,0,0,0,22.55-28.37,102.79,102.79,0,0,1-32.57,12.45,51.34,51.34,0,0,0-87.41,46.78A145.62,145.62,0,0,1,92.4,107.81a51.33,51.33,0,0,0,15.88,68.47A50.91,50.91,0,0,1,85,169.86c0,.21,0,.43,0,.65a51.31,51.31,0,0,0,41.15,50.28,51.21,51.21,0,0,1-23.16.88,51.35,51.35,0,0,0,47.92,35.62,102.92,102.92,0,0,1-63.7,22A104.41,104.41,0,0,1,75,278.55a145.21,145.21,0,0,0,78.62,23"/></svg>- \ No newline at end of file +<svg id="Logo_FIXED" data-name="Logo — FIXED" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><style>.cls-1{fill:none;}.cls-2{fill:#1da1f2;}</style></defs><title>Twitter_Logo_Blue</title><rect class="cls-1" width={{ .width }} height={{ .height }}/><path class="cls-2" d="M153.62,301.59c94.34,0,145.94-78.16,145.94-145.94,0-2.22,0-4.43-.15-6.63A104.36,104.36,0,0,0,325,122.47a102.38,102.38,0,0,1-29.46,8.07,51.47,51.47,0,0,0,22.55-28.37,102.79,102.79,0,0,1-32.57,12.45,51.34,51.34,0,0,0-87.41,46.78A145.62,145.62,0,0,1,92.4,107.81a51.33,51.33,0,0,0,15.88,68.47A50.91,50.91,0,0,1,85,169.86c0,.21,0,.43,0,.65a51.31,51.31,0,0,0,41.15,50.28,51.21,51.21,0,0,1-23.16.88,51.35,51.35,0,0,0,47.92,35.62,102.92,102.92,0,0,1-63.7,22A104.41,104.41,0,0,1,75,278.55a145.21,145.21,0,0,0,78.62,23"/></svg>+ \ No newline at end of file