diff --git a/_config.yml b/_config.yml index 59736b23..71e564f0 100644 --- a/_config.yml +++ b/_config.yml @@ -14,13 +14,13 @@ description : "Write an awesome description for your new site here. url : "http://localhost:4000" # the base hostname & protocol for your site baseurl : "/test" # the subpath of your site, e.g. /blog email : "your-email@domain.com" -logo : "images/default-thumb.png" +logo : "default-thumb.png" google_site_verification : twitter: username : site_twitter facebook: - app_id : 1234 - publisher : 1234 + app_id : + publisher : google_site_verification : bing_site_verification : alexa_site_verification : @@ -29,7 +29,7 @@ yandex_site_verification : # For specifying social profiles. # https://developers.google.com/structured-data/customize/social-profiles social: - type : # person or organization (defaults to person) + type : # Person or Organization (defaults to Person) name : # If the user or organization name differs from the site's name links: # An array of links to social media profiles - "https://twitter.com/site_twitter" diff --git a/_includes/seo.html b/_includes/seo.html index df7d7b5e..1f3c17b5 100644 --- a/_includes/seo.html +++ b/_includes/seo.html @@ -36,19 +36,16 @@ {% assign seo_author_twitter = seo_author %} {% endif %} {% endif %} - {% assign seo_author_twitter = seo_author_twitter | replace:"@", "" %} + {% assign seo_author_twitter = seo_author_twitter | replace: "@", "" %} {% endif %} - -{% if page.title %} - -{% endif %} + {% if seo_url %} - - + + {% endif %} {% if page.excerpt %} @@ -56,9 +53,9 @@ {% endif %} {% if site.twitter %} - - - + + + {% if page.image.feature %} @@ -70,17 +67,17 @@ {% endif %} {% if seo_author_twitter %} - + {% endif %} {% endif %} {% if site.facebook %} {% if site.facebook.publisher %} - + {% endif %} {% if site.facebook.app_id %} - + {% endif %} {% endif %} @@ -90,12 +87,12 @@ {% if page.date %} - + {% if page.next.url %} - + {% endif %} {% if page.previous.url %} - + {% endif %} {% endif %} @@ -115,7 +112,7 @@ { "@context" : "http://schema.org", "@type" : "{% if site.social.type %}{{ site.social.type }}{% else %}person{% endif %}", - "name" : "{% if site.social.name %}{{ site.social.name }}{% else %}{{ site.name }}{% endif %}", + "name" : "{{ site.social.name | default: site.name }}", "url" : {{ seo_url | jsonify }}, "sameAs" : {{ site.social.links | jsonify }} } diff --git a/_layouts/default.html b/_layouts/default.html index 724835e0..3e0f35ef 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -22,6 +22,7 @@ layout: compress "{{ page.image.feature }}" {% else %} "{{ page.image.feature | prepend: "/images/" | prepend: absurl }}" + "{{ page.image.feature | prepend: absurl }}" {% endif %} alt="{{ page.title }}"> {% if page.image.credit %}