jasonmurray-org-ch0tvb.txt (4504B)
1 [1]Jason Murray 2 [2]About [3]Blog [4]Now [5]Resume [6]Contact 3 [7][8][9][10][11] 4 5 • [13]About 6 • [14]Blog 7 • [15]Now 8 • [16]Resume 9 • [17]Contact 10 11 Nov 1, 2021 12 13 Enable Full Text RSS Feeds in Hugo 14 15 By default, [18]Hugo summarizes each article when generating the RSS feed. Not 16 ideal if your the type of person who prefers to read the full content directly 17 in an RSS reader. This post will show you how to enable full text RSS feeds in 18 Hugo. 19 20 Here’s an example of a long article summarized in [19]Inoreader: 21 22 [20]Image of Summarized article from RSS feed in Inoreader 23 24 Here’s the same article after enabling full content RSS feeds: 25 26 [21]Image of 27 28 Configuration Details[22] 29 30 Create the following directory structure in the root of your Hugo site: 31 32 mkdir layouts/_default 33 34 Output Example: 35 36 jemurray@phalanges:~/Documents/www-personal/current/jasonmurray.org $ mkdir layouts/_default 37 38 Then copy the following file into the layouts/_default directory. It’s is an 39 updated version of the default [23]RSS template with the appropriate 40 modifications to generate full text RSS feeds: 41 42 wget https://raw.githubusercontent.com/0xJasonMurray/jasonmurray.org/main/layouts/_default/rss.xml -O layouts/_default/rss.xml 43 44 Output Example: 45 46 jemurray@phalanges:~/Documents/www-personal/current/jasonmurray.org $ wget https://raw.githubusercontent.com/0xJasonMurray/jasonmurray.org/main/layouts/_default/rss.xml -O layouts/_default/rss.xml 47 --2021-11-01 19:23:12-- https://raw.githubusercontent.com/0xJasonMurray/jasonmurray.org/main/layouts/_default/rss.xml 48 Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.108.133, 185.199.109.133, ... 49 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected. 50 HTTP request sent, awaiting response... 200 OK 51 Length: 1959 (1.9K) [text/plain] 52 Saving to: ‘layouts/_default/rss.xml’ 53 54 layouts/_default/rss.xml 100%[=========================================================================================================================================>] 1.91K --.-KB/s in 0s 55 56 2021-11-01 19:23:12 (8.94 MB/s) - ‘layouts/_default/rss.xml’ saved [1959/1959] 57 58 For those curious, here’s the diff between the original and the modified 59 version of the rss.xml file: 60 61 jemurray@phalanges:~ $ diff rss.xml Documents/www-personal/current/jasonmurray.org/layouts/_default/rss.xml 62 35c35 63 < <description>{{ .Summary | html }}</description> 64 --- 65 > <description>{{ .Content | html }}</description> 66 67 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 68 69 [24]hugo[25]rss 70 71 207 Words 72 73 2021-11-01 19:21 -0500 74 75 [26] Newer 76 Configure Client Wireguard VPN Server on Linux [27] Older 77 Preparing to ThreatHunt: Installing and Configuring Sysmon on Windows 10 78 79 © 2024 [28]Jason Murray · [29]CC BY-NC 4.0 80 81 Made with [30]Hugo · Theme [31]Hermit · [32] 82 83 84 References: 85 86 [1] https://jasonmurray.org/ 87 [2] https://jasonmurray.org/pages/about/ 88 [3] https://jasonmurray.org/posts/ 89 [4] https://jasonmurray.org/now/ 90 [5] https://jasonmurray.org/pages/resume 91 [6] https://jasonmurray.org/pages/contact 92 [7] mailto:[email protected] 93 [8] http://keys.gnupg.net/pks/lookup?search=0x6E8A4FCDF2F9138C&fingerprint=on&op=index 94 [9] https://github.com/0xJasonMurray/ 95 [10] https://twitter.com/0xJasonMurray/ 96 [11] https://www.linkedin.com/in/jemurray/ 97 [13] https://jasonmurray.org/pages/about/ 98 [14] https://jasonmurray.org/posts/ 99 [15] https://jasonmurray.org/now/ 100 [16] https://jasonmurray.org/pages/resume 101 [17] https://jasonmurray.org/pages/contact 102 [18] https://gohugo.io/ 103 [19] https://www.inoreader.com/ 104 [20] https://jasonmurray.org/images/2021-11-01-19-39-24.png 105 [21] https://jasonmurray.org/images/2021-11-01-20-21-17.png 106 [22] https://jasonmurray.org/posts/2021/rssfulltexthugo/#configuration-details 107 [23] https://raw.githubusercontent.com/gohugoio/hugo/master/tpl/tplimpl/embedded/templates/_default/rss.xml 108 [24] https://jasonmurray.org/tags/hugo 109 [25] https://jasonmurray.org/tags/rss 110 [26] https://jasonmurray.org/posts/2021/wireguardlinux/ 111 [27] https://jasonmurray.org/posts/2021/sysmon-on-windows10/ 112 [28] https://jasonmurray.org/ 113 [29] https://creativecommons.org/licenses/by-nc/4.0/ 114 [30] https://gohugo.io/ 115 [31] https://github.com/Track3/hermit 116 [32] https://jasonmurray.org/posts/index.xml