Skip to content

Commit e38931b

Browse files
committed
Add RSS Feed link and rel="alternative" link to blog page.
Resolves #56. Closes shurcooL-legacy/backlog#27.
1 parent c3cac82 commit e38931b

File tree

5 files changed

+29
-1
lines changed

5 files changed

+29
-1
lines changed

_includes/css/style.css

+1
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ a:focus {
416416
#blue h3 {
417417
color: white;
418418
margin-left: 15px;
419+
margin-right: 15px;
419420
}
420421

421422
.ctitle {

_includes/feed-link.html

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<a href="/feed.xml" style="
2+
float: right;
3+
line-height: 1;
4+
background-color: #fff;
5+
padding: 3px;
6+
border-radius: 6px;
7+
"><img src="/assets/fonts/feed-icon.svg" style="width: 24px; height: 24px; vertical-align: top;" alt="RSS Feed" title="RSS Feed"></a>

_includes/head.html

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
<title>{{ site.title }}{% if page.title %} - {{ page.title }}{% endif %}</title>
1010

11+
{% if page.title == "Blog" %}<link rel="alternate" type="application/atom+xml" title="GopherJS Blog" href="/feed.xml" />{% endif %}
12+
1113
<!-- Bootstrap core CSS -->
1214
<link href="{{ "/assets/css/bootstrap.css" | prepend: site.baseurl }}" rel="stylesheet">
1315

_includes/wrap.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div id="blue">
22
<div class="container">
33
<div class="row">
4-
<h3>{{ page.title }}.</h3>
4+
<h3>{{ page.title }}.{% if page.title == "Blog" %}{% include feed-link.html %}{% endif %}</h3>
55
</div><!-- /row -->
66
</div> <!-- /container -->
77
</div><!-- /blue -->

assets/fonts/feed-icon.svg

+18
Loading

0 commit comments

Comments
 (0)