mirror of
https://github.com/meineerde/holgerjust.de.git
synced 2025-10-17 17:01:01 +00:00
Improvements
This commit is contained in:
parent
be0ba37163
commit
be071b0a52
@ -161,4 +161,5 @@ module MiddlemanCasperHelpers
|
||||
nil
|
||||
end
|
||||
end
|
||||
alias :twitter_title :og_title
|
||||
end
|
||||
|
||||
@ -8,9 +8,10 @@
|
||||
%meta{'http-equiv' => 'X-UA-Compatible', content: 'IE=edge'}
|
||||
%meta{name: 'HandheldFriendly', content: 'True'}
|
||||
|
||||
-# Open Graph Tags
|
||||
%meta{property: "og:site_name", content: blog_settings.name}
|
||||
%meta{property: "og:type", content: og_type}
|
||||
- if !og_title.nil?
|
||||
- if og_title.present?
|
||||
%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)}
|
||||
@ -19,11 +20,12 @@
|
||||
- if is_blog_article?
|
||||
%meta{property: "article:published_time", content: current_article.date.strftime('%Y-%m-%d')}
|
||||
|
||||
-# Twitter Card Tags
|
||||
%meta{name: "twitter:card", content: "summary"}
|
||||
- if blog_author.twitter
|
||||
- if blog_author.twitter.present?
|
||||
%meta{name: "twitter:site", content: "@#{blog_author.twitter}"}
|
||||
- if og_title
|
||||
%meta{name: "twitter:title", content: og_title}
|
||||
- if twitter_title.present?
|
||||
%meta{name: "twitter:title", content: twitter_title}
|
||||
%meta{name: "twitter:description", content: page_description}
|
||||
%meta{name: "twitter:url", content: URI.join(blog_settings.url, current_page.url)}
|
||||
%meta{name: "twitter:dnt", content: 'on'}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user