Initial commit: Add telonma homepage
This commit is contained in:
51
themes/hugo-arcana/layouts/_default/baseof.html
Normal file
51
themes/hugo-arcana/layouts/_default/baseof.html
Normal file
@@ -0,0 +1,51 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="{{ .Language }}">
|
||||
<head>
|
||||
{{- partial "head/head.html" . -}}
|
||||
{{- template "_internal/opengraph.html" . -}}
|
||||
</head>
|
||||
<body class="is-preload">
|
||||
{{- partial "analytics/google-tag-manager/body.html" . }}
|
||||
<div id="page-wrapper">
|
||||
{{- partial "header.html" . }}
|
||||
{{- $sidebar_count := (add (cond (isset .Params "sidebar_left") 1 0) (cond (isset .Params "sidebar_right") 1 0)) }}
|
||||
|
||||
<section class="wrapper style1">
|
||||
<div class="container">
|
||||
{{ if gt $sidebar_count 0 }}<div class="row gtr-200">{{ end }}
|
||||
|
||||
{{- with .Params.sidebar_left }}
|
||||
<div class="col-{{ cond (eq $sidebar_count 1) 4 3 }} col-12-narrower">
|
||||
<div id="sidebar">
|
||||
{{- partial (printf "sidebar/%s.html" .) $ }}
|
||||
</div>
|
||||
</div>
|
||||
{{- end }}
|
||||
|
||||
<div class="{{ if gt $sidebar_count 0 -}}
|
||||
col-{{ cond (eq $sidebar_count 1) 8 6 }} col-12-narrower imp-narrower
|
||||
{{- end }}">
|
||||
<div id="content">
|
||||
<article>
|
||||
{{- block "main" . }}{{- end }}
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{- with .Params.sidebar_right }}
|
||||
<div class="col-{{ cond (eq $sidebar_count 1) 4 3 }} col-12-narrower">
|
||||
<div id="sidebar">
|
||||
{{- partial (printf "sidebar/%s.html" .) $ }}
|
||||
</div>
|
||||
</div>
|
||||
{{- end }}
|
||||
|
||||
{{ if gt $sidebar_count 0 }}</div>{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{- partial "footer/footer.html" . -}}
|
||||
</div>
|
||||
{{- partial "scripts.html" . -}}
|
||||
</body>
|
||||
</html>
|
||||
28
themes/hugo-arcana/layouts/_default/home.html
Normal file
28
themes/hugo-arcana/layouts/_default/home.html
Normal file
@@ -0,0 +1,28 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="{{ .Language }}">
|
||||
<head>
|
||||
{{- partial "head/head.html" . -}}
|
||||
{{- template "_internal/opengraph.html" . -}}
|
||||
</head>
|
||||
<body class="is-preload">
|
||||
{{- partial "analytics/google-tag-manager/body.html" . }}
|
||||
<div id="page-wrapper">
|
||||
{{- partial "header.html" . }}
|
||||
|
||||
<!-- Lookup homepage data in language data directory (e.g. data/en/homepage.yml).
|
||||
Defaults to data/homepage.yml if language specific data was not found. -->
|
||||
{{ with index ( index .Site.Data .Site.Language.Lang | default .Site.Data ) (.Param "homepage_data" | default "homepage") }}
|
||||
{{- if .banner.enable }}
|
||||
{{- partial "homepage/banner.html" .banner -}}
|
||||
{{- end }}
|
||||
|
||||
{{- range .items }}
|
||||
{{- partial (printf "homepage/blocks/%s.html" .type) (dict "ctx" $ "item" .) }}
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
|
||||
{{- partial "footer/footer.html" . -}}
|
||||
</div>
|
||||
{{- partial "scripts.html" . -}}
|
||||
</body>
|
||||
</html>
|
||||
17
themes/hugo-arcana/layouts/_default/list.html
Normal file
17
themes/hugo-arcana/layouts/_default/list.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{{ define "main" }}
|
||||
<header>
|
||||
<h2>{{ .Title }}</h2>
|
||||
{{ with .Description -}}
|
||||
<p>{{ . }}</p>
|
||||
{{- end }}
|
||||
</header>
|
||||
|
||||
{{- if .Params.image }}
|
||||
<span class="image featured"><img src="{{ .Params.image | relURL }}" alt="{{ .Params.image_alt }}" /></span>
|
||||
{{ end }}
|
||||
|
||||
{{ range .RegularPages }}
|
||||
{{ .Render "shortblock" }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
17
themes/hugo-arcana/layouts/_default/recursivelist.html
Normal file
17
themes/hugo-arcana/layouts/_default/recursivelist.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{{ define "main" }}
|
||||
<header>
|
||||
<h2>{{ .Title }}</h2>
|
||||
{{ with .Description -}}
|
||||
<p>{{ . }}</p>
|
||||
{{- end }}
|
||||
</header>
|
||||
|
||||
{{- if .Params.image }}
|
||||
<span class="image featured"><img src="{{ .Params.image | relURL }}" alt="{{ .Params.image_alt }}" /></span>
|
||||
{{ end }}
|
||||
|
||||
{{ range .RegularPagesRecursive }}
|
||||
{{ .Render "shortblock" }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
18
themes/hugo-arcana/layouts/_default/shortblock.html
Normal file
18
themes/hugo-arcana/layouts/_default/shortblock.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<section class="col-6 col-12-narrower">
|
||||
<div class="box post">
|
||||
<a href="{{ .RelPermalink }}" class="image left"><img src="{{ .Params.image | relURL }}" alt="{{ .Params.image_alt }}" /></a>
|
||||
<div class="inner">
|
||||
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||
{{ if .Site.Params.show_post_dates | default true }}
|
||||
{{- with .Date }}<time>{{ . | time.Format ":date_medium" }}</time>{{ end }}
|
||||
{{ end }}
|
||||
<p>
|
||||
{{ with .Description }}
|
||||
{{- . }}
|
||||
{{- else }}
|
||||
{{- .Summary }}
|
||||
{{- end }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
16
themes/hugo-arcana/layouts/_default/single.html
Normal file
16
themes/hugo-arcana/layouts/_default/single.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{{ define "main" }}
|
||||
<header>
|
||||
<h2>{{ .Title }}</h2>
|
||||
<p>{{ .Description }}</p>
|
||||
{{ if .Site.Params.show_post_dates | default true }}
|
||||
{{- with .Date }}<time>{{ . | time.Format ":date_medium" }}</time>{{ end }}
|
||||
{{ end }}
|
||||
{{ partial "tags.html" . }}
|
||||
</header>
|
||||
|
||||
{{- if .Params.image }}
|
||||
<span class="image featured"><img src="{{ .Params.image | relURL }}" alt="{{ .Params.image_alt }}" /></span>
|
||||
{{ end }}
|
||||
|
||||
{{- .Content }}
|
||||
{{ end }}
|
||||
17
themes/hugo-arcana/layouts/_default/taxonomy.html
Normal file
17
themes/hugo-arcana/layouts/_default/taxonomy.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{{ define "main" }}
|
||||
<header>
|
||||
<h2>{{ .Title }}</h2>
|
||||
{{ with .Description -}}
|
||||
<p>{{ . }}</p>
|
||||
{{- end }}
|
||||
</header>
|
||||
|
||||
{{- if .Params.image }}
|
||||
<span class="image featured"><img src="{{ .Params.image | relURL }}" alt="{{ .Params.image_alt }}" /></span>
|
||||
{{ end }}
|
||||
|
||||
{{ range .Pages }}
|
||||
{{ .Render "taxonomyshortblock" }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
15
themes/hugo-arcana/layouts/_default/taxonomyshortblock.html
Normal file
15
themes/hugo-arcana/layouts/_default/taxonomyshortblock.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<section>
|
||||
<div class="box post">
|
||||
<a href="{{ .RelPermalink }}" class="image left"><img src="{{ .Params.image | relURL }}" alt="{{ .Params.image_alt }}" /></a>
|
||||
<div class="inner">
|
||||
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||
<p>
|
||||
{{ with .Description }}
|
||||
{{- . }}
|
||||
{{- else }}
|
||||
{{- .Summary }}
|
||||
{{- end }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
Reference in New Issue
Block a user