~xdavidwu/xdavidwu.link

ref: 30ec8e91676e9c9a429731d9e63518c2145d7257 xdavidwu.link/_includes/figure -rw-r--r-- 314 bytes
30ec8e91xdavidwu move comments and related into article>div 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
<figure class="{{ include.class }}">
  <img src="{{ include.image_path | relative_url }}"
       alt="{% if include.alt %}{{ include.alt }}{% endif %}">
  {% if include.caption %}
    <figcaption>
      {{ include.caption | markdownify | remove: "<p>" | remove: "</p>" }}
    </figcaption>
  {% endif %}
</figure>