Skip to content

Commit

Permalink
add absolute urls for microformats
Browse files Browse the repository at this point in the history
  • Loading branch information
growdigital committed Aug 3, 2018
1 parent 0c59e9a commit 624c415
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Home"
description: "Hugo CMS socially aware starter kit with modular CSS workflow"
menu: "main"
date: 2018-02-09T19:21:11Z
image: "/assets/img/home.png"
image: "https://starter.indiego.org.uk/assets/img/home.png"
imageAlt: "Illustration showing Indiego house on planet Hugo, with Google Plus, Facebook and Twitter balloons coming out the front door"
draft: false
---
Expand Down
4 changes: 2 additions & 2 deletions content/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ title: "About"
description: "Indiego is a Hugo starter kit built by frontend developer Jake Rayson, using @GoHugoIO, @npmjs, @gulpjs and @netlify"
menu: "main"
date: 2018-02-09T19:21:11Z
image: ""
imageAlt: ""
image:
imageAlt:
draft: false
---

Expand Down
4 changes: 2 additions & 2 deletions themes/starter/layouts/partials/micro-schema.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
{{ if .Params.image }}
<meta itemprop="image" content="{{ .Params.image }}">
{{ else }}
<meta itemprop="image" content="/{{ .Site.Params.publisherLogo }}">
<meta itemprop="image" content="{{ .Site.BaseURL }}{{ .Site.Params.publisherLogo }}">
{{ end }}
<meta itemprop="author" content="{{ .Site.Author.name }}">
<div itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
<div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
<meta itemprop="url" content="/{{ .Site.Params.publisherLogo }}">
<meta itemprop="url" content="{{ .Site.BaseURL }}{{ .Site.Params.publisherLogo }}">
<meta itemprop="width" content="{{ .Site.Params.publisherLogoWidth }}">
<meta itemprop="height" content="{{ .Site.Params.publisherLogoHeight }}">
</div>
Expand Down
4 changes: 2 additions & 2 deletions themes/starter/layouts/partials/micro-twitog.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<!-- Aspect ratio 1:1, minimum dimension 144x144 -->
<!-- Defaulting to publisher logo -->
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="/{{ .Site.Params.publisherLogo }}">
<meta name="twitter:image" content="{{ .Site.BaseURL }}{{ .Site.Params.publisherLogo }}">
<meta name="twitter:image:alt" content="{{ .Site.Params.publisher }} logo">
{{ end }}
<!-- Open Graph data -->
Expand All @@ -39,7 +39,7 @@
<meta property="og:image:height" content="352">
{{ else }}
<!-- If no image, show logo. Make it square, 200px minimum -->
<meta property="og:image" content="/{{ .Site.Params.publisherLogo }}">
<meta property="og:image" content="{{ .Site.BaseURL }}{{ .Site.Params.publisherLogo }}">
<meta property="og:image:width" content="{{ .Site.Params.publisherLogoWidth }}">
<meta property="og:image:height" content="{{ .Site.Params.publisherLogoHeight }}">
{{ end }}

0 comments on commit 624c415

Please sign in to comment.