add atom feed
This commit is contained in:
parent
17eea6e71b
commit
92828d9199
6 changed files with 18 additions and 5 deletions
4
Gemfile
4
Gemfile
|
@ -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'
|
||||
|
|
|
@ -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
6
Rules
|
@ -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
1
content/feed.erb
Normal file
|
@ -0,0 +1 @@
|
|||
<%= atom_feed %>
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue