mirror of
https://github.com/naoufalzerai/zerai.xyz.git
synced 2025-12-24 22:43:58 +00:00
change theme again :D
This commit is contained in:
18
themes/notepadium/layouts/shortcodes/gravizo.html
Normal file
18
themes/notepadium/layouts/shortcodes/gravizo.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{{ $title := "Diagram" }}
|
||||
{{ if .IsNamedParams }}
|
||||
{{ with .Get "title" }}
|
||||
{{ $title = . }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ with .Get 0 }}
|
||||
{{ $title = . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<figure>
|
||||
<img
|
||||
src='https://g.gravizo.com/svg?{{ .Inner }}'
|
||||
alt='{{ $title }}'
|
||||
/>
|
||||
<figcaption>{{ $title }}</figcaption>
|
||||
</figure>
|
||||
Reference in New Issue
Block a user