chore: chart tagging
This commit is contained in:
parent
ae2ed3f737
commit
d9da197819
2 changed files with 2 additions and 1 deletions
|
@ -55,6 +55,7 @@ export default {
|
|||
},
|
||||
tagLookup: (url, tagMap) => {
|
||||
if (!url) return
|
||||
if (url.includes('#artists')) return `#Music`
|
||||
if (url.includes('openlibrary.org')) return `#Books #NowReading ${tagMap[url]}`.trim()
|
||||
if (url.includes('trakt.tv')) return `#Movies #Watching ${tagMap[url]}`.trim()
|
||||
return tagMap[url] || ''
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"id": "{{ entry.url | btoa }}",
|
||||
"title": "{{ entry.title | replaceQuotes }}",
|
||||
"url": "{{ entry.url }}",
|
||||
"content_text": "{{ entry.title | replaceQuotes }}{% if tagMap %} {{ entry.url | tagLookup: tagMap }}{% endif %} {{ entry.url }}",
|
||||
"content_text": "{{ entry.title | replaceQuotes }}{% if entry.url | tagLookup: tagMap %} {{ entry.url | tagLookup: tagMap }} {{ entry.url }}{% else %} {{ entry.url }}{% endif %}",
|
||||
"date_published": "{{ entry.date | stringToRFC822Date }}"
|
||||
}{% if not forloop.last %},{% endif %}
|
||||
{%- endfor %}
|
||||
|
|
Reference in a new issue