Skip to content

Commit

Permalink
build: fix social image using new filter
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskrycho committed Jan 8, 2025
1 parent d06ec84 commit c9fe5b2
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions site/_includes/components/social.njk
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,9 @@

{%- set image -%}
{%- if page.data.image -%}
{%- if page.data.image.cdn -%}
https://cdn.chriskrycho.com/images/{{page.data.image.cdn}}
{%- elif page.data.image.url -%}
{{page.data.image.url}}
{%- else -%}
{{page.data.image}}
{%- endif -%}
{{page.data.image | resolvedImage}}
{%- elif page.data.book.cover -%}
{{page.data.book.cover}}
{{page.data.book.cover | resolvedImage}}
{%- elif pageTitle -%}
{%- set fullTitle = pageTitle + " – Sympolymathesy, by Chris Krycho" -%}
https://cdn.statically.io/og/theme=dark/{{fullTitle | striptags(true) | urlencode}}.png
Expand Down

0 comments on commit c9fe5b2

Please sign in to comment.