Skip to content

Commit 6c7316a

Browse files
committed
Add camera information
1 parent 35b716a commit 6c7316a

3 files changed

Lines changed: 27 additions & 1 deletion

File tree

_layouts/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
<div class="banner">
108108
<div class="banner-text">
109109
<h1><strong>{{ page.title }}</strong></h1>
110-
<p><span class="date"><time datetime="{{ page.date | date_to_xmlschema }}"><strong>{{ page.date | date_to_string }}</strong></time><strong>{% if page.place %} | {{ page.place }} {% endif %}</strong></span></p>
110+
<p><span class="date"><time datetime="{{ page.date | date_to_xmlschema }}"><strong>{{ page.date | date_to_string }}</strong></time><strong>{% if page.place %} | {{ page.place }} {% endif %}{% if page.camera %} | {{ page.camera }} {% endif %}</strong></span></p>
111111
</div>
112112
</div>
113113

_posts/2025-04-14-Hello-World.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ layout: post
33
date: 14 Apr 2025
44
title: Hello World
55
place: Somewhere
6+
camera: Your camera
67
excerpt: This is a demo post showing the image description features
78
card-image: 5
89
banner-image: 5

feed.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
layout: null
3+
---
4+
<?xml version="1.0" encoding="UTF-8"?>
5+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
6+
<channel>
7+
<title>{{ site.title }}</title>
8+
<description>{{ site.description }}</description>
9+
<link>{{ site.github.url }}</link>
10+
<atom:link href="{{ site.github.url }}/feed.xml" rel="self" type="application/rss+xml" />
11+
{% for post in site.posts %}
12+
<item>
13+
<title>{{ post.title }}</title>
14+
<description>
15+
{% if post.camera %}Camera: {{ post.camera }} | {% endif %}
16+
{% if post.place %}Location: {{ post.place }} | {% endif %}
17+
{{ post.excerpt | strip_html | strip_newlines | truncate: 200 }}
18+
</description>
19+
<pubDate>{{ post.date | date_to_xmlschema }}</pubDate>
20+
<link>{{ site.github.url }}{{ post.url }}</link>
21+
<guid isPermaLink="true">{{ site.github.url }}{{ post.url }}</guid>
22+
</item>
23+
{% endfor %}
24+
</channel>
25+
</rss>

0 commit comments

Comments
 (0)