Skip to content

Commit 4e27e3d

Browse files
author
Florian Paul Azim Hoberg
committed
feature(blog): Add site logo support for XML
1 parent 2eb4339 commit 4e27e3d

File tree

6 files changed

+12
-2
lines changed

6 files changed

+12
-2
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
added:
2+
- Add logo (site_image) support for RSS feed (#6)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ The configuration file (default `blog.conf`) provides the following configuratio
6161
| author | admin | A default name for the author of blog posts |
6262
| copyright | manpageblog | name of a copyright holder |
6363
| preview_words | 150 (default) | How many words should be displayed within the blog index page |
64+
| site_logo | https://cdn.gyptazy.ch/images/manpageblog.jpg | URL to a default site logo (e.g. used for RSS) |
6465

6566
<!-- TOC ignore:true -->
6667
#### [social]

_templates/feed.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
<channel>
55
<title>{{ title }}</title>
66
<link>{{ site_url }}/</link>
7-
<description>Grow with Technology</description>
7+
<description>{{ description }}</description>
8+
<image>
9+
<url>{{ site_logo }}</url>
10+
<title>{{ title }}</title>
11+
<link>{{ site_url }}</link>
12+
</image>
813

914
{{ content }}
1015

blog.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ subtitle: manpageblog - a small and lightweight blog engine.
55
author: admin
66
copyright: manpageblog
77
preview_words: 150
8+
site_logo: https://cdn.gyptazy.ch/images/manpageblog.jpg
89

910
[social]
1011
mastodon: https://mastodon.bsd.cafe/@manpageblog

content/blog/2023-11-11-manpageblog-release-1.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- title: manpageblog released in version 1.0 -->
22
<!-- meta_description: Initial release of manpageblog 1.0. A simple and static blog generator in manpage design written in Python. -->
3-
<!-- image_url: https://gyptazy.ch/wp-content/webpc-passthru.php?src=https://gyptazy.ch/wp-content/uploads/2023/11/ansible-semaphore-gyptazy.jpg&nocache=1 -->
3+
<!-- image_url: https://cdn.gyptazy.ch/images/manpageblog.jpg -->
44

55
<a href="https://github.com/gyptazy/manpageblog">manpageblog</a> finally got its first release. With version
66
1.0 a public release is now present. A small, lightweight blog engine written in Python and offers several advantages

manpageblog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ def main():
249249
'subtitle': config['general']['subtitle'],
250250
'author': config['general'].get('author', 'unknown'),
251251
'copyright': config['general'].get('copyright', 'manpageblog'),
252+
'site_logo': config['general'].get('site_logo', ''),
252253
'profile_mastodon': config['social'].get('mastodon', 'unknown'),
253254
'profile_twitter': config['social'].get('twitter', 'unknown'),
254255
'image_width': config['opengraph'].get('image_width', '800'),

0 commit comments

Comments
 (0)