Fix social thumbnail path

This commit is contained in:
maeligg 2022-01-13 15:44:24 +01:00
parent 46f9092189
commit 9ad187a931
2 changed files with 4 additions and 3 deletions

View file

@ -7,5 +7,6 @@
"searchLabel": "Find recipes by name, tag or ingredients",
"searchContainsLabel": "Contains",
"servingsLabel": "servings",
"ingredientsLabel": "Ingredients"
"ingredientsLabel": "Ingredients",
"baseURL": "https://myonlinecookbook.netlify.app"
}

View file

@ -8,8 +8,8 @@
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 105 55%22><text y=%22.9em%22 font-size=%2275%22>🍽️</text></svg>">
{% if image %}
<meta property="og:image" content="{{ image }}" />
<meta name="twitter:image" content="{{ image }}" />
<meta property="og:image" content="{{ site.baseURL }}{{ image }}" />
<meta name="twitter:image" content="{{ site.baseURL }}{{ image }}" />
<meta property="og:image:alt" content="Page image for {{ title }}" />
<meta name="twitter:image:alt" content="Page image for {{ title }}" />
{% endif %}