Tweak site header formatting
This commit is contained in:
parent
214d2deb12
commit
855a896c19
|
@ -114,12 +114,14 @@ h6, .content h6
|
|||
.site-title
|
||||
@extend h1
|
||||
|
||||
font-style: italic
|
||||
padding-left: 0
|
||||
|
||||
&:before
|
||||
content: none
|
||||
|
||||
.site-description
|
||||
background-color: $white-ter
|
||||
|
||||
.toc
|
||||
@extend .panel
|
||||
@extend .is-size-7
|
||||
|
|
|
@ -1,18 +1,16 @@
|
|||
{{ define "main" }}
|
||||
<section class="hero">
|
||||
<div class="hero-body">
|
||||
<div class="container">
|
||||
<div class="columns">
|
||||
<div class="column is-8 is-offset-2">
|
||||
{{ with .Site.Params.Description }}{{.}}{{ end }}
|
||||
{{ with .Site.Params.Topics }}
|
||||
{{ $last := sub (len .) 1 }}
|
||||
{{ range $i, $x := . }}
|
||||
<a href="/tags/{{ $x | urlize }}/">{{ $x }}</a>
|
||||
{{ if lt $i $last }}<span class="ampersand">&</span>{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
<section class="hero px-3 site-description">
|
||||
<div class="hero-body container">
|
||||
<div class="columns is-centered">
|
||||
<div class="column is-three-fifths">
|
||||
{{ with .Site.Params.Description }}{{.}}{{ end }}
|
||||
{{ with .Site.Params.Topics }}
|
||||
{{ $last := sub (len .) 1 }}
|
||||
{{ range $i, $x := . }}
|
||||
<a href="/tags/{{ $x | urlize }}/">{{ $x }}</a>
|
||||
{{ if lt $i $last }}<span class="ampersand">&</span>{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue