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
# A sample Gemfile
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 'kramdown'
gem 'coffee-script'
# Needed for relativize_urls
gem 'nokogiri'
gem 'sass'
# Needed for atom_feed in blogging helper
gem 'builder'
# Checks
gem 'w3c_validators'

View file

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

6
Rules
View file

@ -39,6 +39,9 @@ end
# COMPILATION
#
#
compile '/feed.*' do
filter :erb
end
#
# CAMMIE
@ -114,6 +117,9 @@ passthrough '/assets/images/*.{png}'
#
#
route '/feed.*' do
'/feed.xml'
end
#
# 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">
<i class="logo-link fa fa-facebook fa-3x"></i>
</a>
<a href="#" target="_blank">
<a href="/feed.xml" target="_blank">
<i class="logo-link fa fa-rss fa-3x"></i>
</a>
</div>

View file

@ -1,5 +1,9 @@
#base_url: https://zeus.ugent.be/beta
base_url: http://localhost:3000
title: Zeus WPI
# 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"`
# (default) or `"legacy"`. The former will enable glob patterns, which behave