feat: recently watched pages

This commit is contained in:
Cory Dransfeldt 2024-05-20 13:17:54 -07:00
parent 53a5fbd906
commit 9fdb0db1fb
No known key found for this signature in database
12 changed files with 98 additions and 64 deletions

View file

@ -9,19 +9,19 @@
{% endif %}
{%- endcapture -%}
{%- capture ogImage -%}
{% if schema == 'blog' %}
{%- if schema == 'blog' -%}
{{ meta.url }}/assets/img/ogi/{{ title | slugifyString }}-preview.png
{% elsif schema == 'music' %}
{%- elsif schema == 'music' -%}
{{ music.recent.artists[0].image }}
{% elsif schema == 'watching' %}
{%- elsif schema == 'watching' -%}
{%- assign featuredMovie = movies.recentlyWatched | first -%}
{{ featuredMovie.backdrop }}
{% elsif schema == 'books' %}
{%- elsif schema == 'books' -%}
{%- assign featuredBook = books | bookStatus: 'started' | reverse | first -%}
{{ featuredBook.image }}
{% else %}
{%- else -%}
{{ meta.meta_data.opengraph_default }}
{% endif %}
{%- endif -%}
{%- endcapture -%}
<!doctype html>
<html lang="en">