mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 14:12:09 +00:00
Compare commits
3 commits
5e732189e0
...
0ed68c5e9a
Author | SHA1 | Date | |
---|---|---|---|
|
0ed68c5e9a | ||
|
c82cd646dc | ||
|
65306b7867 |
6 changed files with 26 additions and 7 deletions
|
@ -186,18 +186,18 @@ nav ul li {
|
||||||
* single-row flexbox that supports more browsers. Kanged this CSS from
|
* single-row flexbox that supports more browsers. Kanged this CSS from
|
||||||
* ww.gov.uk. Give the entire width of the row to the search box, but
|
* ww.gov.uk. Give the entire width of the row to the search box, but
|
||||||
* allow the minimum width for the submit button. */
|
* allow the minimum width for the submit button. */
|
||||||
form {
|
form > div {
|
||||||
display: table;
|
display: table;
|
||||||
width: 100%
|
width: 100%
|
||||||
}
|
}
|
||||||
|
|
||||||
/* A text box should not look like a button */
|
/* A text box should not look like a button */
|
||||||
input[type="search"] {
|
input:not([type="submit"]) {
|
||||||
display: table-cell;
|
display: table-cell;
|
||||||
width: 98%;
|
width: 98%;
|
||||||
}
|
}
|
||||||
|
|
||||||
form > div {
|
form > div > div {
|
||||||
display: table-cell;
|
display: table-cell;
|
||||||
vertical-align: top; /* IE and some botique browsers need this */
|
vertical-align: top; /* IE and some botique browsers need this */
|
||||||
width: 1%;
|
width: 1%;
|
||||||
|
|
|
@ -62,3 +62,5 @@ I don't collect anything except default server logs, purged regularly. More deta
|
||||||
|
|
||||||
=> gemini://seirdy.one/privacy/
|
=> gemini://seirdy.one/privacy/
|
||||||
|
|
||||||
|
Poggies.
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,8 @@ If you find a "Seirdy" somewhere else and don't know whether or not it's me, ple
|
||||||
|
|
||||||
My preferred forge for personal projects is Sourcehut, but my repositories have remotes for GitHub, GitLab, and Codeberg too.
|
My preferred forge for personal projects is Sourcehut, but my repositories have remotes for GitHub, GitLab, and Codeberg too.
|
||||||
|
|
||||||
|
<small>Poggies</small>
|
||||||
|
|
||||||
Selected projects
|
Selected projects
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
<span id="search-label">Search this site:</span>
|
|
||||||
<form
|
<form
|
||||||
itemprop="potentialAction" itemscope itemtype="https://schema.org/SearchAction"
|
itemprop="potentialAction" itemscope itemtype="https://schema.org/SearchAction"
|
||||||
action="https://searchmysite.net/search/" method="get">
|
action="https://searchmysite.net/search/" method="get">
|
||||||
<input aria-labelledby="search-label" itemprop="query" type="search" value="domain:seirdy.one " name="q">
|
<label for="search">Search this site:</label>
|
||||||
<div><input type="submit" value="search"></div>
|
<div><!--We need the extra divs to serve as pseudo-table-cells.-->
|
||||||
|
<input id="search" itemprop="query" type="search" value="domain:seirdy.one " name="q">
|
||||||
|
<div><input type="submit" value="search"></div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
12
layouts/partials/webmention-form.html
Normal file
12
layouts/partials/webmention-form.html
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<form
|
||||||
|
itemprop="potentialAction" itemscope itemtype="https://schema.org/CommentAction"
|
||||||
|
action="https://seirdy.one/webmentions/receive" method="post">
|
||||||
|
<meta itemprop="actionStatus" content="PotentialActionStatus">
|
||||||
|
<label for="menchie">Publish a response on your own website and share the link here to send me a webmention! Include a link to this page's canonical location for it to be accepted.</label>
|
||||||
|
{{ $canonicalRelPermalink := .RelPermalink | replaceRE "^/~seirdy/" "/" -}}
|
||||||
|
<input type="hidden" name="target" value="{{ .Site.Params.canonicalBaseURL }}{{ $canonicalRelPermalink }}">
|
||||||
|
<div><!--We need the extra divs to serve as pseudo-table-cells.-->
|
||||||
|
<input id="menchie" type="url" name="source">
|
||||||
|
<div><input type="submit" value="submit"></div>
|
||||||
|
</div>
|
||||||
|
</form>
|
|
@ -1,13 +1,14 @@
|
||||||
<section aria-labelledby="webmentions">
|
<section aria-labelledby="webmentions">
|
||||||
<h2 id="webmentions" tabindex="-1">Webmen­tions</h2>
|
<h2 id="webmentions" tabindex="-1">Webmen­tions</h2>
|
||||||
<p>This site supports <a href="https://indieweb.org/webmention">Webmentions</a>. Webmentions received for this post will appear in the following list after I approve them. I sometimes send Webmentions to myself on behalf of linking sites that don't support them. Check the <a href="https://web.archive.org/">Wayback Machine</a> if any links are broken.</p>
|
<p>This site supports <a href="https://indieweb.org/webmention">Webmentions</a>. Webmentions received for this post will appear in the following list after I approve them. I sometimes send Webmentions to myself on behalf of linking sites that don't support them. Check the <a href="https://web.archive.org/">Wayback Machine</a> if any links are broken.</p>
|
||||||
|
{{ partial "webmention-form.html" }}
|
||||||
<dl>
|
<dl>
|
||||||
{{- $target := .RelPermalink | replaceRE "^/~seirdy/" "/" }}
|
{{- $target := .RelPermalink | replaceRE "^/~seirdy/" "/" }}
|
||||||
{{- $oldTarget := $target | replaceRE "/posts" "" | replaceRE "/$" ".html" -}}
|
{{- $oldTarget := $target | replaceRE "/posts" "" | replaceRE "/$" ".html" -}}
|
||||||
{{ $url1 := printf "https://seirdy.one/webmentions/get?status=approved&target=https://seirdy.one%s" $target -}}
|
{{ $url1 := printf "https://seirdy.one/webmentions/get?status=approved&target=https://seirdy.one%s" $target -}}
|
||||||
{{ $url2 := printf "https://seirdy.one/webmentions/get?status=approved&target=https://seirdy.one%s" $oldTarget -}}
|
{{ $url2 := printf "https://seirdy.one/webmentions/get?status=approved&target=https://seirdy.one%s" $oldTarget -}}
|
||||||
{{ $webmentions := (getJSON $url1) | append (getJSON $url2) -}}
|
{{ $webmentions := (getJSON $url1) | append (getJSON $url2) -}}
|
||||||
{{ range $webmentions -}}
|
{{ range sort $webmentions "created_at" -}}
|
||||||
{{ $webmention := . -}}
|
{{ $webmention := . -}}
|
||||||
{{ if (eq $webmention.type "like") -}}
|
{{ if (eq $webmention.type "like") -}}
|
||||||
<div itemprop="potentialAction" itemscope itemtype="https://schema.org/LikeAction" class="u-like h-cite">
|
<div itemprop="potentialAction" itemscope itemtype="https://schema.org/LikeAction" class="u-like h-cite">
|
||||||
|
|
Loading…
Reference in a new issue