mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-27 04:03:48 +01:00
feat(article): GitLab Snippets Shortcode (#627)
This commit is contained in:
parent
7a38f3ad50
commit
3d09c23284
3 changed files with 21 additions and 1 deletions
|
@ -387,6 +387,18 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gitlab-embed-snippets {
|
||||||
|
margin: 0 !important;
|
||||||
|
|
||||||
|
.file-holder.snippet-file-content {
|
||||||
|
margin-block-end: 0 !important;
|
||||||
|
margin-block-start: 0 !important;
|
||||||
|
margin-left: calc((var(--card-padding)) * -1) !important;
|
||||||
|
margin-right: calc((var(--card-padding)) * -1) !important;
|
||||||
|
padding: 0 var(--card-padding) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// Negative margins
|
/// Negative margins
|
||||||
blockquote,
|
blockquote,
|
||||||
figure,
|
figure,
|
||||||
|
|
|
@ -23,7 +23,7 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme
|
||||||
|
|
||||||
## Twitter Simple Shortcode
|
## Twitter Simple Shortcode
|
||||||
|
|
||||||
{{< twitter_simple 1085870671291310081 >}}
|
{{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}}
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
@ -41,6 +41,10 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme
|
||||||
|
|
||||||
{{< gist spf13 7896402 >}}
|
{{< gist spf13 7896402 >}}
|
||||||
|
|
||||||
|
## Gitlab Snippets Shortcode
|
||||||
|
|
||||||
|
{{< gitlab 2349278 >}}
|
||||||
|
|
||||||
## Quote Shortcode
|
## Quote Shortcode
|
||||||
|
|
||||||
Stack adds a `quote` shortcode. For example:
|
Stack adds a `quote` shortcode. For example:
|
||||||
|
|
4
layouts/shortcodes/gitlab.html
Normal file
4
layouts/shortcodes/gitlab.html
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<script
|
||||||
|
type="application/javascript"
|
||||||
|
src="https://gitlab.com/-/snippets/{{ index .Params 0 }}.js"
|
||||||
|
></script>
|
Loading…
Reference in a new issue