~aasg/haunted-blog

cdc573af8beeb1381b3d0a14481a826c471bf3dc — Aluísio Augusto Silva Gonçalves 1 year, 2 months ago 7050827
h-card: Add profiles links
4 files changed, 35 insertions(+), 9 deletions(-)

M haunt.scm
M pages/_index.html
M static/css/site.css
A static/js/fallback-url.js
M haunt.scm => haunt.scm +2 -1
@@ 279,6 279,7 @@
                       (atom-feed)
                       (static-directory "static/css" "css")
                       (static-directory "static/files" "files")
                       (static-directory "static/fonts" "fonts"))
                       (static-directory "static/fonts" "fonts")
                       (static-directory "static/js" "js"))
      #:build-directory (output-directory)
      #:make-slug aasg-post-slug)

M pages/_index.html => pages/_index.html +21 -8
@@ 33,12 33,25 @@
			<a href="mailto:~aasg/public-inbox@lists.sr.ht">~aasg/public-inbox@lists.sr.ht</a>.
		</p>
	</section>
	<script defer="defer">
		// This exists to let bots and tools have the native MSC2312 Matrix
		// URI, but replace it with something more generally supported in
		// browsers.
		for (const el of document.querySelectorAll('a[data-fallback-url]')) {
			el.href = el.dataset.fallbackUrl
		}
	</script>

	<section id="identities">
		<h2>Me elsewhere</h2>
		<p>You can also find me on:</p>
		<dl>
			<dt>Software forges</dt>
			<dd><a rel="me" href="https://github.com/AluisioASG">GitHub (as AluisioASG)</a></dd>
			<dd><a rel="me" href="https://gitlab.com/AluisioASG">GitLab (as AluisioASG)</a></dd>
			<dd><a rel="me" href="https://sr.ht/~aasg">Sourcehut (as aasg)</a></dd>
			<dt>Professional networks</dt>
			<dd><a rel="me" href="https://www.linkedin.com/in/aasg/">LinkedIn (as aasg)</a></dd>
			<dt>Social networks</dt>
			<dd><a rel="me" href="https://keybase.io/aasg">Keybase (as aasg)</a></dd>
			<dd><a rel="me" href="https://pleroma.aasg.name/aasg">Mastodon/Pleroma/ActivityPub (as @aasg@pleroma.aasg.name)</a></dd>
			<dt>Academia</dt>
			<dd><a rel="me" href="https://orcid.org/0000-0002-1844-6540">ORCID (as 0000-0002-1844-6540)</a></dd>
			<dd><a rel="me" href="http://lattes.cnpq.br/5507129733023704">Plataforma Lattes (as Aluísio Augusto Silva Gonçalves)</a></dd>
		</dl>
	</section>

	<script type="module" src="js/fallback-url.js"></script>
</article>

M static/css/site.css => static/css/site.css +6 -0
@@ 129,3 129,9 @@ h1, h2, h3, h4, h5, h6 {
  margin-top: -4rem;
  padding-top: 4rem;
}

/* Hide identities from the homepage; those are public, but for machine
 * processing only. */
article.h-card #identities {
  display: none;
}

A static/js/fallback-url.js => static/js/fallback-url.js +6 -0
@@ 0,0 1,6 @@
// This exists to let bots and tools have the native MSC2312 Matrix
// URI, but replace it with something more generally supported in
// browsers.
for (const el of document.querySelectorAll('a[data-fallback-url]')) {
	el.href = el.dataset.fallbackUrl
}