-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from michellebonat/seo_1
SEO part 1: meta titles and descriptions using variables; friendly ID install and setup; update forms and files for these configs; add google analytics.
- Loading branch information
Showing
12 changed files
with
81 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
class VisitorsController < ApplicationController | ||
def resume | ||
@meta_title = "Software engineer full stack ruby rails Michelle Bonat" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
class Post < ActiveRecord::Base | ||
extend FriendlyId | ||
friendly_id :permalink, use: [:slugged, :history, :finders] | ||
# validates :permalink, presence: true, uniqueness: true | ||
|
||
def should_generate_new_friendly_id? | ||
permalink_changed? | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
!!! | ||
%html | ||
%head | ||
%meta{:name => "viewport", :content => "width=device-width, initial-scale=1.0"} | ||
%title= content_for?(:title) ? yield(:title) : 'Mbonat Site' | ||
%meta{:name => "description", :content => "#{content_for?(:description) ? yield(:description) : 'Mbonat Site'}"} | ||
= stylesheet_link_tag 'application', media: 'all' | ||
= javascript_include_tag 'application' | ||
= csrf_meta_tags | ||
%body | ||
%header | ||
= render 'layouts/navigation' | ||
%main{:role => "main"} | ||
= render 'layouts/messages' | ||
= yield | ||
-#!!! | ||
-#%html | ||
-# %head | ||
-# %meta{:name => "viewport", :content => "width=device-width, initial-scale=1.0"} | ||
-# %title= content_for?(:title) ? yield(:title) : 'Mbonat Site' | ||
-# %meta{:name => "description", :content => "#{content_for?(:description) ? yield(:description) : 'Mbonat Site'}"} | ||
-# = stylesheet_link_tag 'application', media: 'all' | ||
-# = javascript_include_tag 'application' | ||
-# = csrf_meta_tags | ||
-# %body | ||
-# %header | ||
-# = render 'layouts/navigation' | ||
-# %main{:role => "main"} | ||
-# = render 'layouts/messages' | ||
-# = yield |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters