add support for thumbnails

This commit is contained in:
りき萌 2024-02-08 11:34:09 +01:00
parent d7e42667fe
commit 4c24c0354c
6 changed files with 96 additions and 8 deletions

View file

@ -18,6 +18,10 @@
It just needs to be a string replacement.
--}}
<!-- treehouse-ca37057a-cff5-45b3-8415-3b02dbf6c799-per-branch-metadata -->
{{#if page.thumbnail}}
<meta property="og:image" content="{{ page.thumbnail.url }}">
<meta property="og:image:alt" content="{{ page.thumbnail.alt }}">
{{/if}}
<link rel="stylesheet" href="{{ config.site }}/static/css/main.css">
<link rel="stylesheet" href="{{ config.site }}/static/css/tree.css">