Skip to content

Commit

Permalink
Add my Fediverse info to site meta
Browse files Browse the repository at this point in the history
  • Loading branch information
helenclx committed Nov 25, 2024
1 parent 298018a commit 2680f06
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/_data/sitemeta.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ export const siteAuthor = {
name: "Helen Chong",
email: "[email protected]",
url: siteUrl + "/about",
fediverse: {
handle: "@[email protected]",
url: "https://social.lol/@helenchong"
},
matrix: "@helenchong:omg.lol",
signal: "helenchong.08"
};
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/global/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<meta name="generator" content="{{ eleventy.generator }}">
<meta name="author" content="{{ sitemeta.siteAuthor.name }}">
<meta name="description" content="{{ desc or metadata.desc or sitemeta.siteDescription }}">
<meta name="fediverse:creator" content="@[email protected]">
<meta name="fediverse:creator" content="{{ sitemeta.siteAuthor.fediverse.handle }}">
<meta property="og:site_name" content="{{ sitemeta.siteName }}" />
<meta property="og:type" content="{{ "article" if tags and tags.includes("posts") else "website" }}">
<meta property="og:description" content="{{ desc or metadata.desc or sitemeta.siteDescription }}">
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/global/socials.njk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</a>
</li>
<li>
<a href="https://social.lol/@helenchong" rel="me">
<a href="{{ sitemeta.siteAuthor.fediverse.url }}" rel="me">
<svg class="socials__icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M433 179.1c0-97.2-63.7-125.7-63.7-125.7-62.5-28.7-228.6-28.4-290.5 0 0 0-63.7 28.5-63.7 125.7 0 115.7-6.6 259.4 105.6 289.1 40.5 10.7 75.3 13 103.3 11.4 50.8-2.8 79.3-18.1 79.3-18.1l-1.7-36.9s-36.3 11.4-77.1 10.1c-40.4-1.4-83-4.4-89.6-54a102.5 102.5 0 0 1 -.9-13.9c85.6 20.9 158.7 9.1 178.8 6.7 56.1-6.7 105-41.3 111.2-72.9 9.8-49.8 9-121.5 9-121.5zm-75.1 125.2h-46.6v-114.2c0-49.7-64-51.6-64 6.9v62.5h-46.3V197c0-58.5-64-56.6-64-6.9v114.2H90.2c0-122.1-5.2-147.9 18.4-175 25.9-28.9 79.8-30.8 103.8 6.1l11.6 19.5 11.6-19.5c24.1-37.1 78.1-34.8 103.8-6.1 23.7 27.3 18.4 53 18.4 175z"/></svg>
<span class="visually-hidden">Mastodon</span>
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/slashes/headerlinks/contact.njk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ eleventyNavigation:

<p>Alternately, you can contact me through other methods:</p>
<ul>
<li>Fediverse: Ping me or send me a private mention to my Mastodon account at <a href="https://social.lol/@helenchong">@[email protected]</a></li>
<li>Fediverse: Ping me or send me a private mention to my Mastodon account at <a href="{{ sitemeta.siteAuthor.fediverse.url }}">{{ sitemeta.siteAuthor.fediverse.handle }}</a></li>
<li>Matrix: Message <code>{{ sitemeta.siteAuthor.matrix }}</code></li>
<li>Signal: Message <code>{{ sitemeta.siteAuthor.signal }}</code></li>
</ul>
Expand Down

0 comments on commit 2680f06

Please sign in to comment.