SheepYY039/issue253 (#254)

* fix: Some timestamps cannot be parsed

* fix: update dateToZulu to use try catch

* Link to heading incorrectly renders as tag
Fixes #253
This commit is contained in:
Jasmine Y 2024-05-04 02:05:30 +08:00 committed by GitHub
parent 14681b5d5b
commit 7385c408ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@
{% for imp in dynamics.index.beforeContent %}
{% include imp %}
{% endfor %}
{{ content | hideDataview | link | taggify | safe}}
{{ content | hideDataview | taggify | link | safe}}
{% for imp in dynamics.common.afterContent %}
{% include imp %}
{% endfor %}

View File

@ -67,7 +67,7 @@ permalink: "notes/{{ page.fileSlug | slugify }}/"
{% for imp in dynamics.notes.beforeContent %}
{% include imp %}
{% endfor %}
{{ content | hideDataview | link | taggify | safe}}
{{ content | hideDataview | taggify | link | safe}}
{% for imp in dynamics.common.afterContent %}
{% include imp %}
{% endfor %}

View File

@ -21,7 +21,7 @@
<updated>{%if note.data.updated %}{{ note.data.updated | dateToZulu }}{%else%}{{ note.date | dateToRfc3339 }}{%endif%}</updated>
<id>{{ meta.siteBaseUrl }}{{note.url | url }}</id>
<content type="html">
{{ note.templateContent | hideDataview | link | taggify | htmlToAbsoluteUrls(meta.siteBaseUrl) }}
{{ note.templateContent | hideDataview | taggify | link | htmlToAbsoluteUrls(meta.siteBaseUrl) }}
</content>
<link href="{{ meta.siteBaseUrl }}{{note.url | url }}" ////>
</entry>