feat(article): GitLab Snippets Shortcode (#627)

This commit is contained in:
rmdhnreza 2022-06-11 09:04:20 +00:00 committed by GitHub
parent 7a38f3ad50
commit 3d09c23284
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 1 deletions

View file

@ -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,

View file

@ -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:

View file

@ -0,0 +1,4 @@
<script
type="application/javascript"
src="https://gitlab.com/-/snippets/{{ index .Params 0 }}.js"
></script>