create case study page structure

This commit is contained in:
David Sertic
2023-07-10 11:58:29 +02:00
parent 9458424287
commit fc61491187
9 changed files with 125 additions and 71 deletions
@@ -1,2 +1,40 @@
{{ define "main" }}
<section>
<div class="auto-container">
<div class="row clearfix mb-5">
{{ range $i, $e := first 2 .Pages }}
{{ $link := .Permalink }}
{{ if .Params.external_link }}
{{ $link = .Params.external_link }}
{{ end }}
{{ end }}
</div>
<div class="row clearfix pt-4">
{{ range .Pages }}
{{ $link := .Permalink }}
{{ if .Params.external_link }}
{{ $link = .Params.external_link }}
{{ end }}
{{ if .Params.short_description }}
<!-- News block Two -->
<div class="d-flex col-md-6 col-sm-12">
{{ partial "article-card" (dict "context" . "classes" "article-card_border article-card_contrast article-card_content-style article-card_small-btn") }}
</div>
{{ end }}
{{ end }}
</div>
</div>
</section>
{{ end }}
@@ -11,9 +11,17 @@
<img src="{{ .Params.preview_dir }}/title.jpg">
</picture>
</div>
{{ partial "breadcrumbs" . }}
<h1>{{ .Title }}</h1>
{{ .Content }}
</article>
<div class="pt-3">{{ partial "author" . }}</div>
<div class="article__info mt-4">
<span class="d-inline-block mb-2 mb-md-0">
{{if .Date }}{{ .Date | time.Format ":date_long" }}&nbsp;&nbsp;|&nbsp;&nbsp;{{end}}
</span>
{{ partial "share-post" . }}
</div>
</section>
</div>
</div>
@@ -1,10 +0,0 @@
{{- partial "header.html" . -}}
{{- partial "second_header.html" . -}}
<div id="content">
{{ block "main" . }}{{ end }}
</div>
{{ partial "contact-section" . }}
{{- partial "footer.html" . -}}
@@ -1,33 +0,0 @@
{{ define "main" }}
{{ range $i,$p := where .Data.Pages "Section" "datasets" }}
<div class="auto-container pt-3 pt-md-5 single-page">
<div class="row clearfix">
<!-- Content Side -->
<section class="content-side col-lg-12 col-md-12 col-sm-12">
{{ .Scratch.Set "scope" "single" }}
{{ $link := .Permalink }}
{{ if .Params.external_link }}
{{ $link = .Params.external_link }}
{{ end }}
{{ if .Description }}
<article class="article article_benchmarks article_narrow">
<h1>{{ .Title }}</h1>
<p>{{ .Description }}</p>
</article>
{{ end }}
<article class="article article_benchmarks article_narrow">
{{ .Content }}
</article>
</section>
</div>
</div>
{{ end }}
{{ end }}
@@ -1,24 +0,0 @@
{{ define "main" }}
<div class="auto-container pt-3 pt-md-2 mb-5 single-page">
<div class="row clearfix">
<!-- Content Side -->
<section class="col-lg-12 col-md-12 col-sm-12">
{{ .Scratch.Set "scope" "single" }}
<article class="article article_benchmarks article_narrow article_bb mb-4">
<h1>{{ .Title }}</h1>
{{ .Content }}
</article>
<div class="pt-3">{{ partial "author" . }}</div>
<div class="article__info mt-4">
<span class="d-inline-block mb-2 mb-md-0">
{{if .Date }}{{ .Date | time.Format ":date_long" }}&nbsp;&nbsp;|&nbsp;&nbsp;{{end}}
</span>
{{ partial "share-post" . }}
</div>
</section>
</div>
</div>
{{ end }}