Fixed some HTML tags.
This commit is contained in:
parent
40e44158ae
commit
77a47c4b62
6 changed files with 6 additions and 6 deletions
|
@ -21,7 +21,7 @@
|
|||
{% endfor %}
|
||||
|
||||
{% if lastmod_list.size > 0 %}
|
||||
<div id="access-lastmod" class="post mb-4"">
|
||||
<div id="access-lastmod" class="post mb-4">
|
||||
<h3 data-toc-skip>
|
||||
{{- site.data.label.panel.lastmod -}}
|
||||
</h3>
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
</span>
|
||||
<h3 class="pt-0 mt-2 mb-3" data-toc-skip>{{ post.title }}</h3>
|
||||
<div class="text-muted small">
|
||||
<p>{{ post.content | markdownify | strip_html | truncate: 200 }}</p>
|
||||
<p>{{ post.content | markdownify | strip_html | truncate: 200 | replace: '&', '&' }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
{% if avatar | slice: 0 == '/' %}
|
||||
{% assign avatar = avatar | prepend: site.baseurl %}
|
||||
{% endif %}
|
||||
<img src="{{ avatar }}"></img>
|
||||
<img src="{{ avatar }}">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ layout: page
|
|||
</h1>
|
||||
<div class="post-content">
|
||||
<p>
|
||||
{{ post.content | strip_html | truncate: 200 }}
|
||||
{{ post.content | strip_html | truncate: 200 | replace: '&', '&' }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ layout: default
|
|||
{% capture post_content %}
|
||||
<div class="post-content">
|
||||
{% if page.image %}
|
||||
<img src="{{ page.image }}" class="img-rounded">
|
||||
<img src="{{ page.image }}">
|
||||
{% endif %}
|
||||
{{ content }}
|
||||
</div>
|
||||
|
@ -56,7 +56,7 @@ layout: default
|
|||
|
||||
<!-- Add lozad class into image tags. see: <https://github.com/ApoorvSaxena/lozad.js#usage> -->
|
||||
{% if post_content contains '<img src=' %}
|
||||
{{ post_content | replace: '<img src=', '<img class="lozad" data-src=' }}
|
||||
{{ post_content | replace: '<img src=', '<img class="lozad" src="/assets/img/commons/loading.png" data-src=' }}
|
||||
{% else %}
|
||||
{{ post_content }}
|
||||
{% endif %}
|
||||
|
|
BIN
assets/img/commons/loading.png
Normal file
BIN
assets/img/commons/loading.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 99 B |
Loading…
Reference in a new issue