Commit 0a350938 authored by Milan's avatar Milan

prepare rss for blog

parent cfa7fb3c
......@@ -8,7 +8,7 @@ config/deploy_config.yml
config/schedule.rb
config/database.yml
public/
#public/
public/uploads/
public/assets/
public/source.tar*
......
GIT
remote: git://github.com/feedjira/feedjira.git
revision: faae46e3cdc59ab136c276166b2ed8164f27e987
specs:
feedjira (2.0.0)
faraday (~> 0.9)
faraday_middleware (~> 0.9)
loofah (~> 2.0)
sax-machine (~> 1.0)
GIT
remote: git://github.com/mshibuya/remotipart.git
revision: 88d9a7d55bde66acb6cf3a3c6036a5a1fc991d5e
......@@ -72,13 +62,10 @@ GEM
concurrent-ruby (1.0.2)
erubis (2.7.0)
execjs (2.7.0)
faraday (0.9.2)
multipart-post (>= 1.2, < 3)
faraday_middleware (0.10.0)
faraday (>= 0.7.4, < 0.10)
ffi (1.9.14)
font-awesome-rails (4.6.3.1)
railties (>= 3.2, < 5.1)
geocoder (1.3.7)
globalid (0.3.7)
activesupport (>= 4.1.0)
haml (4.0.7)
......@@ -111,7 +98,6 @@ GEM
mini_portile2 (2.1.0)
minitest (5.9.0)
multi_json (1.12.1)
multipart-post (2.0.0)
nested_form (0.3.2)
nio4r (1.2.1)
nokogiri (1.6.8)
......@@ -175,10 +161,6 @@ GEM
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
sax-machine (1.3.2)
simple_form (3.3.1)
actionpack (> 4, < 5.1)
activemodel (> 4, < 5.1)
sprockets (3.7.0)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
......@@ -207,7 +189,7 @@ DEPENDENCIES
bootstrap-sass (~> 3.3)
byebug
coffee-rails (~> 4.2)
feedjira!
geocoder
jbuilder (~> 2.5)
jquery-rails
listen
......@@ -218,7 +200,6 @@ DEPENDENCIES
redcarpet (= 3.3.4)
remotipart!
sass-rails (~> 5.0)
simple_form (~> 3.2)
turbolinks (~> 5)
tzinfo-data
uglifier (>= 1.3.0)
......
atom_feed do |feed|
feed.updated(@blogposts.first.updated_at)
@blogposts.each do |blogpost|
feed.entry(blogpost, :url => blog_url(blogpost)) do |entry|
entry.title(blogpost.title)
entry.author do |author|
author.name('The wonderful World of Illuna')
end
entry.content(markdownify(blogpost.content), :type => 'html')
end
end
end
<% content_for :title, t('blogposts.index.title') %>
<%= auto_discovery_link_tag(:rss, "/blog") %>
<h1>Blog</h1>
<ul id="posts">
<%- @blogposts.each_with_index do |blogpost,index| %>
......@@ -8,6 +9,6 @@
<%- if index == 0 %>
<%= markdownify blogpost.body %>
<%- end %>
<% end %>
<% end %>
</ul>
......@@ -2,7 +2,7 @@
<div class="content">
<h2><%= @blogposts.title %>
<span class="lead pull-right"><%= l @blogposts.created_at, format: :blog_headline %></span></h2>
<p><%= markdown(@blogposts.body).html_safe %></p>
<hr>
<%= link_to t('blogposts.show.all_posts'), blog_index_path, class: "btn btn-default" %>
<p><%= markdown(@blogposts.body).html_safe %></p>
<hr>
<%= link_to t('blogposts.show.all_posts'), blog_index_path, class: "btn btn-default" %>
</div>
......@@ -40,6 +40,8 @@
<li><a id="nohover"><b>·</b></a></li>
<li class="<%=is_active('faq')%>"><%= link_to "FAQ", "/faq" %></li>
<li><a id="nohover"><b>·</b></a></li>
<li class="<%=is_active('blog')%>"><%= link_to "Blog", "/blog" %></li>
<li><a id="nohover"><b>·</b></a></li>
<li class="<%=is_active('map')%>"><%= link_to "Map", "/map" %></li>
<li><a id="nohover"><b>·</b></a></li>
<li class="<%=is_active('stats')%>"><%= link_to t('nav.stats'), "/stats" %></li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment