Compare commits

..

No commits in common. "0ded2e9138dc72b058af82c26097ce6911be06dc" and "4230ea5c168cd669e1b09ef2cdb617575ad90719" have entirely different histories.

9 changed files with 32 additions and 107 deletions

View file

@ -42,10 +42,6 @@
color: inherit;
}
.link:before {
content: none;
}
.copyright {
margin-top: 2rem;
width: 100%;

View file

@ -21,11 +21,6 @@
margin: auto;
}
.header-blocker {
width: 100%;
min-height: 4rem;
}
.sticky {
position: fixed;
top: 0;

View file

@ -45,28 +45,6 @@ a {
color: {{ .Site.Params.color.secondary }};
}
{{ if .Site.Params.list.image }}
ul {
list-style: none;
padding-left: 1rem;
}
ul li {
display: flex;
}
ul li:before {
content: url({{ .Site.Params.list.image }});
display: inline-block;
width: 21px;
height: 21px;
margin-right: 10px;
flex-shrink: 0;
}
{{ end }}
button {
font-family: inherit;
font-size: 100%;
@ -403,7 +381,6 @@ button {
.mediumCard {
display: flex;
flex-direction: column;
flex: 1 1 300px;
border-radius: 5px;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
max-width: 350px;
@ -422,24 +399,14 @@ button {
margin: 5px;
justify-content: center;
}
.cardContent {
display: flex;
flex-direction: column;
height: 100%;
width: 100%;
}
.cardImage {
display: flex;
width: 100%;
height: 150px;
border-radius: 5px 5px 0px 0px;
object-fit: cover;
}
.noCover {
object-fit: unset !important;
flex-shrink: 0;
flex-grow: 1;
}
.cardIcon {
@ -462,6 +429,8 @@ button {
padding: 6px;
padding-top: 0px;
word-wrap: break-word;
//white-space: -moz-pre-wrap;
//white-space: pre-wrap;
height: 100%;
}
@ -484,15 +453,6 @@ button {
object-fit: cover;
}
.image-copyright {
width: 100%;
max-width: 1152px;
align-self: center;
padding-right: 1.5rem;
padding-left: 1.5rem;
font-size: small;
}
.more-button {
padding-top: 1rem;
text-align: center;

View file

@ -9,8 +9,6 @@
{{ end }}
{{.Content}}
</div>
{{ else }}
<div class="header-blocker"></div>
{{ end }}
{{- range $index, $page := .Pages }}
{{ $odd := mod $index 2 }}

View file

@ -1,5 +1,4 @@
{{ define "main" }}
<div class="header-blocker"></div>
{{- range $index, $section := .Site.Params.sections }}
{{ $odd := mod $index 2 }}
{{ if eq .type "slider" }}

View file

@ -8,7 +8,7 @@
{{- $id := .id }}
{{end}}
<div id="{{ $id }}" class="section {{if eq $odd 0}} section-even {{end}}">
<div class="section-content">
<div class="section-content links">
{{ with $links.title }}
<div class="title">
<h1 class="content-title">{{ . }}</h1>
@ -17,23 +17,7 @@
{{ end }}
<div class="cardList">
{{- range $links.links}}
<div class="mediumCard">
<a href="{{ .url }}">
<div class="cardContent">
{{ if .image }}
<img class="cardImage {{ if eq .image.cover false }} noCover {{ end }}" alt="{{ .image.alt }}" src="{{ .image.url }}" />
{{ else if .icon }}
<div class="cardImage">
<i class="fas fa-{{ .icon }} cardIcon"></i>
</div>
{{ else }}
<img class="cardImage" alt="default image" src="{{ $defaultimage }}" />
{{ end }}
<div class="cardTitle">{{ .title }}</div>
</div>
</a>
</div>
{{/* <a href="{{ .url }}">
<a href="{{ .url }}">
<div class="mediumCard">
{{ if .image }}
<img class="cardImage" alt="{{ .image.alt }}" src="{{ .image.url }}" />
@ -46,7 +30,7 @@
{{ end }}
<div class="cardTitle">{{.title}}</div>
</div>
</a> */}}
</a>
{{- end}}
</div>
</div>

View file

@ -16,20 +16,18 @@
</div>
<div class="cardList">
{{ range first 3 $pages }}
<div class="card">
<a href="{{.Permalink}}">
<div class="cardContent">
{{ if .Params.image }}
<img class="cardImage {{ if eq .Params.image.cover false }} noCover {{ end }}" src="{{ .Params.image.url }}" />
{{ else }}
<img class="cardImage" src="{{ $defaultimage }}" />
{{ end }}
<div class="cardTitle">{{.Title}}</div>
<div class="cardDescription">{{ .Content | safeHTML | truncate 250 }}</div>
<div class="cardDetail">{{.Date.Format "02.01.2006"}} | {{.ReadingTime}} Minuten</div>
</div>
</a>
</div>
<a href="{{.Permalink}}">
<div class="card">
{{ if .Params.image }}
<img class="cardImage" src="{{ .Params.image }}" />
{{ else }}
<img class="cardImage" src="{{ $defaultimage }}" />
{{ end }}
<div class="cardTitle">{{.Title}}</div>
<div class="cardDescription">{{ .Content | safeHTML | truncate 250 }}</div>
<div class="cardDetail">{{.Date.Format "02.01.2006"}} | {{.ReadingTime}} Minuten</div>
</div>
</a>
{{ end }}
</div>
<div class="more-button"><a href="{{ $posts.id }}"> {{ $posts.moretext }} </a></div>

View file

@ -11,20 +11,18 @@
<!-- Ranges through content/posts/*.md -->
<div class="cardList">
{{ range .Pages }}
<div class="card">
<a href="{{.Permalink}}">
<div class="cardContent">
{{ if .Params.image }}
<img class="cardImage {{ if eq .Params.image.cover false }} noCover {{ end }}" src="{{ .Params.image.url }}" />
{{ else }}
<img class="cardImage" src="{{ .Site.Params.defaultimage }}" />
{{ end }}
<div class="cardTitle">{{.Title}}</div>
<div class="cardDescription">{{ .Content | safeHTML | truncate 250 }}</div>
<div class="cardDetail">{{.Date.Format "02.01.2006"}} | {{.ReadingTime}} Minuten</div>
</div>
</a>
</div>
<a href="{{.Permalink}}">
<div class="card">
{{ if .Params.image }}
<img class="cardImage" src="{{ .Params.image }}" />
{{ else }}
<img class="cardImage" src="{{ $.Site.Params.defaultimage }}" />
{{ end }}
<div class="cardTitle">{{.Title}}</div>
<div class="cardDescription">{{ .Content | safeHTML | truncate 250 }}</div>
<div class="cardDetail">{{.Date.Format "02.01.2006"}} | {{.ReadingTime}} Minuten</div>
</div>
</a>
{{ end }}
</div>
</div>

View file

@ -41,10 +41,7 @@
{{ define "main" }}
{{ with .Params.image }}
<img class="coverimage {{ if eq .cover false }} noCover {{ end }}" src="{{ .url }}" />
{{ with .copyright }}
<div class="image-copyright">© {{ . }}</div>
{{ end }}
<img class="coverimage" src="{{ . }}" />
{{ end }}
<div class="content">
{{ with .Params.tags }}