diff options
| author | gamerdonkey | 2020-06-25 22:06:25 -0500 |
|---|---|---|
| committer | gamerdonkey | 2020-06-25 22:06:25 -0500 |
| commit | cac5c144ffcdb64fab4e3af08169385ab099ad81 (patch) | |
| tree | 20965f1157a31da45fe3e38748d3749ade7b0543 | |
| parent | eba1c7a596e8f19ac729839a2474860d025955d0 (diff) | |
| download | gamerdonkey.com-blog-cac5c144ffcdb64fab4e3af08169385ab099ad81.tar.gz gamerdonkey.com-blog-cac5c144ffcdb64fab4e3af08169385ab099ad81.tar.bz2 gamerdonkey.com-blog-cac5c144ffcdb64fab4e3af08169385ab099ad81.zip | |
Setting up the theme to add a favicon and Open Graph tags for that sexy social media posting.
| -rw-r--r-- | content/images/favicon.ico | bin | 0 -> 2294 bytes | |||
| -rw-r--r-- | content/images/gamerdonkey_g_logo_og.png | bin | 0 -> 10128 bytes | |||
| -rw-r--r-- | themes/gamerdonkey-theme/templates/article.html | 10 | ||||
| -rw-r--r-- | themes/gamerdonkey-theme/templates/base.html | 1 |
4 files changed, 11 insertions, 0 deletions
diff --git a/content/images/favicon.ico b/content/images/favicon.ico Binary files differnew file mode 100644 index 0000000..a12ee94 --- /dev/null +++ b/content/images/favicon.ico diff --git a/content/images/gamerdonkey_g_logo_og.png b/content/images/gamerdonkey_g_logo_og.png Binary files differnew file mode 100644 index 0000000..0898310 --- /dev/null +++ b/content/images/gamerdonkey_g_logo_og.png diff --git a/themes/gamerdonkey-theme/templates/article.html b/themes/gamerdonkey-theme/templates/article.html new file mode 100644 index 0000000..d339132 --- /dev/null +++ b/themes/gamerdonkey-theme/templates/article.html @@ -0,0 +1,10 @@ +{% extends "!simple/article.html" %} + +{% block head %} +{{ super() }} + <meta property="og:type" content="article" /> + <meta property="og:url" content="{{ SITEURL }}/{{ article.url }}" /> + <meta property="og:title" content="{{ article.title }}" /> + <meta property="og:description" content="{{ article.summary | striptags }}" /> + <meta property="og:image" content="{{ SITEURL }}/images/{% if article.opengraph_image is defined %}{{ article.opengraph_image }}{% else %}gamerdonkey_g_logo_og.png{% endif %}" /> +{% endblock %} diff --git a/themes/gamerdonkey-theme/templates/base.html b/themes/gamerdonkey-theme/templates/base.html index ad0ae3a..98a24ec 100644 --- a/themes/gamerdonkey-theme/templates/base.html +++ b/themes/gamerdonkey-theme/templates/base.html @@ -3,4 +3,5 @@ {% block head %} {{ super() }} <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/style.css" /> + <link rel="shortcut icon" href="{{ SITEURL }}/images/favicon.ico?v=2" /> {% endblock %} |
