mirror of
https://github.com/SebastianStork/kita.git
synced 2026-01-21 13:21:35 +01:00
feat: add inline_svg shortcode
This commit is contained in:
parent
b869da36fb
commit
4bfc2728dc
23 changed files with 198 additions and 115 deletions
|
|
@ -168,3 +168,43 @@ It's from [Zola documentation](https://www.getzola.org/documentation/content/ima
|
|||
```
|
||||
|
||||
{{ gallery() }}
|
||||
|
||||
## Inline SVG
|
||||
|
||||
The `inline_svg()` shortcode is used to embed SVG images directly into a webpage, rather than including them via an `<img>` tag.
|
||||
|
||||
You can use the `inline_svg()` shortcodes like:
|
||||
|
||||
```markdown
|
||||
{%/* inline_svg() */%}
|
||||

|
||||
{%/* end */%}
|
||||
```
|
||||
|
||||
{% inline_svg() %}
|
||||

|
||||
{% end %}
|
||||
|
||||
If you don't want to display a caption below the image, you can set the Markdown image `alt` text to an empty string, `Inline SVG`, `inline-svg`, or `inline_svg`.
|
||||
|
||||
```markdown
|
||||
{%/* inline_svg() */%}
|
||||

|
||||
{%/* end */%}
|
||||
|
||||
{%/* inline_svg() */%}
|
||||

|
||||
{%/* end */%}
|
||||
|
||||
{%/* inline_svg() */%}
|
||||

|
||||
{%/* end */%}
|
||||
|
||||
{%/* inline_svg() */%}
|
||||

|
||||
{%/* end */%}
|
||||
```
|
||||
|
||||
{% inline_svg() %}
|
||||

|
||||
{% end %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue