1
0
mirror of https://github.com/meineerde/holgerjust.de.git synced 2026-02-21 19:12:05 +00:00

Add license option for each page

This commit is contained in:
Holger Just 2015-12-05 18:49:33 +01:00
parent d9a9f0813b
commit ac8de1412c
4 changed files with 15 additions and 1 deletions

View File

@ -36,7 +36,8 @@ set :casper, {
description: 'Makes developing websites simple.',
date_format: '%d %B %Y',
navigation: true,
logo: nil # Optional
logo: nil, # Optional
default_license: 'cc_by_sa'
},
author: {
name: 'Middleman',

View File

@ -48,5 +48,7 @@
= Time.now.year
|
= link_to 'Impressum', '/impressum/'
%section.license
= partial("licenses/#{current_page.data.license || blog_settings.default_license}")
= javascript_include_tag :application

View File

@ -0,0 +1,4 @@
This work by
= link_to blog_author.name, blog_author.website, 'xmlns:cc' => 'http://creativecommons.org/ns#', :property => 'cc:attributionName', :rel => 'cc:attributionURL'
is licensed under
= link_to('CC BY-SA 4.0', 'http://creativecommons.org/licenses/by-sa/4.0/', rel: 'license')

View File

@ -1,2 +1,9 @@
@import 'vendor/casper';
@import 'syntax';
.license {
display: block;
width: 45%;
float: right;
text-align: right;
}