implement authors

This commit is contained in:
Lorin Werthen 2016-10-11 15:11:18 +02:00
parent ad252b7e3d
commit 2bcd580b62
6 changed files with 17 additions and 20 deletions

View file

@ -1,7 +1,7 @@
# frozen_string_literal: true # frozen_string_literal: true
source 'https://rubygems.org' source 'https://rubygems.org'
gem 'nanoc', '~>4.3.3' gem 'nanoc', '4.3.4'
gem 'kramdown' gem 'kramdown'
gem 'coffee-script' gem 'coffee-script'
# Needed for relativize_urls # Needed for relativize_urls

View file

@ -88,7 +88,7 @@ DEPENDENCIES
highline highline
icalendar icalendar
kramdown kramdown
nanoc (~> 4.3.3) nanoc (= 4.3.4)
nokogiri nokogiri
sass sass
terminal-notifier-guard terminal-notifier-guard

3
Rules
View file

@ -4,9 +4,6 @@
require 'json' require 'json'
require 'icalendar' require 'icalendar'
# Please @NoctuaNivalis
require 'socket'
# #
# #
# PREPROCESS # PREPROCESS

View file

@ -1,12 +1,12 @@
<div class="content blogpost"> <h1 class="title is-1 has-text-centered">
<div class="has-text-centered">
<h1 class="title is-1">
<%= item[:title] %> <%= item[:title] %>
</h1> </h1>
<h2 class="subtitle is-3"> <% if item[:author] %>
Author <h2 class="subtitle is-3 has-text-centered">
<%= item[:author] %>
</h2> </h2>
</div> <% end %>
<div class="content blogpost">
<main class="blogwidth"> <main class="blogwidth">
<%= yield %> <%= yield %>
</main> </main>