summaryrefslogtreecommitdiffstats
path: root/blog/_plugins
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2019-04-17 21:14:50 +0200
committerHarald Eilertsen <haraldei@anduin.net>2019-04-17 21:14:50 +0200
commitcf020beb2111ba02ae3b39aa057034309f431095 (patch)
tree945bb4f50eb9a594a945daefeb644cfdd8432280 /blog/_plugins
parentd64cde2afb500402bf5087c52fa6336add8f93e6 (diff)
downloadnorsk-urskog-main-cf020beb2111ba02ae3b39aa057034309f431095.tar.gz
norsk-urskog-main-cf020beb2111ba02ae3b39aa057034309f431095.tar.bz2
norsk-urskog-main-cf020beb2111ba02ae3b39aa057034309f431095.zip
Legg til utgivelsesnummer (vol) for hver utgivelse også.
Diffstat (limited to 'blog/_plugins')
-rw-r--r--blog/_plugins/releases.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/blog/_plugins/releases.rb b/blog/_plugins/releases.rb
index b9f71b5..f858007 100644
--- a/blog/_plugins/releases.rb
+++ b/blog/_plugins/releases.rb
@@ -6,8 +6,8 @@ module Jekyll
class ReleaseTag < Liquid::Tag
def initialize(tag, text, context)
super
- @year, thumbnail = text.split('|').map(&:strip)
- @title = "Norsk Urskog Metal Sampler, #{@year}"
+ @year, vol, thumbnail = text.split('|').map(&:strip)
+ @title = "Norsk Urskog Metal Sampler, Vol #{vol} #{@year}"
@thumbnail = Assets::Liquid::Tag.new('img', "#{thumbnail} magick:resize:400x alt:\"#{@title} cover\"", context)
end