diff options
| author | gamerdonkey | 2020-07-17 23:56:49 -0500 |
|---|---|---|
| committer | gamerdonkey | 2020-07-17 23:56:49 -0500 |
| commit | cf48c64db6d69e348f35ea8043ad33292cbedb4e (patch) | |
| tree | 5d70bb06e2e75101a3065ea014b5224d11602da8 | |
| parent | 93024e0f62ea21886286d5482ba5a5cb7432f517 (diff) | |
| download | gamerdonkey.com-blog-cf48c64db6d69e348f35ea8043ad33292cbedb4e.tar.gz gamerdonkey.com-blog-cf48c64db6d69e348f35ea8043ad33292cbedb4e.tar.bz2 gamerdonkey.com-blog-cf48c64db6d69e348f35ea8043ad33292cbedb4e.zip | |
Giving the theme a slightly better look, and fixing the way the opengraph image works on posts.
| -rw-r--r-- | pelicanconf.py | 2 | ||||
| -rw-r--r-- | themes/gamerdonkey-theme/static/css/style.css | 7 | ||||
| -rw-r--r-- | themes/gamerdonkey-theme/templates/article.html | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/pelicanconf.py b/pelicanconf.py index 37f3c85..126dc54 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -50,7 +50,7 @@ DEFAULT_METADATA = { } # Static Files -STATIC_PATHS = ['static'] +STATIC_PATHS = ['static', 'images'] EXTRA_PATH_METADATA = { 'static/favicon.ico': {'path': 'favicon.ico'}, diff --git a/themes/gamerdonkey-theme/static/css/style.css b/themes/gamerdonkey-theme/static/css/style.css index 671df42..bb5fb78 100644 --- a/themes/gamerdonkey-theme/static/css/style.css +++ b/themes/gamerdonkey-theme/static/css/style.css @@ -10,7 +10,6 @@ body { a { color: white; - font-weight: bold; } ul { @@ -24,6 +23,7 @@ header#banner { nav#menu { width: 100%; text-align: center; + font-weight: bold; } nav#menu ul { @@ -42,6 +42,11 @@ nav#menu ul li:last-child::after { content: ''; } +img { + max-width: 100%; + height: auto; +} + footer#contentinfo { font-size: 0.7em; text-align: center; diff --git a/themes/gamerdonkey-theme/templates/article.html b/themes/gamerdonkey-theme/templates/article.html index d339132..624a048 100644 --- a/themes/gamerdonkey-theme/templates/article.html +++ b/themes/gamerdonkey-theme/templates/article.html @@ -6,5 +6,5 @@ <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 %}" /> + <meta property="og:image" content="{% if article.opengraph_image is defined %}{{ SITEURL }}/{{ article.url }}{{ article.opengraph_image }}{% else %}{{ SITEURL }}/images/gamerdonkey_g_logo_og.png{% endif %}" /> {% endblock %} |
