add logo to site
This commit is contained in:
parent
692abfdf35
commit
0e92186974
|
@ -16,6 +16,12 @@ Configuration in pelicanconf.py:
|
||||||
```
|
```
|
||||||
EMAIL='x@y.com'
|
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/...'),
|
SOCIAL = (('Diaspora', 'https://diasp.eu/...'),
|
||||||
('Friendica', 'https://friendica.eu/profile/...'),
|
('Friendica', 'https://friendica.eu/profile/...'),
|
||||||
('Forgejo', 'https://codeberg.org...'),
|
('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
|
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
|
## Credits
|
||||||
|
|
|
@ -7,7 +7,12 @@
|
||||||
<meta property=og:site_name content="{{ SITENAME }}" />
|
<meta property=og:site_name content="{{ SITENAME }}" />
|
||||||
<meta property=og:type content=article />
|
<meta property=og:type content=article />
|
||||||
<meta property=og:url content="{{ SITEURL }}" />
|
<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" />
|
<meta property=og:image content="{{ SITEURL }}/theme/images/pelican.png" />
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% block extra_meta %}
|
{% block extra_meta %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
@ -41,6 +46,9 @@
|
||||||
<body>
|
<body>
|
||||||
{{ FEED_ATOM }}
|
{{ FEED_ATOM }}
|
||||||
<div class="container"><header role="banner">
|
<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">
|
<div class="feeds">
|
||||||
{% if FEED_ALL_ATOM %}
|
{% 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>
|
<a href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" rel="alternate"><img src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/feed-32px.png" alt="atom feed"/></a>
|
||||||
|
|
Loading…
Reference in a new issue