Support webmention

This commit is contained in:
Gil 2025-05-24 21:12:41 -05:00
parent 43dc1da1dc
commit 0c2b5afec5
11 changed files with 62 additions and 53 deletions

View file

@ -236,6 +236,8 @@ export default function (eleventyConfig) {
return catMap;
});
eleventyConfig.setQuietMode(true);
return {
dir: {
input: "src",

View file

@ -16,4 +16,5 @@
<link rel="manifest" href="/assets/favicon/site.webmanifest">
<meta name="apple-mobile-web-app-title" content="Gil•INK">
<link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-touch-icon.png">
<link rel="me" href="{{ meta.fediverseUrl }}">
<link rel="me" href="{{ meta.fediverseUrl }}">
<link rel="webmention" href="{{ meta.webmentionUrl }}" />

View file

@ -0,0 +1,30 @@
<aside class="idcard">
<header class="idcard__header">
<h3>Identification card</h3>
</header>
<div class="idcard__picture">
<img src="/assets/img/about-profile.png"/>
</div>
<div class="idcard__bio">
<p class="idcard__name">
<span class="idcard__label">NAME</span>
Gil
</p>
<p class="idcard__age">
<span class="idcard__label">AGE</span>
26
</p>
<p class="idcard__line">
<span class="idcard__label">EXP</span>
07/15/2030
</p>
<p class="idcard__line">
<span class="idcard__label">ISS</span>
05/10/2025
</p>
<p class="idcard__number">
<span class="idcard__label">ID#</span>
<span class="monospace">GI0755>>592238</code>
</p>
</div>
</aside>

View file

@ -1 +1,11 @@
{% include 'snippets/neighbors.njk' %}
<p>
{% for neighbor in neighbors -%}
{%- if neighbor.link -%}
<a href="{{ neighbor.link }}" rel="noreferrer nofollow noopener external" target="_blank">
{%- endif -%}
<img src="/assets/img/{{ neighbor.image }}" alt="{{ neighbor.label }}"/>
{%- if neighbor.link -%}
</a>
{%- endif -%}
{%- endfor %}
</p>

View file

@ -1,11 +0,0 @@
<p>
{% for neighbor in neighbors -%}
{%- if neighbor.link -%}
<a href="{{ neighbor.link }}" rel="noreferrer nofollow noopener external" target="_blank">
{%- endif -%}
<img src="/assets/img/{{ neighbor.image }}" alt="{{ neighbor.label }}"/>
{%- if neighbor.link -%}
</a>
{%- endif -%}
{%- endfor %}
</p>

View file

@ -1,6 +1,6 @@
<p>
{% for update in updates | reverse %}
<a href="/note/{{ update.date | formatDateIso('yyyy-MM-dd') }}{{ update.slug }}/">{{ update.date | formatDateIso('yyyy-MM-dd') }}</a>
/ {{ update.content | safe }}<br/>
{% for note in notes | reverse %}
<a href="/note/{{ note.date | formatDateIso('yyyy-MM-dd') }}{{ note.slug }}/">{{ note.date | formatDateIso('yyyy-MM-dd') }}</a>
/ {{ note.content | safe }}<br/>
{% endfor %}
</p>

View file

@ -5,5 +5,6 @@ export default function () {
author: "Gil",
fediverseAuthor: "@gil@hol.ogra.ph",
fediverseUrl: "https://hol.ogra.ph/@gil",
webmentionUrl: "https://webmention.io/gil.ink/webmention"
};
}

View file

@ -9,6 +9,11 @@
"link": "https://ide.ogra.ph/gil",
"handle": "ide.ogra.ph/gil"
},
{
"label": "Github",
"link": "https://github.com/kalanggam",
"handle": "github.com/kalanggam"
},
{
"label": "Matrix",
"link": "https://matrix.to/#/@kalanggam:matrix.org",

View file

@ -4,36 +4,7 @@ layout: base
<div class="page--about gap">
<main class="main-content box pad">{{ content | safe }}</main>
<aside class="idcard">
<header class="idcard__header">
<h3>Identification card</h3>
</header>
<div class="idcard__picture">
<img src="/assets/img/about-profile.png"/>
</div>
<div class="idcard__bio">
<p class="idcard__name">
<span class="idcard__label">NAME</span>
Gil
</p>
<p class="idcard__age">
<span class="idcard__label">AGE</span>
26
</p>
<p class="idcard__line">
<span class="idcard__label">EXP</span>
07/15/2030
</p>
<p class="idcard__line">
<span class="idcard__label">ISS</span>
05/10/2025
</p>
<p class="idcard__number">
<span class="idcard__label">ID#</span>
<span class="monospace">GI0755>>592238</code>
</p>
</div>
</aside>
{% include 'idcard.njk' %}
<section class="interests box pad">
<header>
<h2>Interests</h2>

View file

@ -6,7 +6,7 @@ layout: base
<header>
<h1>{{ title }}</h1>
<p>
posted <time datetime="{{ page.date | formatDate('yyyy-MM-dd HH:mmZZ') }}" title="{{ page.date }}">{{ page.date | formatDateRel }}</time>
posted {{ page.date | formatDate('yyyy-MM-dd') }}
{% if author %}
by {{ author }}
{% elif meta.author %}
@ -29,7 +29,7 @@ layout: base
{% if lastmod %}
<p>
<strong>Last modified</strong>
<time datetime=" {{ lastmod | formatDate('yyyy-MM-dd') }} ">{{ lastmod | formatDate("yyyy-MM-dd") }}</time>
{{ lastmod | formatDate("yyyy-MM-dd") }}
</p>
{% endif %}
{% if tags %}

View file

@ -1,6 +1,6 @@
---
layout: single
permalink: "/note/{{ note.date | formatDateIso('yyyy-MM-dd') }}{{ note.slug }}/index.html"
permalink: '/note/{{ note.date | formatDateIso("yyyy-MM-dd") }}{{ note.slug }}/index.html'
pagination:
data: notes
size: 1
@ -9,12 +9,12 @@ title: "Note"
---
<header>
<h1>Note {{ note.date | formatDateIso('yyyy-MM-dd') }}{{ note.slug }}</h1>
<p>Posted {{ note.date | formatDateIsoRel }}</p>
<h1>Note {{ note.date | formatDateIso("yyyy-MM-dd") }}{{ note.slug }}</h1>
<p>Posted {{ note.date | formatDateIso("yyyy-MM-dd 'at' T") }} </p>
</header>
<p>{{ note.content | safe }}</p>
{% if pagination.href.previous or pagination.href.next %}
<p>
<nav>
{% if pagination.href.previous %}
<a href="{{ pagination.href.previous }}">&larr; prev</a>
{% endif %}
@ -22,5 +22,5 @@ title: "Note"
{% if pagination.href.next %}
<a href="{{ pagination.href.next }}">next &rarr;</a>
{% endif %}
</p>
</nav>
{% endif %}