Initial commit: Add telonma homepage

This commit is contained in:
2024-12-19 13:52:17 +01:00
commit eabd1921ab
222 changed files with 27012 additions and 0 deletions

View 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>

View 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>

View 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 }}

View 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 }}

View 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>

View 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 }}

View 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 }}

View 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>