mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-25 16:32:19 +00:00
update draft
This commit is contained in:
parent
df4800b9c9
commit
cb1e520c6a
2 changed files with 7 additions and 2 deletions
|
@ -12,7 +12,7 @@ tags:
|
|||
- hugo
|
||||
- meta
|
||||
---
|
||||
I spent a bit of time several months back making my sure my site's RSS would work well in a feed reader. This meant making a *lot* of modifications to the [default Hugo RSS template](https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/_default/rss.xml). I made it load the full article text rather than just the summary, present correctly-formatted code blocks with no loss of important whitespace, include inline images, and even pass online validation checks:
|
||||
I put in some work several months back making my sure my site's RSS would work well in a feed reader. This meant making a *lot* of modifications to the [default Hugo RSS template](https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/_default/rss.xml). I made it load the full article text rather than just the summary, present correctly-formatted code blocks with no loss of important whitespace, include inline images, and even pass online validation checks:
|
||||
|
||||
[![Validate my RSS feed](valid-rss-rogers.png)](http://validator.w3.org/feed/check.cgi?url=https%3A//runtimeterror.dev/feed.xml)
|
||||
|
||||
|
@ -22,4 +22,9 @@ But while the feed looks great when rendered by a reader, the browser presentati
|
|||
|
||||
It feels like there should be a friendlier way to present a feed "landing page" to help users new to RSS figure out what they need to do in order to follow a blog - and there absolutely is. In much the same way that you can prettify plain HTML with the inclusion of a CSS stylesheet, you can also style boring XML using [eXtensible Stylesheet Language Transformations (XSLT)](https://www.w3schools.com/xml/xsl_intro.asp).
|
||||
|
||||
So this post will describe how I styled
|
||||
This post will quickly cover how I used XSLT to style my blog's RSS feed and made it look like this:
|
||||
|
||||
![Much more attractive RSS feed with styling to fit the site's theme](pretty-feed.png)
|
||||
|
||||
### Starting Point
|
||||
I won't go into too much detail
|
BIN
content/posts/prettify-hugo-rss-feed-xslt/pretty-feed.png
Normal file
BIN
content/posts/prettify-hugo-rss-feed-xslt/pretty-feed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 102 KiB |
Loading…
Reference in a new issue