Skip to content

Commit

Permalink
Fix og:image for slides
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Jun 24, 2024
1 parent ff92205 commit 59322c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _layouts/base_slides.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
{%- elsif page.tags contains "galaxy" %}{% assign coverimage = "/assets/images/GalaxyNews.png" %}
{%- elsif page.tags contains "gat" %}{% assign coverimage = "/assets/images/gat.png" %}
{%- else %}{% assign coverimage = "/assets/images/GTNLogo1000.png" %}{% endif %}
{% assign og_image = page.og_image | default: coverimage | default: topic.og_image | default: "/assets/images/GTNLogo1000.png" %}
<meta property="og:image" content="{{ og_image | prepend: site.baseurl }}">
{% assign og_image = page.og_image | default: page['cover-image'] | default: topic.og_image | default: coverimage | default: "assets/images/GTNLogo1000.png" %}
<meta property="og:image" content="{% if og_image contains 'https://' %}{{ og_image }}{% else %}{{ site.url }}{{ site.baseurl }}/{{ og_image }}{% endif %}">

<script type="application/ld+json">
{% include _includes/material.jsonld material=page topic=topic site=site %}
Expand Down

0 comments on commit 59322c2

Please sign in to comment.