{%- capture fullUrl -%}{{ meta.url }}{{ page.url }}{%- endcapture -%} {%- capture pageTitle -%} {%- if schema == 'blog' -%} {{ title }} {% elsif title %} {{ title }} • {{ meta.siteName }} {% elsif book.title %} Books • {{ book.title }} • {{ meta.siteName }} {% elsif movie.title %} Movies • {{ movie.title }}{% if movie.rating %} ({{ movie.rating }}){% endif %} • {{ meta.siteName }} {% elsif movie.title %} Shows • {{ show.title }} • {{ meta.siteName }} {% else %} {{ meta.siteName }} {%- endif -%} {%- endcapture -%} {%- capture pageDescription -%} {%- if schema == 'blog' -%} {{ post_excerpt | markdown | strip_html }} {% elsif book.description %} {{ book.description }} {% elsif movie.description %} {% if movie.review %}{{ movie.review }}{% else %}{{ movie.description }}{% endif %} {% elsif show.description %} {% if show.review %}{{ show.review }}{% else %}{{ show.description }}{% endif %} {% elsif description %} {{ description }} {% else %} {{ meta.siteDescription }} {%- endif -%} {%- endcapture -%} {%- capture ogImage -%} {%- if schema == 'blog' -%} {{ meta.url }}/assets/img/ogi/{{ title | slugifyString }}-preview.png {%- elsif schema == 'music' -%} {{ music.recent.artists[0].image }} {%- elsif schema == 'watching' -%} {%- assign featuredMovie = movies.recentlyWatched | first -%} {{ featuredMovie.backdrop }} {%- elsif schema == 'books' -%} {%- assign featuredBook = books | bookStatus: 'started' | reverse | first -%} {{ featuredBook.image }} {%- elsif schema == 'book' -%} {{ book.image }} {%- elsif schema == 'movie' -%} {{ movie.backdrop }} {%- elsif schema == 'show' -%} {{ meta.url }}/media/shows/backdrops/backdrop-{{ show.tmdb_id }}.jpg {%- else -%} {{ meta.meta_data.opengraph_default }} {%- endif -%} {%- endcapture -%} {{ pageTitle }} {% if schema == 'blog' %} {% else %} {% endif %} {{ content }}