1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Fixed some HTML tags.

This commit is contained in:
Cotes Chung
2019-12-23 00:55:51 +08:00
parent 40e44158ae
commit 77a47c4b62
6 changed files with 6 additions and 6 deletions

View File

@@ -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 %}