commit 940f5fe7d4c868e3e681b06e4d92ee92b9c18c69 parent 31d22316a77aa305c663f146c3a87f3d447fd301 Author: Yohanes Bandung Bondowoso <hi@ybbond.id> Date: Thu, 20 May 2021 02:25:11 +0700 refactor: include u-photo in webmention, also restore GitHub workflow cron Diffstat:
| M | .github/workflows/webmentions.yml | | | 2 | +- |
| M | data/webmentions/notes--06-february-2021.json | | | 2 | +- |
| M | layouts/_default/list.html | | | 2 | +- |
| M | layouts/_default/single.html | | | 2 | +- |
| M | layouts/partials/components/h-card.html | | | 2 | +- |
| M | layouts/partials/post/notes-item.html | | | 8 | +------- |
| M | layouts/partials/post/responses-item.html | | | 7 | +------ |
7 files changed, 7 insertions(+), 18 deletions(-)
diff --git a/.github/workflows/webmentions.yml b/.github/workflows/webmentions.yml @@ -2,7 +2,7 @@ name: Webmentions on: schedule: - - cron: "*/5 * * * *" + - cron: "0 */3 * * *" jobs: webmentions: diff --git a/data/webmentions/notes--06-february-2021.json b/data/webmentions/notes--06-february-2021.json @@ -4,7 +4,7 @@ "author": { "type": "card", "name": "Yohanes Bandung Bond.", - "photo": "", + "photo": "https://ybbond.id/logo.png", "url": "https://ybbond.id" }, "url": "https://ybbond.id/responses/response-20210520121441/", diff --git a/layouts/_default/list.html b/layouts/_default/list.html @@ -1,7 +1,7 @@ {{ define "main" }} <div class="h-feed"> <div id="h-card" class="hcard" hidden=""> - <img class="u-photo" src={{ "logo.png" | absURL }} alt="Weird photo of yohanes bandung" /> + <img class="u-photo" src={{ "logo.png" | absURL }} /> <a class="p-author h-card" href={{ .Site.Params.MainSiteURL }} rel="author">{{ substr .Site.Params.Author 0 20 }}.</a> <a class="u-email" href="mailto:{{ .Site.Params.Email }}">{{ .Site.Params.Email }}</a> <a rel="syndication" class="u-syndication" href={{ .Permalink }}>{{ .Title }}</a> diff --git a/layouts/_default/single.html b/layouts/_default/single.html @@ -15,7 +15,7 @@ <article class="content h-entry"> <h1 class="p-name">{{ .Title }}</h1> <div id="h-card" class="hcard" hidden=""> - <img class="u-photo" src={{ "logo.png" | absURL }} alt="Weird photo of yohanes bandung" /> + <img class="u-photo" src={{ "logo.png" | absURL }} /> <a class="p-author h-card" href={{ .Site.Params.MainSiteURL }} rel="author">{{ substr .Site.Params.Author 0 20 }}.</a> <a class="u-email" href="mailto:{{ .Site.Params.Email }}">{{ .Site.Params.Email }}</a> <a rel="syndication" class="u-syndication" href={{ .Permalink }}>{{ .Title }}</a> diff --git a/layouts/partials/components/h-card.html b/layouts/partials/components/h-card.html @@ -1,7 +1,7 @@ <div class="hcard"> <div class="hcard__description"><p>My <a href="http://microformats.org/wiki/representative-h-card-authoring">h-card</a></p></div> <div id="h-card" class="h-card"> - <img class="u-photo" src={{ "logo.png" | absURL }} alt="Photo of {{ .Site.Params.Author }}" /> + <img class="u-photo" src={{ "logo.png" | absURL }} /> <a class="p-name u-url u-uid" href={{ .Site.Params.MainSiteURL }} rel="me">{{ substr .Site.Params.Author 0 20 }}.</a> <br> <a class="u-email" href="mailto:{{ .Site.Params.Email }}">{{ .Site.Params.Email }}</a> diff --git a/layouts/partials/post/notes-item.html b/layouts/partials/post/notes-item.html @@ -2,13 +2,7 @@ {{ $idslug := (print "date-" $dateformat "-") | urlize }} <div class="content notes h-entry" id={{ $idslug }}> <div id="h-card" class="hcard" hidden=""> - {{ $permalink := .Permalink }} - {{ $title := .Title }} - {{ with .Params.Image.Src }} - {{ $filename := . | safeURL }} - {{ $original := printf "%s%s" $permalink $filename }} - <img class="u-photo" hidden="" src={{ $original }} alt="Illustration of {{ $title }}" /> - {{ end }} + <img class="u-photo" src={{ "logo.png" | absURL }} /> <a class="p-author h-card" href={{ .Site.Params.MainSiteURL }} rel="author">{{ substr .Site.Params.Author 0 20 }}.</a> <br> <a class="u-email" href="mailto:{{ .Site.Params.Email }}">{{ .Site.Params.Email }}</a> diff --git a/layouts/partials/post/responses-item.html b/layouts/partials/post/responses-item.html @@ -7,12 +7,7 @@ {{ $title := print "In response to " "«" .Params.Destination.Title "»" $author }} <div class="content responses h-entry" id={{ $idslug }}> <div id="h-card" class="hcard" hidden=""> - {{ $permalink := .Permalink }} - {{ with .Params.Image.Src }} - {{ $filename := . | safeURL }} - {{ $original := printf "%s%s" $permalink $filename }} - <img class="u-photo" hidden="" src={{ $original }} alt="Illustration of {{ .Title }}" /> - {{ end }} + <img class="u-photo" src={{ "logo.png" | absURL }} /> <a class="p-name" href={{ .Permalink }}>{{ $title }}</a> <br> <a class="p-author h-card" href={{ .Site.Params.MainSiteURL }} rel="author">{{ substr .Site.Params.Author 0 20 }}.</a>