add atom feed

This commit is contained in:
Lorin Werthen 2016-07-26 20:08:42 +02:00
parent 17eea6e71b
commit 92828d9199
No known key found for this signature in database
GPG key ID: F11FFC921E0E08E0
6 changed files with 18 additions and 5 deletions

View file

@ -1,14 +1,14 @@
# frozen_string_literal: true # frozen_string_literal: true
# A sample Gemfile
source 'https://rubygems.org' source 'https://rubygems.org'
# gem 'nanoc', git: 'https://github.com/werthen/nanoc.git', branch: 'add-resources-to-ilinks-check'
gem 'nanoc', '4.2.4' gem 'nanoc', '4.2.4'
gem 'kramdown' gem 'kramdown'
gem 'coffee-script' gem 'coffee-script'
# Needed for relativize_urls # Needed for relativize_urls
gem 'nokogiri' gem 'nokogiri'
gem 'sass' gem 'sass'
# Needed for atom_feed in blogging helper
gem 'builder'
# Checks # Checks
gem 'w3c_validators' gem 'w3c_validators'

View file

@ -3,6 +3,7 @@ GEM
specs: specs:
adsf (1.2.1) adsf (1.2.1)
rack (>= 1.0.0) rack (>= 1.0.0)
builder (3.2.2)
coderay (1.1.1) coderay (1.1.1)
coffee-script (2.4.1) coffee-script (2.4.1)
coffee-script-source coffee-script-source
@ -75,6 +76,7 @@ PLATFORMS
DEPENDENCIES DEPENDENCIES
adsf adsf
builder
coffee-script coffee-script
guard-nanoc guard-nanoc
kramdown kramdown

6
Rules
View file

@ -39,6 +39,9 @@ end
# COMPILATION # COMPILATION
# #
# #
compile '/feed.*' do
filter :erb
end
# #
# CAMMIE # CAMMIE
@ -114,6 +117,9 @@ passthrough '/assets/images/*.{png}'
# #
# #
route '/feed.*' do
'/feed.xml'
end
# #
# HOMEPAGE # HOMEPAGE
# #

1
content/feed.erb Normal file
View file

@ -0,0 +1 @@
<%= atom_feed %>

View file

@ -13,7 +13,7 @@
<a href="https://www.facebook.com/zeus.wpi/" target="_blank"> <a href="https://www.facebook.com/zeus.wpi/" target="_blank">
<i class="logo-link fa fa-facebook fa-3x"></i> <i class="logo-link fa fa-facebook fa-3x"></i>
</a> </a>
<a href="#" target="_blank"> <a href="/feed.xml" target="_blank">
<i class="logo-link fa fa-rss fa-3x"></i> <i class="logo-link fa fa-rss fa-3x"></i>
</a> </a>
</div> </div>

View file

@ -1,5 +1,9 @@
#base_url: https://zeus.ugent.be/beta title: Zeus WPI
base_url: http://localhost:3000 # Needed for atom_feed
author_name: ''
author_uri: ''
base_url: https://zeus.ugent.be/beta
# The syntax to use for patterns in the Rules file. Can be either `"glob"` # The syntax to use for patterns in the Rules file. Can be either `"glob"`
# (default) or `"legacy"`. The former will enable glob patterns, which behave # (default) or `"legacy"`. The former will enable glob patterns, which behave