opengraph

This commit is contained in:
Lorin Werthen 2016-07-18 11:06:45 +02:00
parent bc3cd8e40e
commit c45d27020e
6 changed files with 14 additions and 0 deletions

View file

@ -11,6 +11,9 @@ gem 'coffee-script'
gem 'nokogiri' gem 'nokogiri'
gem 'sass' gem 'sass'
# Checks
gem 'w3c_validators'
group :development do group :development do
gem 'adsf' gem 'adsf'
gem 'guard-nanoc' gem 'guard-nanoc'

View file

@ -28,6 +28,7 @@ GEM
guard (~> 2.8) guard (~> 2.8)
guard-compat (~> 1.0) guard-compat (~> 1.0)
nanoc (~> 4.0) nanoc (~> 4.0)
json (2.0.1)
kramdown (1.10.0) kramdown (1.10.0)
listen (3.1.5) listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4) rb-fsevent (~> 0.9, >= 0.9.4)
@ -59,6 +60,9 @@ GEM
shellany (0.0.1) shellany (0.0.1)
slop (3.6.0) slop (3.6.0)
thor (0.19.1) thor (0.19.1)
w3c_validators (1.2)
json
nokogiri
PLATFORMS PLATFORMS
ruby ruby
@ -71,6 +75,7 @@ DEPENDENCIES
nanoc nanoc
nokogiri nokogiri
sass sass
w3c_validators
RUBY VERSION RUBY VERSION
ruby 2.3.1p112 ruby 2.3.1p112

View file

@ -17,6 +17,7 @@
<script src="https://code.jquery.com/jquery-3.0.0.min.js" charset="utf-8"></script> <script src="https://code.jquery.com/jquery-3.0.0.min.js" charset="utf-8"></script>
<meta name="generator" content="Nanoc <%= Nanoc::VERSION %>"> <meta name="generator" content="Nanoc <%= Nanoc::VERSION %>">
<%= content_for(@item, :head) %>
</head> </head>
<body> <body>
<%= yield %> <%= yield %>

View file

@ -1,3 +1,7 @@
<% content_for :head do %>
<meta property="og:image" content="<%= item[:banner] %>" />
<% end %>
<img class="pure-img" id="event-banner" src="<%= item[:banner] %>" alt="" /> <img class="pure-img" id="event-banner" src="<%= item[:banner] %>" alt="" />
<div id="event-content"> <div id="event-content">

1
lib/capturing.rb Normal file
View file

@ -0,0 +1 @@
include Nanoc::Helpers::Capturing