Inserito il tema direttamente nel codice invece che come sottomodulo
This commit is contained in:
20
themes/hugo-universal-theme/layouts/partials/top.html
Normal file
20
themes/hugo-universal-theme/layouts/partials/top.html
Normal file
@ -0,0 +1,20 @@
|
||||
{{ if .Site.Params.topbar.enable }}
|
||||
<header>
|
||||
<div id="top">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xs-5">
|
||||
{{ .Site.Params.topbar.text | safeHTML }}
|
||||
</div>
|
||||
<div class="col-xs-7">
|
||||
<div class="social">
|
||||
{{ range .Site.Menus.topbar.ByWeight }}
|
||||
<a href="{{ .URL | safeURL }}" target="_blank" style="opacity: 1;">{{ .Pre }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user