opengraph
This commit is contained in:
parent
bc3cd8e40e
commit
c45d27020e
6 changed files with 14 additions and 0 deletions
3
Gemfile
3
Gemfile
|
@ -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'
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 %>
|
||||||
|
|
|
@ -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
1
lib/capturing.rb
Normal file
|
@ -0,0 +1 @@
|
||||||
|
include Nanoc::Helpers::Capturing
|
Loading…
Reference in a new issue