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