mirror of https://github.com/lxndrblz/anatole.git

LucasVadilho
15.49.2020 725f02b285daea9c6cc01e70266434de16c7b355
refs
author LucasVadilho <lucas.vadilho@gmail.com>
Tuesday, September 15, 2020 17:49 +0200
committer LucasVadilho <lucas.vadilho@gmail.com>
Tuesday, September 15, 2020 17:49 +0200
commit725f02b285daea9c6cc01e70266434de16c7b355
tree 97cb506cd5baadd1c7d512c600aab399e882607b tree | zip | gz
parent d7e4796722a26582ca28c59f4fc58f2c355548d3 view | diff
Add support for thumbnail in the post preview

The thumbnail is inserted in the font matter via the param `thumbnail` which should contain the image source.

The style of the thumbnail is controlled by two css variables:

- `thumbnail-size`: default is 150px
- `thumbnail-position`: default is `1` which places it to the right, can be set to `-1` to place it to the left

Also updates some of the content post to show the effect.
2 files modified
74 ■■■■ changed files
assets/css/style.css 29 ●●●●● diff | view | raw | blame | history
layouts/index.html 45 ●●●●● diff | view | raw | blame | history