Rename site.logo to site.og_image
This commit is contained in:
parent
6738fa4cbb
commit
2808bd322c
5 changed files with 10 additions and 12 deletions
|
@ -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"
|
url : # the base hostname & protocol for your site e.g. "//github.io.mmistakes"
|
||||||
baseurl : "/minimal-mistakes" # the subpath of your site, e.g. /blog
|
baseurl : "/minimal-mistakes" # the subpath of your site, e.g. /blog
|
||||||
email : # e.g. "your-email@domain.com"
|
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"
|
teaser : "500x300.png"
|
||||||
breadcrumbs : # true, false (default)
|
breadcrumbs : # true, false (default)
|
||||||
twitter:
|
twitter:
|
||||||
|
|
|
@ -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 %}">
|
<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 %}
|
{% else %}
|
||||||
<meta name="twitter:card" content="summary">
|
<meta name="twitter:card" content="summary">
|
||||||
{% if site.logo %}
|
{% if site.og_image %}
|
||||||
<meta name="twitter:image" content="{{ site.logo | prepend: "/images/" | prepend: base_path }}">
|
<meta name="twitter:image" content="{{ site.og_image | prepend: "/images/" | prepend: base_path }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -96,13 +96,13 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if site.logo %}
|
{% if site.og_image %}
|
||||||
<script type="application/ld+json">
|
<script type="application/ld+json">
|
||||||
{
|
{
|
||||||
"@context": "http://schema.org",
|
"@context": "http://schema.org",
|
||||||
"@type": "Organization",
|
"@type": "Organization",
|
||||||
"url": {{ seo_url | jsonify }},
|
"url": {{ seo_url | jsonify }},
|
||||||
"logo": {{ site.logo | prepend: "/" | prepend: seo_url | jsonify }}
|
"logo": {{ site.og_image | prepend: "/" | prepend: seo_url | jsonify }}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -114,12 +114,6 @@ a {
|
||||||
&:active {
|
&:active {
|
||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
|
||||||
img {
|
|
||||||
box-shadow: 0 0 10px rgba(#000, 0.25);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* code */
|
/* code */
|
||||||
|
|
|
@ -78,6 +78,10 @@
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
|
|
||||||
|
img {
|
||||||
|
box-shadow: 0 0 10px rgba(#000, 0.25);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue