mirror of
https://github.com/TrezOne/congo-hindi-gujarati.git
synced 2026-06-15 04:52:55 -04:00
✨ Add gist shortcode
This commit is contained in:
+2
-1
@@ -8,7 +8,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
|
||||
### Added
|
||||
|
||||
- New icon for 'kofi' ([#976](https://github.com/jpanther/congo/pull/976))
|
||||
- New `gist` shortcode as the built-in Hugo version has been deprecated
|
||||
- New icon for `kofi` ([#976](https://github.com/jpanther/congo/pull/976))
|
||||
|
||||
### Changed
|
||||
|
||||
|
||||
@@ -155,6 +155,18 @@ Congo also supports automatic conversion of images included using standard Markd
|
||||
|
||||
{{< figure src="abstract.jpg" alt="Abstract purple artwork" caption="Photo by [Jr Korpa](https://unsplash.com/@jrkorpa) on [Unsplash](https://unsplash.com/)" >}}
|
||||
|
||||
## Gist
|
||||
|
||||
The `gist` shortcode can be used to embed a GitHub Gist. It requires two unnamed parameters: the username and ID of the Gist.
|
||||
|
||||
**Example:**
|
||||
|
||||
```md
|
||||
{{</* jpanther 26292111fe1eb8e31c60f6dbfef9df28 */>}}
|
||||
```
|
||||
|
||||
{{< gist jpanther 26292111fe1eb8e31c60f6dbfef9df28 >}}
|
||||
|
||||
## Icon
|
||||
|
||||
`icon` outputs an SVG icon and takes the icon name as its only parameter. The icon is scaled to match the current text size.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<script src="https://gist.github.com/{{ index .Params 0 }}/{{ index .Params 1 }}.js{{if len .Params | eq 3 }}?file={{ index .Params 2 }}{{end}}"></script>
|
||||
Reference in New Issue
Block a user