From dc6db80fa72286704849ef61ee0e5ccb5841cb09 Mon Sep 17 00:00:00 2001 From: Bradley Taunt Date: Tue, 2 Jul 2024 14:28:49 -0400 Subject: Conversion to barf for testing purposes --- _posts/2022-06-20-rss-click.md | 48 ------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 _posts/2022-06-20-rss-click.md (limited to '_posts/2022-06-20-rss-click.md') diff --git a/_posts/2022-06-20-rss-click.md b/_posts/2022-06-20-rss-click.md deleted file mode 100644 index 0592aae..0000000 --- a/_posts/2022-06-20-rss-click.md +++ /dev/null @@ -1,48 +0,0 @@ ---- -layout: post -title: "Clickable Links Inside XML" -date: 2022-06-20 ---- - - -With the recent patch to the Shinobi Website project, I thought it would be best to share my experience implementing clickable links inside a rendered XML RSS file directly through a browser. This is made possible thanks to the awesome power of XSL formatting. - -Before we begin, it should be noted that both Safari for macOS and *all* browsers on iOS do NOT support the ability to render XML files. Instead you are required to download the feeds as static files to your system. Major bummmer. Hopefully this will be fixed in the near future. - -## The Code - -Rendering your entry links as interactive URLs is fairly intuitive. You just need to: - -1. Tell the file which tag it needs to render as the "a:link" element -2. Set the inner child attribute to "href" -3. Set the value of that attribute to use the entry's `link` parameter - ---- - - - - - - -
-
- - -In the instance above I am rendering the entry title as a clickable element which will direct users to the specific entry URL. You could simply render the full entry link URL text as the interactive link if you prefer. Something like: - - - - - - -
-
- - -## Live Example - -In a supported browser, you can see the code in action here: https://pblog.bt.ht/feed.xml - -That's really all there is to it. - -[^1]: https://shinobi.bt.ht/posts/patch-3.txt -- cgit v1.2.3-54-g00ecf