Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
elixir
jekyll-elixir-theme
Commits
ee310305
Commit
ee310305
authored
Jul 03, 2020
by
Jacek Lebioda
Browse files
feat: remove html from news on the index page
parent
88fcf53e
Changes
1
Hide whitespace changes
Inline
Side-by-side
_layouts/index.html
View file @
ee310305
...
...
@@ -77,7 +77,7 @@ layout: default
<span
class=
"post-date"
>
Published on: {{ post.date | date: '%B %d, %Y' }}
</span>
<div
class=
"content"
>
{{ post.content | truncate: 220 }}
<a
href=
"{{ post.url | relative_url }}"
>
(read more)
</a>
{{ post.content |
strip_html | normalize_whitespace |
truncate: 220 }}
<a
href=
"{{ post.url | relative_url }}"
>
(read more)
</a>
</div>
</div>
{% endfor %}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment