Lower spacing on gist titles
This commit is contained in:
parent
bb973da8f3
commit
e1a4b51ede
2 changed files with 18 additions and 12 deletions
|
@ -1,10 +1,11 @@
|
|||
{{ $id := default (.Get 0) .Page.Params.gist }}
|
||||
{{ $data := getJSON "https://api.github.com/gists/" $id }}
|
||||
|
||||
<div class="gist">
|
||||
{{ range $i, $e := $data.files }}
|
||||
<h5>
|
||||
<h5 class="mb-0">
|
||||
<a href="{{ $data.html_url }}#file-{{ $i }}">
|
||||
<code class="font-weight-bold">{{ $i }}</code>
|
||||
<code class="font-weight-bold pl-2">{{ $i }}</code>
|
||||
</a>
|
||||
|
||||
<a href="{{ $e.raw_url }}">
|
||||
|
@ -13,3 +14,4 @@
|
|||
</h5>
|
||||
{{ highlight $e.content $e.language "linenos=inline" }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
|
|
@ -188,6 +188,10 @@ ul ul, ol ol {
|
|||
pre.chroma {
|
||||
margin: $spacer 0;
|
||||
padding: $spacer;
|
||||
|
||||
.highlight & {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
|
|
Loading…
Reference in a new issue