add logo to site

This commit is contained in:
lubuwest 2023-03-22 21:20:10 +01:00
parent 692abfdf35
commit 0e92186974
2 changed files with 15 additions and 4 deletions

View file

@ -16,6 +16,12 @@ Configuration in pelicanconf.py:
```
EMAIL='x@y.com'
SITEDESCRIPTION = 'Lorem ipsum dolor sit ..' # Additional text shown on the start page
SITELOGO = 'images/logo.png' # Logo for the site, height is 50px
DISPLAY_PAGES_ON_MENU = True # Markdown files in the 'pages' directory are shown as links in the header
SOCIAL = (('Diaspora', 'https://diasp.eu/...'),
('Friendica', 'https://friendica.eu/profile/...'),
('Forgejo', 'https://codeberg.org...'),
@ -71,9 +77,6 @@ DEFAULT_DATE = 'fs' # to retrieve the date from file savedate of file, if there
STATIC_PATHS = ['Screenshots'] # place of image files should be set
SITEDESCRIPTION = 'Lorem ipsum dolor sit ..' # Additional text shown on the start page
DISPLAY_PAGES_ON_MENU = True # Markdown files in the 'pages' directory are shown as links in the header
```
## Credits
@ -82,4 +85,4 @@ DISPLAY_PAGES_ON_MENU = True # Markdown files in the 'pages' directory are shown
## License
In line with Federation Widget (https://git.friendi.ca/lubuwest/Federation-widget) this template is under the [WTF Public License](http://sam.zoy.org/wtfpl/COPYING).
In line with Federation Widget (https://git.friendi.ca/lubuwest/Federation-widget) this template is under the [WTF Public License](http://sam.zoy.org/wtfpl/COPYING).

View file

@ -7,7 +7,12 @@
<meta property=og:site_name content="{{ SITENAME }}" />
<meta property=og:type content=article />
<meta property=og:url content="{{ SITEURL }}" />
{% if SITELOGO %}
<meta property=og:image content="{{ SITEURL }}/{{ SITELOGO }}">
{% else %}
<meta property=og:image content="{{ SITEURL }}/theme/images/pelican.png" />
{% endif %}
{% block extra_meta %}
{% endblock %}
@ -41,6 +46,9 @@
<body>
{{ FEED_ATOM }}
<div class="container"><header role="banner">
{% if SITELOGO %}
<img style="height: 4px; vertical-align: -10px; padding-right: 10px" src="{{ SITEURL }}/{{ SITELOGO }}">
{% endif %}
<div class="feeds">
{% if FEED_ALL_ATOM %}
<a href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" rel="alternate"><img src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/feed-32px.png" alt="atom feed"/></a>