Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e38931b

Browse filesBrowse 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
Copy full SHA for e38931b

File tree

Expand file treeCollapse file tree

5 files changed

+29
-1
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+29
-1
lines changed

‎_includes/css/style.css

Copy file name to clipboardExpand all lines: _includes/css/style.css
+1Lines changed: 1 addition & 0 deletions
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

Copy file name to clipboard
+7Lines changed: 7 additions & 0 deletions
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

Copy file name to clipboardExpand all lines: _includes/head.html
+2Lines changed: 2 additions & 0 deletions
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

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
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

Copy file name to clipboard
+18Lines changed: 18 additions & 0 deletions
Loading

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.