Skip to content

Commit

Permalink
More embed stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
rvtr committed Nov 2, 2024
1 parent 3fd1fed commit fbc8a9f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
16 changes: 9 additions & 7 deletions _layouts/dsiware.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@
<meta property="og:title" content="{{ page.title }}">
{% if page.preview == null -%}
<meta property="og:image" content="{{ site.imgdir }}{{ ENTRY.PROGRAM }}/{{ ENTRY.PROGRAM }}.gif">
<meta property="twitter:image" content="{{ site.imgdir }}{{ ENTRY.PROGRAM }}/{{ ENTRY.PROGRAM }}.gif">
<!-- No "twitter" preview if just app icon -->
{%- else -%}
<meta property="og:image" content="{{ site.imgdir }}{{ ENTRY.PROGRAM }}{{ page.preview }}">
<meta property="twitter:image" content="{{ site.imgdir }}{{ ENTRY.PROGRAM }}{{ page.preview }}">
<meta property="og:image" content="{{ site.imgdir }}{{ page.preview }}">
<meta property="twitter:image" content="{{ site.imgdir }}{{ page.preview }}">
{%- endif %}
<meta name="description" content="{{ page.excerpt }}">
<meta property="og:description" content="{{ page.excerpt }}">
<meta name="description" content="{{ page.description }}">
<meta property="og:description" content="{{ page.description }}">
<meta property="twitter:description" content="{{ page.description }}">
<meta property="twitter:title" content="{{ page.title }}">
<meta name="keywords" content="dsi, ds, nintendo, dev" />
{%- else -%}
{%- for ENTRY in site.data.dsinfo -%}
Expand All @@ -29,15 +31,15 @@
<meta property="og:title" content="{{ ENTRY.TITLE }}">
{% if page.preview == null -%}
<meta property="og:image" content="{{ site.imgdir }}{{ ENTRY.PROGRAM }}/{{ ENTRY.PROGRAM }}.gif">
<meta property="twitter:image" content="{{ site.imgdir }}{{ ENTRY.PROGRAM }}/{{ ENTRY.PROGRAM }}.gif">
<!-- No "twitter" preview if just app icon -->
{%- else -%}
<meta property="og:image" content="{{ site.imgdir }}{{ ENTRY.PROGRAM }}{{ page.preview }}">
<meta property="twitter:image" content="{{ site.imgdir }}{{ ENTRY.PROGRAM }}{{ page.preview }}">
{%- endif %}
<meta name="description" content="{{ ENTRY.DESC }} for {{ ENTRY.SYSTEM }}">
<meta property="og:description" content="{{ ENTRY.DESC }} for {{ ENTRY.SYSTEM }}">
<meta property="twitter:description" content="{{ ENTRY.DESC }} for {{ ENTRY.SYSTEM }}">
<meta property="twitter:title" content="{{ page.excerpt }}">
<meta property="twitter:title" content="{{ ENTRY.TITLE }}">
<meta name="keywords" content="dsi, ds, nintendo, dev, {{ page.app }}" />
{%- endif -%}
{%- endif -%}
Expand Down
4 changes: 2 additions & 2 deletions _layouts/release.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
<meta property="og:url" content="{{ site.url }}{{ page.url }}">
<meta property="og:site_name" content="Random Meaningless Characters (rmc)">
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:title" content="Random Meaningless Characters (rmc)">
<meta property="twitter:title" content="{{ page.title }}">
<meta property="twitter:description" content="DS(i) development software documentation and preservation.">
{% if page.app == null -%}
<title>{{ page.title }} | rmc</title>
<meta property="og:title" content="{{ page.title }}">
{% if page.preview == null -%}
<meta property="og:image" content="{{ site.url }}/icon.png">
<meta property="twitter:image" content="{{ site.url }}/icon.png">
<!-- No "twitter" preview if just app icon -->
{%- else -%}
<meta property="og:image" content="{{ site.releasedir }}{{ page.releaseslug }}{{ page.preview }}">
<meta property="twitter:image" content="{{ site.releasedir }}{{ page.releaseslug }}{{ page.preview }}">
Expand Down

0 comments on commit fbc8a9f

Please sign in to comment.