From 8c53392c219068cf8b35f6d5bae40a5eb1291b9d Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sun, 6 Aug 2023 12:29:51 -0700 Subject: [PATCH] feat: simplify icons + dry feed styles --- package.json | 2 +- src/404.html | 2 +- src/_includes/feed.liquid | 84 ++++++++++ src/_includes/icons/calendar.liquid | 4 +- src/_includes/icons/coffee.liquid | 4 +- src/_includes/icons/email.liquid | 4 +- src/_includes/icons/github.liquid | 4 +- src/_includes/icons/goodreads.liquid | 4 +- src/_includes/icons/lastfm.liquid | 4 +- src/_includes/icons/letterboxd.liquid | 4 +- src/_includes/icons/linkedin.liquid | 4 +- src/_includes/icons/mastodon.liquid | 4 +- src/_includes/icons/rss.liquid | 4 +- src/_includes/icons/search.liquid | 4 +- src/_includes/icons/spotify.liquid | 4 +- src/_includes/icons/tags.liquid | 4 +- src/_includes/icons/trakt.liquid | 4 +- src/_includes/icons/webrings.liquid | 4 +- .../partials/now/albumReleases.liquid | 4 +- src/_includes/partials/now/albums.liquid | 4 +- src/_includes/partials/now/artists.liquid | 4 +- src/_includes/partials/now/books.liquid | 4 +- src/_includes/partials/now/links.liquid | 4 +- src/_includes/partials/now/movies.liquid | 4 +- src/_includes/partials/now/tv.liquid | 4 +- src/_includes/partials/paginator.liquid | 16 +- src/_includes/partials/popular-posts.liquid | 4 +- src/_includes/webrings/css-joy.liquid | 12 +- src/_includes/webrings/the-claw.liquid | 4 +- src/assets/feeds/books.md | 8 + src/assets/feeds/books.xsl | 89 ----------- src/assets/feeds/feed.md | 8 + src/assets/feeds/feed.xsl | 109 ------------- src/assets/feeds/follow.md | 8 + src/assets/feeds/follow.xsl | 90 ----------- src/assets/feeds/links.md | 8 + src/assets/feeds/links.xsl | 89 ----------- src/now.html | 20 +-- ...ng-data-from-apple-music-using-musickit.md | 10 +- ...cs-to-json-surfacing-anticipated-albums.md | 6 +- ...r-posts-widget-using-eleventy-plausible.md | 4 +- tailwind.css | 18 ++- yarn.lock | 150 +++++++++--------- 43 files changed, 290 insertions(+), 539 deletions(-) create mode 100644 src/_includes/feed.liquid create mode 100644 src/assets/feeds/books.md delete mode 100644 src/assets/feeds/books.xsl create mode 100644 src/assets/feeds/feed.md delete mode 100644 src/assets/feeds/feed.xsl create mode 100644 src/assets/feeds/follow.md delete mode 100644 src/assets/feeds/follow.xsl create mode 100644 src/assets/feeds/links.md delete mode 100644 src/assets/feeds/links.xsl diff --git a/package.json b/package.json index 05a36933..15f786ff 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "child_process": "^1.0.2", "clean-css": "^5.3.2", "dotenv-flow": "^3.2.0", - "eleventy-plugin-tabler-icons": "^1.0.8", + "eleventy-plugin-tabler-icons": "^2.0.1", "eleventy-plugin-unfurl": "^1.0.0", "eleventy-plugin-youtube-embed": "^1.9.0", "eslint": "^8.46.0", diff --git a/src/404.html b/src/404.html index 8e912618..04912e9c 100644 --- a/src/404.html +++ b/src/404.html @@ -12,7 +12,7 @@ permalink: 404.html
- {% tablericon "receipt-2" "Receipt" "width=20 height=20" %} + {% tablericon "receipt-2" "Receipt" "{width: 20, height: 20}" %} Skip out on the room service bill diff --git a/src/_includes/feed.liquid b/src/_includes/feed.liquid new file mode 100644 index 00000000..5602c900 --- /dev/null +++ b/src/_includes/feed.liquid @@ -0,0 +1,84 @@ + + + + + + + + + + {{ title }} + + + + + + + + + +
+
+ +
+
+

+
+ {% tablericon icon title %} +
+ {{ title }} +

+

{{ description }}

+

+ +

+
+
    + +
+
+
+
+

+ This is a web feed, + also known as an RSS or Atom feed. +

+

+ Subscribe + by copying the URL from the address bar into your newsreader. +

+
+ Visit About Feeds to get started with newsreaders and + subscribing. It's free. + +
+
+
+ + +
+ +
  • + + + + + + + + +
  • +
    +
    \ No newline at end of file diff --git a/src/_includes/icons/calendar.liquid b/src/_includes/icons/calendar.liquid index 2d98ceb0..246af82e 100644 --- a/src/_includes/icons/calendar.liquid +++ b/src/_includes/icons/calendar.liquid @@ -1,7 +1,7 @@ - {% tablericon "calendar-plus" "SavvyCal" "height=24" %} + {% tablericon "calendar-plus" "SavvyCal" %} \ No newline at end of file diff --git a/src/_includes/icons/coffee.liquid b/src/_includes/icons/coffee.liquid index 0fd8dc8f..7db2b50d 100644 --- a/src/_includes/icons/coffee.liquid +++ b/src/_includes/icons/coffee.liquid @@ -1,7 +1,7 @@ - {% tablericon "cup" "Buy Me a Coffee" "height=24" %} + {% tablericon "cup" "Buy Me a Coffee" %} \ No newline at end of file diff --git a/src/_includes/icons/email.liquid b/src/_includes/icons/email.liquid index ff4c3f3f..0299d07b 100644 --- a/src/_includes/icons/email.liquid +++ b/src/_includes/icons/email.liquid @@ -1,7 +1,7 @@ - {% tablericon "at" "Email" "height=24" %} + {% tablericon "at" "Email" %} \ No newline at end of file diff --git a/src/_includes/icons/github.liquid b/src/_includes/icons/github.liquid index 7217bcbd..1f8d1a9a 100644 --- a/src/_includes/icons/github.liquid +++ b/src/_includes/icons/github.liquid @@ -1,7 +1,7 @@ - {% tablericon "brand-github" "GitHub" "height=24" %} + {% tablericon "brand-github" "GitHub" %} \ No newline at end of file diff --git a/src/_includes/icons/goodreads.liquid b/src/_includes/icons/goodreads.liquid index 7a97519c..220e79bd 100644 --- a/src/_includes/icons/goodreads.liquid +++ b/src/_includes/icons/goodreads.liquid @@ -1,7 +1,7 @@ - {% tablericon "books" "Goodreads" "height=24" %} + {% tablericon "books" "Goodreads" %} \ No newline at end of file diff --git a/src/_includes/icons/lastfm.liquid b/src/_includes/icons/lastfm.liquid index 47699054..1ad2307c 100644 --- a/src/_includes/icons/lastfm.liquid +++ b/src/_includes/icons/lastfm.liquid @@ -1,7 +1,7 @@ - {% tablericon "brand-lastfm" "Last.fm" "height=24" %} + {% tablericon "brand-lastfm" "Last.fm" %} \ No newline at end of file diff --git a/src/_includes/icons/letterboxd.liquid b/src/_includes/icons/letterboxd.liquid index 632b7591..dfc8b1c8 100644 --- a/src/_includes/icons/letterboxd.liquid +++ b/src/_includes/icons/letterboxd.liquid @@ -1,7 +1,7 @@ - {% tablericon "brand-letterboxd" "Letterboxd" "height=24" %} + {% tablericon "brand-letterboxd" "Letterboxd" %} \ No newline at end of file diff --git a/src/_includes/icons/linkedin.liquid b/src/_includes/icons/linkedin.liquid index ef640488..f02b3733 100644 --- a/src/_includes/icons/linkedin.liquid +++ b/src/_includes/icons/linkedin.liquid @@ -1,7 +1,7 @@ - {% tablericon "brand-linkedin" "LinkedIn" "height=24" %} + {% tablericon "brand-linkedin" "LinkedIn" %} \ No newline at end of file diff --git a/src/_includes/icons/mastodon.liquid b/src/_includes/icons/mastodon.liquid index bd27636b..2cafc7ee 100644 --- a/src/_includes/icons/mastodon.liquid +++ b/src/_includes/icons/mastodon.liquid @@ -1,7 +1,7 @@ - {% tablericon "brand-mastodon" "Mastodon" "height=24" %} + {% tablericon "brand-mastodon" "Mastodon" %} \ No newline at end of file diff --git a/src/_includes/icons/rss.liquid b/src/_includes/icons/rss.liquid index 057fd428..a706581e 100644 --- a/src/_includes/icons/rss.liquid +++ b/src/_includes/icons/rss.liquid @@ -1,3 +1,3 @@ - - {% tablericon "rss" "RSS" "height=24" %} + + {% tablericon "rss" "RSS" %} \ No newline at end of file diff --git a/src/_includes/icons/search.liquid b/src/_includes/icons/search.liquid index 1e053f4b..a7552254 100644 --- a/src/_includes/icons/search.liquid +++ b/src/_includes/icons/search.liquid @@ -1,3 +1,3 @@ - - {% tablericon "search" "Search posts" "height=24" %} + + {% tablericon "search" "Search posts" %} \ No newline at end of file diff --git a/src/_includes/icons/spotify.liquid b/src/_includes/icons/spotify.liquid index 1ec18942..d78ed6a7 100644 --- a/src/_includes/icons/spotify.liquid +++ b/src/_includes/icons/spotify.liquid @@ -1,7 +1,7 @@ - {% tablericon "brand-spotify" "Spotify" "height=24" %} + {% tablericon "brand-spotify" "Spotify" %} \ No newline at end of file diff --git a/src/_includes/icons/tags.liquid b/src/_includes/icons/tags.liquid index cad0cd61..3c1bd470 100644 --- a/src/_includes/icons/tags.liquid +++ b/src/_includes/icons/tags.liquid @@ -1,3 +1,3 @@ - - {% tablericon "tag" "Post tags" "height=24" %} + + {% tablericon "tag" "Post tags" %} \ No newline at end of file diff --git a/src/_includes/icons/trakt.liquid b/src/_includes/icons/trakt.liquid index d7f8bad2..83941e6a 100644 --- a/src/_includes/icons/trakt.liquid +++ b/src/_includes/icons/trakt.liquid @@ -1,7 +1,7 @@ - {% tablericon "device-tv" "Trakt" "height=24" %} + {% tablericon "device-tv" "Trakt" %} \ No newline at end of file diff --git a/src/_includes/icons/webrings.liquid b/src/_includes/icons/webrings.liquid index 0cacbc4a..15fdd2cf 100644 --- a/src/_includes/icons/webrings.liquid +++ b/src/_includes/icons/webrings.liquid @@ -1,3 +1,3 @@ - - {% tablericon "heart-handshake" "Webrings" "height=24" %} + + {% tablericon "heart-handshake" "Webrings" %} \ No newline at end of file diff --git a/src/_includes/partials/now/albumReleases.liquid b/src/_includes/partials/now/albumReleases.liquid index a135e07d..f45d738e 100644 --- a/src/_includes/partials/now/albumReleases.liquid +++ b/src/_includes/partials/now/albumReleases.liquid @@ -1,6 +1,6 @@ {% if albumReleases.size > 0 %} -

    - {% tablericon "calendar-time" "Anticipated albums" "height=28" %} +

    + {% tablericon "calendar-time" "Anticipated albums" %}
    Anticipated albums