This commit is contained in:
Hoernschen 2024-06-19 20:45:01 +02:00
parent 6938e212ba
commit 62f343ef90
Signed by: hoernschen
GPG key ID: 37591FAF4E6D3462
40 changed files with 2171 additions and 149 deletions

View file

@ -0,0 +1,3 @@
{{ $img := .Page.Resources.GetMatch .Destination }}
{{ partial "components/image.html" (dict "img" $img "destination" .Destination "alt" .Text "caption" .Title) }}

View file

@ -1,7 +1,60 @@
{{ define "main" }}
{{ .Content }}
{{ range site.RegularPages }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ .Summary }}
<div class="scroller">
<section>
<div class="profile card">
{{ if .Params.image }}
<div class="image">
{{ partial "components/image.html" .Params.image }}
</div>
{{ else }}
<div class="image placeholder"></div>
{{ end }}
<div class="content">
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ if .Params.social }}
<div class="social">
{{ range .Params.social }}
{{ partial "components/icon.html" . }}
{{ end }}
</div>
{{ end }}
</div>
</div>
<div class="scroll-indicator">
<a href="#">
<i class="icon-angle-down"></i>
</a>
</div>
</section>
{{ range where .Site.RegularPages "Section" "projects"}}
<section>
<div class="card">
{{ if .Params.image }}
<div class="image">
{{ partial "components/image.html" .Params.image }}
</div>
{{ end }}
<div class="content">
<div class="tags">
{{ range .Params.tags }}
<a class="tag" href="{{ "tags" | absURL }}/{{ . | urlize }}/">{{ . }}</a>
{{ end }}
</div>
<h1><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h1>
<div class="more">
<a class="button filled" href="{{ .RelPermalink }}">
View Case
</a>
</div>
</div>
</div>
<div class="scroll-indicator">
<a href="#">
<i class="icon-angle-down"></i>
</a>
</div>
</section>
{{ end }}
</div>
{{ end }}

View file

@ -1,8 +1,11 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
<article class="content">
<div class="title">
<h1>{{ .Title }}</h1>
</div>
{{ .Content }}
{{ range .Pages }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ .Summary }}
{{ .Render "summary" }}
{{ end }}
</article>
{{ end }}

View file

@ -1,10 +1,15 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
<article class="content">
<div class="title">
<h1>{{ .Title }}</h1>
</div>
{{ if .Date }}
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
{{ end }}
{{ .Content }}
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
</article>
{{ end }}

View file

@ -0,0 +1,4 @@
<article>
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ .Summary }}
</article>