Skip to content

Commit

Permalink
add meta tags
Browse files Browse the repository at this point in the history
  • Loading branch information
muratayusuke committed Mar 7, 2015
1 parent 4ff04fb commit c4e8869
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ gem 'capistrano-rbenv', require: false
gem 'capistrano3-unicorn', require: false
gem 'capistrano-scm-gitcopy', require: false
gem 'mysql2'
gem 'meta-tags'

group :development, :test do
gem 'byebug'
Expand Down
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ GEM
mandrill-api (1.0.53)
excon (>= 0.16.0, < 1.0)
json (>= 1.7.7, < 2.0)
meta-tags (2.0.0)
actionpack (>= 3.0.0)
method_source (0.8.2)
mime-types (2.4.3)
mini_portile (0.6.2)
Expand Down Expand Up @@ -360,6 +362,7 @@ DEPENDENCIES
jbuilder (~> 2.0)
jquery-rails
mandrill-api
meta-tags
mtracker
mysql2
pocket-ruby (~> 0.0.5)
Expand Down
14 changes: 13 additions & 1 deletion app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
!!! 5
%html
%head
%title あとで読むサービスPocketの未読記事を毎日メールでお届け: Pocket Porter
= display_meta_tags charaset: 'utf-8'
- title = 'Pocket Porter あとで読むサービスPocketの未読記事を毎日メールでお届け'
- description = '「あとで読む」はずだったPocketの中身を毎日メールでお届けします'
%title= title
= display_meta_tags viewport: 'width=device-width,initial-scale=1.0',
description: description,
fb: {app_id: '1548893725364773'},
og: {type: 'website',
title: title,
description: description,
site_name: 'Pocket Porter',
url: 'http://pocketporter.kumonos.jp',
image: asset_path('logo.png')}
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
%body
#fb-root
Expand Down

0 comments on commit c4e8869

Please sign in to comment.