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

Improve image style (#204)

This commit is contained in:
Cotes Chung
2020-12-14 15:00:21 +08:00
parent cc24af11fc
commit dc88321ed5
3 changed files with 5 additions and 5 deletions

View File

@@ -51,10 +51,10 @@ layout: default
<div class="post-content">
{%- capture img_placehodler -%}
data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
{% endcapture%}
{%- endcapture -%}
{% if page.image %}
<img src="{{ img_placehodler }}" data-src="{{ page.image }}" class="post-preview-img">
<img src="{{ img_placehodler }}" data-src="{{ page.image }}" class="preview-img">
{% endif %}
<!-- Using lozad. See: <https://github.com/ApoorvSaxena/lozad.js#usage> -->