Rename site.logo to site.og_image

This commit is contained in:
Michael Rose 2016-04-06 15:50:10 -04:00
parent 6738fa4cbb
commit 2808bd322c
5 changed files with 10 additions and 12 deletions

View file

@ -14,7 +14,7 @@ description : &description "A flexible Jekyll theme for your blog o
url : # the base hostname & protocol for your site e.g. "//github.io.mmistakes"
baseurl : "/minimal-mistakes" # the subpath of your site, e.g. /blog
email : # e.g. "your-email@domain.com"
logo : "site-logo.png"
og_image : "site-logo.png" # Open Graph/Twitter default site image
teaser : "500x300.png"
breadcrumbs : # true, false (default)
twitter:

View file

@ -61,8 +61,8 @@
<meta name="twitter:image" content="{% if page.header.image contains "http" %}{{ page.header.image }}{% else %}{{ page.header.image | prepend: "/images/" | prepend: base_path }}{% endif %}">
{% else %}
<meta name="twitter:card" content="summary">
{% if site.logo %}
<meta name="twitter:image" content="{{ site.logo | prepend: "/images/" | prepend: base_path }}">
{% if site.og_image %}
<meta name="twitter:image" content="{{ site.og_image | prepend: "/images/" | prepend: base_path }}">
{% endif %}
{% endif %}
@ -96,13 +96,13 @@
{% endif %}
{% endif %}
{% if site.logo %}
{% if site.og_image %}
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Organization",
"url": {{ seo_url | jsonify }},
"logo": {{ site.logo | prepend: "/" | prepend: seo_url | jsonify }}
"logo": {{ site.og_image | prepend: "/" | prepend: seo_url | jsonify }}
}
</script>
{% endif %}

View file

@ -114,12 +114,6 @@ a {
&:active {
outline: 0;
}
&:hover {
img {
box-shadow: 0 0 10px rgba(#000, 0.25);
}
}
}
/* code */

View file

@ -78,6 +78,10 @@
&:hover {
text-decoration: underline;
img {
box-shadow: 0 0 10px rgba(#000, 0.25);
}
}
}

File diff suppressed because one or more lines are too long