-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add opengraph metadata for discourse links
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block extrahead %} | ||
{% set title = config.site_name %} | ||
{% if page and page.meta and page.meta.title %} | ||
{% set title = title ~ " - " ~ page.meta.title %} | ||
{% elif page and page.title and not page.is_homepage %} | ||
{% set title = title ~ " - " ~ page.title | striptags %} | ||
{% endif %} | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:title" content="{{ title }}" /> | ||
<meta property="og:description" content="{{ config.site_description }}" /> | ||
<meta property="og:url" content="{{ page.canonical_url }}" /> | ||
<meta property="og:image" content="<TODO>" /> | ||
<meta property="og:image:type" content="image/png" /> | ||
<meta property="og:image:width" content="1200" /> | ||
<meta property="og:image:height" content="630" /> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters