Skip to content

Commit a0d869b

Browse files
committed
Add a front matter option for meta images
Use relative path without leading slash Open Graph does not support SVGs, use PNGs Change-Id: I9e7f7e4f745132b7648ec01530436c533d0556a4
1 parent 39dbf0b commit a0d869b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ google_analytics: UA-89627920-1
4040

4141
# Your website URL (e.g. http://barryclark.github.io or http://www.barryclark.co)
4242
# Used for Sitemap.xml and your RSS feed
43-
url:
43+
url: https://lineageos.org
4444

4545
# If you're hosting your site at a Project repository on GitHub pages
4646
# (http://yourusername.github.io/repository-name)

_includes/meta.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,8 @@
1515
{% if page.title %}
1616
<meta property="og:title" content="{{ page.title }}" />
1717
<meta property="twitter:title" content="{{ page.title }}" />
18-
{% endif %}
18+
{% endif %}
19+
20+
{% if page.image %}
21+
<meta property="og:image" content="{{ site.baseurl }}/{{ page.image }}" />
22+
{% endif %}

0 commit comments

Comments
 (0)