diff --git a/config.rb b/config.rb index 0846607..65ba953 100644 --- a/config.rb +++ b/config.rb @@ -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', diff --git a/source/layouts/layout.haml b/source/layouts/layout.haml index 6a2d584..7c8143b 100644 --- a/source/layouts/layout.haml +++ b/source/layouts/layout.haml @@ -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 diff --git a/source/partials/licenses/cc_by_sa.haml b/source/partials/licenses/cc_by_sa.haml new file mode 100644 index 0000000..73c2504 --- /dev/null +++ b/source/partials/licenses/cc_by_sa.haml @@ -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') diff --git a/source/stylesheets/application.css.scss b/source/stylesheets/application.css.scss index 9c35ff3..8730361 100644 --- a/source/stylesheets/application.css.scss +++ b/source/stylesheets/application.css.scss @@ -1,2 +1,9 @@ @import 'vendor/casper'; @import 'syntax'; + +.license { + display: block; + width: 45%; + float: right; + text-align: right; +}