mirror of
https://github.com/meineerde/holgerjust.de.git
synced 2025-10-17 17:01:01 +00:00
57 lines
2.3 KiB
Plaintext
57 lines
2.3 KiB
Plaintext
!!! 5
|
|
%html
|
|
%head
|
|
%title= page_title
|
|
%meta{name: :description, content: page_description}
|
|
%meta{charset: 'utf-8'}
|
|
%meta{name: :viewport, content: 'width=device-width, initial-scale=1.0'}
|
|
%meta{'http-equiv' => 'X-UA-Compatible', content: 'IE=edge'}
|
|
%meta{name: 'HandheldFriendly', content: 'True'}
|
|
|
|
%meta{property: "og:site_name", content: blog_settings.name}
|
|
%meta{property: "og:type", content: og_type}
|
|
- if !og_title.nil?
|
|
%meta{property: "og:title", content: og_title}
|
|
%meta{property: "og:description", content: page_description}
|
|
%meta{property: "og:url", content: URI.join(blog_settings.url, current_page.url)}
|
|
- if cover?
|
|
%meta{property: "og:image", content: URI.join(blog_settings.url, image_path(current_page.data.cover))}
|
|
- if is_blog_article?
|
|
%meta{property: "article:published_time", content: current_article.date.strftime('%Y-%m-%d')}
|
|
|
|
%meta{name: "twitter:card", content: "summary"}
|
|
- if blog_author.twitter
|
|
%meta{name: "twitter:site", content: "@#{blog_author.twitter}"}
|
|
- if og_title
|
|
%meta{name: "twitter:title", content: og_title}
|
|
%meta{name: "twitter:description", content: page_description}
|
|
%meta{name: "twitter:url", content: URI.join(blog_settings.url, current_page.url)}
|
|
- if cover?
|
|
%meta{name: "twitter:image:src", content: URI.join(blog_settings.url, image_path(current_page.data.cover))}
|
|
|
|
= feed_tag :atom, "#{blog.options.prefix.to_s}/feed.xml", title: "Atom Feed"
|
|
= favicon_tag 'images/favicon.ico'
|
|
= stylesheet_link_tag :application
|
|
%link{rel: :stylesheet, type: 'text/css', href: '//fonts.googleapis.com/css?family=Merriweather:300,700,700italic,300italic|Open+Sans:700,400'}
|
|
%link{rel: 'author', type: 'text/plain', href: '/humans.txt'}
|
|
%body{class: "#{page_class} nav-closed"}
|
|
|
|
= partial(:navigation)
|
|
|
|
.site-wrapper
|
|
= yield
|
|
|
|
%footer.site-footer.clearfix
|
|
%section.copyright
|
|
%a{href: home_path}= blog_settings.name
|
|
©
|
|
= Time.now.year
|
|
%section.poweredby
|
|
-#
|
|
Proudly published with
|
|
%a{href: 'http://middlemanapp.com'} Middleman
|
|
Casper theme powered by
|
|
%a{href: 'https://ghost.org'} Ghost
|
|
|
|
= javascript_include_tag :application
|