Skip to content

Commit

Permalink
updated to add support for markdowns
Browse files Browse the repository at this point in the history
  • Loading branch information
Queen-codes committed Dec 6, 2024
1 parent 75dbf10 commit a1b7277
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/blog-post.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ type = markdown

[fields.excerpt]
label = Excerpt
type = text
type = markdown
width = 1/2
2 changes: 1 addition & 1 deletion themes/vocabulary_theme/templates/macros/posts.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h4 class="b-header"><a class="blog-title" href="{{ post|url }}">{{ post.title }
{{ render_authors_byline(post) }}
<div class="excerpt">
{% if post.excerpt %}
{{ post.excerpt | string | striptags() }}
{{ post.excerpt }}
{% else %}
{{ post.body | excerpt | string | striptags() | truncate(100) }}
{% endif %}
Expand Down

0 comments on commit a1b7277

Please sign in to comment.