Initial commit: Add telonma homepage
This commit is contained in:
10
themes/hugo-arcana/layouts/partials/homepage/blocks/cta.html
Normal file
10
themes/hugo-arcana/layouts/partials/homepage/blocks/cta.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<section id="cta" class="wrapper style3">
|
||||
<div class="container">
|
||||
<header>
|
||||
<h2>{{ .item.contents | markdownify }}</h2>
|
||||
{{- with .item.button }}
|
||||
<a href="{{ .url }}" class="button">{{ .contents }}</a>
|
||||
{{- end }}
|
||||
</header>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,13 @@
|
||||
<section class="wrapper style2">
|
||||
<div class="container">
|
||||
<header class="major">
|
||||
<h2>{{ .item.heading }}</h2>
|
||||
{{- $html := .item.contents | markdownify }}
|
||||
{{- if (findRE "<p(?: [^>]*)?>" $html) }}
|
||||
{{ $html }}
|
||||
{{- else -}}
|
||||
<p>{{ $html }}</p>
|
||||
{{- end }}
|
||||
</header>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,16 @@
|
||||
<section class="wrapper style1">
|
||||
<div class="container">
|
||||
<div class="row gtr-200">
|
||||
{{- $item_cols := (div 12 (.item.items_per_row | default 3)) }}
|
||||
{{- range .item.items }}
|
||||
<section class="col-{{ $item_cols }} col-12-narrower">
|
||||
<div class="box highlight">
|
||||
<i class="icon solid major {{ .icon }}"></i>
|
||||
<h3>{{ .title }}</h3>
|
||||
<p>{{ .content | markdownify }}</p>
|
||||
</div>
|
||||
</section>
|
||||
{{- end }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,18 @@
|
||||
<section class="wrapper style1">
|
||||
<div class="container">
|
||||
{{ with .item.heading }}<h2>{{ . }}</h2>{{ end }}
|
||||
{{- $pages := (.ctx.Site.GetPage .item.content_type).RegularPagesRecursive }}
|
||||
{{- range $idx, $itm := first (.item.max | default 4) $pages }}
|
||||
{{- $rowpos := mod $idx 2 }}
|
||||
{{- if eq $rowpos 0 }}
|
||||
<div class="row">
|
||||
{{ end }}
|
||||
|
||||
{{- .Render "shortblock" -}}
|
||||
|
||||
{{ if or (eq $rowpos 1) (eq $idx (len $pages)) -}}
|
||||
</div>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
</div>
|
||||
</section>
|
||||
Reference in New Issue
Block a user