diff options
author | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2019-12-15 15:04:01 +0100 |
---|---|---|
committer | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2019-12-15 15:04:01 +0100 |
commit | 3a1a72937e52d57abbd3e7011c504b5a622dfbc8 (patch) | |
tree | 1fe69cf0a4a1de4a1805d462969041c57133ee55 | |
parent | 597b43561ea18caf026b236ab3012a53361e0e72 (diff) |
Link to RSS feed
-rwxr-xr-x | scripts/build.rb | 1 | ||||
-rw-r--r-- | src/blog.html.erb | 3 | ||||
-rw-r--r-- | src/index.html.erb | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/scripts/build.rb b/scripts/build.rb index a1c9754..103e8f9 100755 --- a/scripts/build.rb +++ b/scripts/build.rb @@ -39,6 +39,7 @@ P.add 'style', 'style.css' P.add 'index', 'index.html' P.add 'blog', 'blog.html' P.add 'projects', 'projects.html' +P.add 'rss', 'rss.xml' if !Dir.exists? 'public/blog' Dir.mkdir 'public/blog' diff --git a/src/blog.html.erb b/src/blog.html.erb index 3709ca9..7fb308e 100644 --- a/src/blog.html.erb +++ b/src/blog.html.erb @@ -1,3 +1,6 @@ +<p> +Subscribe with <a href='<%= path_to 'rss' %>'>RSS</a> +</p> <ul> <% posts.each do |post| %> <li> diff --git a/src/index.html.erb b/src/index.html.erb index 10052ee..f5805e5 100644 --- a/src/index.html.erb +++ b/src/index.html.erb @@ -5,7 +5,7 @@ bachelor's. </p> -<h2>Recent posts:</h2> +<h2>Recent posts <a style='font-size: 18px;' href='<%= path_to 'rss' %>'>(RSS)</a>:</h2> <ul> <% posts.take(5).each do |post| %> |