Skip to content

Commit 1ddc0c1

Browse files
authored
Merge pull request #211 from npatta01/feature_image_social_share
Generate Image Metadata Tag
2 parents cdbaba6 + 14b9cb6 commit 1ddc0c1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: _layouts/single.html

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
{% if page.excerpt %}<meta itemprop="description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
2323
{% if page.date %}<meta itemprop="datePublished" content="{{ page.date | date_to_xmlschema }}">{% endif %}
2424
{% if page.last_modified_at %}<meta itemprop="dateModified" content="{{ page.last_modified_at | date_to_xmlschema }}">{% endif %}
25+
{% if page.featured-image %}<meta property="og:image" content="{{ page.featured-image | absolute_url }}">{% endif %}
2526

2627
<div class="page__inner-wrap">
2728
{% unless page.header.overlay_color or page.header.overlay_image %}

Diff for: _posts/2024-07-24-adam-li-interview.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ categories:
55
- Team
66
tags:
77
- Open Source
8-
featured-image: adam-li-interview.png
8+
featured-image: /assets/images/posts_images/adam-li-interview.png
99

1010
postauthors:
1111
- name: Reshama Shaikh
@@ -17,7 +17,7 @@ postauthors:
1717
---
1818

1919
<div>
20-
<img src="/assets/images/posts_images/{{ page.featured-image }}" alt="">
20+
<img src="{{ page.featured-image }}" alt="">
2121
{% include postauthor.html %}
2222
</div>
2323

0 commit comments

Comments
 (0)