monnierant / obsidian-simple-rss

GNU General Public License v3.0
27 stars 4 forks source link

Variables cannot be used twice #8

Closed malleVF closed 1 year ago

malleVF commented 1 year ago

For some reason variables doesn't work as expected. The value of {{item.title}} is displayed only once, the other times it shows only the variables' name. I created the following template (result see below) for the SANS RSS Feed (https://isc.sans.edu/rssfeed_full.xml):

---
link: {{feed.link}}
author: {{item.author}}
published: {{item.pubDate}}
tags: RSS, SANS, {{item.categories}}
---

# Highlights

Link: [{{item.title}}]({{item.link}})

{{feed.description}}

# {{item.title}}

{{item.description}}

---

## Comments

{{item.comments}}

---

{{feed.feedUrl}}
- URL of the feed

{{feed.title}}
- Title of the feed

{{feed.description}}
- Description of the feed

{{feed.link}}
- Link to the feed

{{item.title}}
- Title of the item

{{item.description}}
- Description of the item

{{item.author}}
- Author of the item

{{item.link}}
- Link to the item

{{item.guid}}
- Item unique identifier

{{item.comments}}
- Item comments

{{item.categories}}
- Item categories

{{item.pubDate}}
- Item publication date

Output:

---
link: https://isc.sans.edu
author: 
published: Thu, 03 Aug 2023 15:49:44 GMT
tags: RSS, SANS, 
---

# Highlights

Link: [From small LNK to large malicious BAT file with zero VT score, (Thu, Aug 3rd)](https://isc.sans.edu/diary/rss/30094)

SANS Internet Storm Center - Cooperative Cyber Security Monitor

# {{item.title}}

---

## Comments

---

https://isc.sans.edu/rssfeed_full.xml
- URL of the feed

SANS Internet Storm Center, InfoCON: green
- Title of the feed

{{feed.description}}
- Description of the feed

{{feed.link}}
- Link to the feed

{{item.title}}
- Title of the item

{{item.description}}
- Description of the item

{{item.author}}
- Author of the item

{{item.link}}
- Link to the item

https://isc.sans.edu/diary/rss/30094
- Item unique identifier

{{item.comments}}
- Item comments

{{item.categories}}
- Item categories

{{item.pubDate}}
- Item publication date
monnierant commented 1 year ago

ho it's a case i have not tested. my bad. i will try to do a quick fix in few days / weeks when i will get back from hollidays.

monnierant commented 1 year ago

On my test, the issue is solve. Please let me know if you still enconter the issue after updating to 0.1.6 by reopening this issue