Skip to content

Commit

Permalink
SheepYY039/issue253 (#254)
Browse files Browse the repository at this point in the history
* fix: Some timestamps cannot be parsed

* fix: update dateToZulu to use try catch

* Link to heading incorrectly renders as tag
Fixes #253
  • Loading branch information
jyyyeung authored May 3, 2024
1 parent 14681b5 commit 7385c40
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/site/_includes/layouts/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
2 changes: 1 addition & 1 deletion src/site/_includes/layouts/note.njk
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
2 changes: 1 addition & 1 deletion src/site/feed.njk
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 7385c40

Please sign in to comment.