website
This commit is contained in:
18
docs/website/themes/ananke/layouts/partials/site-header.html
Normal file
18
docs/website/themes/ananke/layouts/partials/site-header.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{{ $featured_image := .Param "featured_image"}}
|
||||
{{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
|
||||
{{ $featured_image := (trim $featured_image "/") | absURL }}
|
||||
<div style="padding: 50px; text-align: center;">
|
||||
<img src="{{ $featured_image }}" style="max-width: 800px;"></img>
|
||||
</div>
|
||||
<div class="{{ .Site.Params.cover_dimming_class | default "bg-black-60" }}">
|
||||
<div class="tc-l pv4 pv3-l ph3 ph4-ns">
|
||||
<h1 class="f2 f-subheadline-l fw2 white-90 mb0 lh-title">
|
||||
{{ .Title | default .Site.Title }}
|
||||
</h1>
|
||||
{{ with .Params.description }}
|
||||
<h2 class="fw1 f5 f3-l white-80 measure-wide-l center mt3">
|
||||
{{ . }}
|
||||
</h2>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user