mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-18 17:14:34 -04:00
Add 'align' option to figure shortcode (#256)
Usage: {{< figure align=center src="image.jpg" >}} Parameter values: - 'center': align image and captions to center of page - anything else neglected * Appends "#center" to the image's URL in order to utilize existing CSS rules for centering images.
This commit is contained in:
parent
45c4b48e53
commit
14ebcdecf3
2 changed files with 9 additions and 2 deletions
|
@ -242,6 +242,10 @@
|
|||
margin: auto
|
||||
}
|
||||
|
||||
.post-content figure.align-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.post-content figure > figcaption {
|
||||
color: var(--primary);
|
||||
font-size: 16px;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue