~xdavidwu/xdavidwu.link

ref: 11358a12c763501d74f61e7e798cfbeceb3d7c35 xdavidwu.link/_includes/figure -rw-r--r-- 314 bytes
f68b54e5 — iBug ♦ 5 years ago
Use relative_url and absolute_url where possible (#2387)

* Use relative_url and absolute_url where possible

Drops the `contains "://"` check, adopt Jekyll 3.7
Ref: https://github.com/mmistakes/minimal-mistakes/pull/2385#issuecomment-579882236

* One more unneeded {% assign %}

* Remove one more assign as noted by mmistakes

* Consolidate 4 more captures

* Consolidate an extra assign on "active" class
556ec341 — Luis Puerto 6 years ago
Fix figures when they are inside of a list (#2094)

8481dd43 — Michael Rose 7 years ago
Replace `absolute_url` with `relative_url`

Where it makes sense replace asset paths and navigation related paths with `relative_url` filter.

Leave SEO related `<head>` elements and social sharing links as `absolute_url`.

Fixes #1588
f031e813 — Michael Rose 8 years ago
Merge branch 'feature/image-helper' into develop
9f3bff3c — Michael Rose 8 years ago
Rename image helper to figure
d79d8065 — Michael Rose 8 years ago
Merge branch 'master' of https://github.com/fa-ribeiro/minimal-mistakes into feature/image-helper
a5699c4c — Fernando Ribeiro 8 years ago
Do not assume images would be placed in `/assets/images/`

In order to add an image to a post, just use the following syntax:

{% include image image_path="/full/path/to/MyPostImage.png" caption="The optional image caption" %}

or

{% include image image_path="https://example.com/images/MyPostImage.png" caption="The optional image caption" alt="The optional alt text" %}
e0cd65e1 — Fernando Ribeiro 8 years ago
Replace base_path with `absolute_url` filter
be7999e2 — Fernando Ribeiro 8 years ago
Update image
923ebf7d — Fernando Ribeiro 8 years ago
add image helper for easier image insertion in posts