mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-10-24 14:12:33 +02: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:
@@ -242,6 +242,10 @@
|
||||
margin: auto
|
||||
}
|
||||
|
||||
.post-content figure.align-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.post-content figure > figcaption {
|
||||
color: var(--primary);
|
||||
font-size: 16px;
|
||||
|
||||
Reference in New Issue
Block a user