File tree Expand file tree Collapse file tree 3 files changed +43
-1
lines changed Expand file tree Collapse file tree 3 files changed +43
-1
lines changed Original file line number Diff line number Diff line change @@ -203,9 +203,17 @@ author:
203
203
204
204
Remove the lines that you don't want to display in the footer, and change `yourname` to the correct values in the links you want to keep.
205
205
206
+ # ### Add an RSS feed link to the footer
207
+
208
+ You can add an icon that will link to an RSS feed of your blog by including the following parameter in `_config.yml` :
209
+
210
+ ` ` ` yaml
211
+ rss-footer: true
212
+ ` ` `
213
+
206
214
# ### Add your website's name to the footer
207
215
208
- After all the contact info links, you can also add the name of your website by defining the` url-pretty` parameter in `_config.yml` :
216
+ After all the contact info links, you can also add the name of your website by defining the ` url-pretty` parameter in `_config.yml` :
209
217
210
218
` ` ` yaml
211
219
url-pretty: "MyWebsite.com"
Original file line number Diff line number Diff line change 143
143
</ a >
144
144
</ li >
145
145
{% endif %}
146
+ {% if site.rss-footer %}
147
+ < li >
148
+ < a href ="/feed.xml " title ="RSS ">
149
+ < span class ="fa-stack fa-lg ">
150
+ < i class ="fa fa-circle fa-stack-2x "> </ i >
151
+ < i class ="fa fa-rss fa-stack-1x fa-inverse "> </ i >
152
+ </ span >
153
+ </ a >
154
+ </ li >
155
+ {% endif %}
146
156
</ ul >
147
157
< p class ="copyright text-muted ">
148
158
{% if site.author.name %}
Original file line number Diff line number Diff line change
1
+ ---
2
+ layout: null
3
+ ---
4
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
5
+ <rss version =" 2.0" xmlns : atom =" http://www.w3.org/2005/Atom" >
6
+ <channel >
7
+ <title >{{ site.title | xml_escape }}</title >
8
+ <description >{{ site.description | xml_escape }}</description >
9
+ <link >{{ site.url }}</link >
10
+ <atom : link href =" {{ site.url }}/feed.xml" rel =" self" type =" application/rss+xml" />
11
+ {% for post in site.posts limit:20 %}
12
+ <item >
13
+ <title >{{ post.title | xml_escape }}</title >
14
+ <description >
15
+ {% if post.subtitle %}{{ post.subtitle | xml_escape }} - {% endif %}
16
+ {{ post.content | strip_html | xml_escape | truncatewords: 50 }}
17
+ </description >
18
+ <pubDate >{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate >
19
+ <link >{{ site.url }}{{ post.url }}</link >
20
+ <guid isPermaLink =" true" >{{ site.url }}{{ post.url }}</guid >
21
+ </item >
22
+ {% endfor %}
23
+ </channel >
24
+ </rss >
You can’t perform that action at this time.
0 commit comments