diff --git a/assets/styles/root.css b/assets/styles/root.css index 6dfb763..1fddf29 100644 --- a/assets/styles/root.css +++ b/assets/styles/root.css @@ -48,13 +48,9 @@ --transition-duration: 0.7s; - --social-menu-padding: 1rem; --menu-icon-size: 20px; - --twitter-icon: url(/icons/twitter.svg); - --github-icon: url(/icons/github.svg); - --instagram-icon: url(/icons/instagram.svg); - --feed-icon: url(/icons/rss.svg); } + @media (prefers-color-scheme: dark) { :root { --background: var(--black); @@ -76,10 +72,6 @@ --tag-hover-background-color: rgb(var(--super-dk-gray)); --tag-hover-foreground-color: rgb(var(--mid-gray)); - --twitter-icon: url(/icons/twitter-dark.svg); - --github-icon: url(/icons/github-dark.svg); - --instagram-icon: url(/icons/instagram-dark.svg); - --feed-icon: url(/icons/rss-dark.svg); } } diff --git a/assets/styles/root/050_site_header.css b/assets/styles/root/050_site_header.css index c7fee94..6f9f5b0 100644 --- a/assets/styles/root/050_site_header.css +++ b/assets/styles/root/050_site_header.css @@ -1,4 +1,23 @@ @layer root { + :root { + --mastodon-icon: url(/icons/mastodon.svg); + --github-icon: url(/icons/github.svg); + --instagram-icon: url(/icons/instagram.svg); + --feed-icon: url(/icons/feed.svg); + + --social-menu-padding: 1rem; + } + + @media (prefers-color-scheme: dark) { + :root { + --mastodon-icon: url(/icons/mastodon-dark.svg); + --github-icon: url(/icons/github-dark.svg); + --instagram-icon: url(/icons/instagram-dark.svg); + --feed-icon: url(/icons/feed-dark.svg); + } + } + + header.site h1 > a:hover { text-decoration: none; } header.site { @@ -84,4 +103,9 @@ color: var(--dark); padding: 0 0.5rem; } + + #social-menu-mastodon img { content: var(--mastodon-icon); } + #social-menu-github img { content: var(--github-icon); } + #social-menu-instagram img { content: var(--instagram-icon); } + #social-menu-feed img { content: var(--feed-icon); } } diff --git a/config/_default/menu.yaml b/config/_default/menu.yaml index ad0aced..ff649d2 100644 --- a/config/_default/menu.yaml +++ b/config/_default/menu.yaml @@ -12,12 +12,12 @@ main: url: /about/ weight: 30 social: - - identifier: twitter - name: Twitter - url: https://twitter.com/erynofwales + - identifier: mastodon + name: Mastodon + url: https://mastodon.social/@erynofwales weight: 10 params: - shortName: tw + shortName: mst - identifier: github name: Github url: https://github.com/erynofwales diff --git a/content/blog/2023/atom-feed-bug-fixes/index.md b/content/blog/2023/atom-feed-bug-fixes/index.md new file mode 100644 index 0000000..7743e55 --- /dev/null +++ b/content/blog/2023/atom-feed-bug-fixes/index.md @@ -0,0 +1,17 @@ +--- +title: "Atom Feed Bug Fixes" +date: 2023-08-09T08:43:26-07:00 +categories: ["Tech"] +tags: ["Erynwells.me", "Meta", "Atom"] +--- + +A kind reader pointed out to me that my Atom feed was incorrect. There were two +problems. First, I was specifying an incorrect URL in the feed's `` -- it was pointing to a nonexistant feed.xml file. Second, I was +omitting a `` tag from the entries entirely. + +Thunderbird didn't like this. With no `` for an entry, it would show the +feed's `` in it's UI. And that link left users at a 404 page. + +I pushed a fix this morning. You might have to refresh or resubscribe to pick up +the changes. diff --git a/layouts/partials/header.html b/layouts/partials/header.html index fa4bdd0..562229e 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -9,8 +9,13 @@ diff --git a/static/icons/rss-dark.svg b/static/icons/feed-dark.svg similarity index 100% rename from static/icons/rss-dark.svg rename to static/icons/feed-dark.svg diff --git a/static/icons/rss.svg b/static/icons/feed.svg similarity index 98% rename from static/icons/rss.svg rename to static/icons/feed.svg index 1607495..4d46b35 100644 --- a/static/icons/rss.svg +++ b/static/icons/feed.svg @@ -1,10 +1,10 @@ - + diff --git a/static/icons/mastodon-dark.svg b/static/icons/mastodon-dark.svg new file mode 100644 index 0000000..39a116b --- /dev/null +++ b/static/icons/mastodon-dark.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/mastodon.svg b/static/icons/mastodon.svg new file mode 100644 index 0000000..e03938c --- /dev/null +++ b/static/icons/mastodon.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/twitter-dark.svg b/static/icons/twitter-dark.svg deleted file mode 100644 index 9847c48..0000000 --- a/static/icons/twitter-dark.svg +++ /dev/null @@ -1,47 +0,0 @@ - - - - diff --git a/static/icons/twitter.svg b/static/icons/twitter.svg deleted file mode 100644 index e942b9f..0000000 --- a/static/icons/twitter.svg +++ /dev/null @@ -1,47 +0,0 @@ - - - -