mirror of
https://github.com/meineerde/holgerjust.de.git
synced 2026-02-22 19:42:30 +00:00
Add license option for each page
This commit is contained in:
parent
d9a9f0813b
commit
ac8de1412c
@ -36,7 +36,8 @@ set :casper, {
|
|||||||
description: 'Makes developing websites simple.',
|
description: 'Makes developing websites simple.',
|
||||||
date_format: '%d %B %Y',
|
date_format: '%d %B %Y',
|
||||||
navigation: true,
|
navigation: true,
|
||||||
logo: nil # Optional
|
logo: nil, # Optional
|
||||||
|
default_license: 'cc_by_sa'
|
||||||
},
|
},
|
||||||
author: {
|
author: {
|
||||||
name: 'Middleman',
|
name: 'Middleman',
|
||||||
|
|||||||
@ -48,5 +48,7 @@
|
|||||||
= Time.now.year
|
= Time.now.year
|
||||||
|
|
|
|
||||||
= link_to 'Impressum', '/impressum/'
|
= link_to 'Impressum', '/impressum/'
|
||||||
|
%section.license
|
||||||
|
= partial("licenses/#{current_page.data.license || blog_settings.default_license}")
|
||||||
|
|
||||||
= javascript_include_tag :application
|
= javascript_include_tag :application
|
||||||
|
|||||||
4
source/partials/licenses/cc_by_sa.haml
Normal file
4
source/partials/licenses/cc_by_sa.haml
Normal 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')
|
||||||
@ -1,2 +1,9 @@
|
|||||||
@import 'vendor/casper';
|
@import 'vendor/casper';
|
||||||
@import 'syntax';
|
@import 'syntax';
|
||||||
|
|
||||||
|
.license {
|
||||||
|
display: block;
|
||||||
|
width: 45%;
|
||||||
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user