Skip to content

Add RSS Feed link and rel="alternative" link to blog page. #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 7, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions _includes/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ a:focus {
#blue h3 {
color: white;
margin-left: 15px;
margin-right: 15px;
}

.ctitle {
Expand Down
7 changes: 7 additions & 0 deletions _includes/feed-link.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<a href="/feed.xml" style="
float: right;
line-height: 1;
background-color: #fff;
padding: 3px;
border-radius: 6px;
"><img src="/assets/fonts/feed-icon.svg" style="width: 24px; height: 24px; vertical-align: top;" alt="RSS Feed" title="RSS Feed"></a>
2 changes: 2 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

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

{% if page.title == "Blog" %}<link rel="alternate" type="application/atom+xml" title="GopherJS Blog" href="/feed.xml" />{% endif %}

<!-- Bootstrap core CSS -->
<link href="{{ "/assets/css/bootstrap.css" | prepend: site.baseurl }}" rel="stylesheet">

Expand Down
2 changes: 1 addition & 1 deletion _includes/wrap.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div id="blue">
<div class="container">
<div class="row">
<h3>{{ page.title }}.</h3>
<h3>{{ page.title }}.{% if page.title == "Blog" %}{% include feed-link.html %}{% endif %}</h3>
</div><!-- /row -->
</div> <!-- /container -->
</div><!-- /blue -->
18 changes: 18 additions & 0 deletions assets/fonts/feed-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.