Skip to content

Commit

Permalink
Yield page-specific meta desc if available.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshukraine committed Jun 6, 2017
1 parent 86308e7 commit 7c265f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/partials/_head_contents.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@
= tag "meta", content: "IE=edge", "http-equiv" => "X-UA-Compatible"
= tag "meta", content: "width=device-width, initial-scale=1.0", name: "viewport"
= tag "meta", name: "author", content: site_author
= tag "meta", name: "description", content: site_desc
= tag "meta", name: "robots", content: smart_robots(page_path, current_env)

- if content_for?(:meta_desc)
= yield_content :meta_desc
- else
= tag "meta", name: "description", content: site_desc

- if content_for?(:og_tags)
= yield_content :og_tags
- else
Expand Down

0 comments on commit 7c265f0

Please sign in to comment.