Compare commits
2 commits
d32a81f486
...
861bb178f1
| Author | SHA1 | Date | |
|---|---|---|---|
| 861bb178f1 | |||
| 9e0c92994c |
3 changed files with 56 additions and 23 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,2 +1,5 @@
|
||||||
# Ignoriere den Ordner public/ (und dessen Inhalt)
|
# Ignoriere den Ordner public/ (und dessen Inhalt)
|
||||||
public/
|
public/
|
||||||
|
|
||||||
|
# Hugo build stats
|
||||||
|
hugo_stats.json
|
||||||
|
|
|
||||||
|
|
@ -1,29 +1,58 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
|
||||||
{{ partial "page-title.html" . }}
|
{{ partial "page-title.html" . }}
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!-- checking blog -->
|
||||||
<html lang="de">
|
{{ if or (eq .Section "post") (eq .Section "posts") (eq .Section "blog") (eq .Section "blogs") (eq .Section "news") (eq .Section "categories") (eq .Section "tags") }}
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
<section class="page-wrapper">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<div class="container">
|
||||||
<title>{{ .Title }}</title>
|
<div class="row">
|
||||||
<link rel="stylesheet" href="{{ "css/styles.css" | absURL }}">
|
<div class="col-md-8">
|
||||||
</head>
|
<div class="post post-single">
|
||||||
<body>
|
<h2 class="post-title">{{ .Title }}</h2>
|
||||||
<header>
|
<div class="post-meta">
|
||||||
<h1>{{ .Title }}</h1>
|
<ul>
|
||||||
<nav>
|
<li><i class="ion-calendar"></i> {{ time.Format ":date_long" .PublishDate }}</li>
|
||||||
<!-- Navigation kann hier hinzugefügt werden -->
|
<li><i class="ion-android-people"></i>
|
||||||
</nav>
|
{{ i18n "posted_by" }}
|
||||||
</header>
|
{{ $authors := slice }}{{ if reflect.IsSlice .Params.author }}{{ $authors = .Params.author }}{{ else }}{{ $authors = (slice .Params.author) }}{{ end -}}
|
||||||
<main>
|
{{ range $index, $elements := $authors }}{{ if ne $index 0 }}, {{ end }}<a class="text-primary" href="{{ `author/` | relLangURL }}{{ . | urlize }}">{{ . }}</a>{{ end }}
|
||||||
{{ .Content }}
|
</li>
|
||||||
</main>
|
<li><i class="ion-pricetags"></i>
|
||||||
<footer>
|
{{ range $index, $elements:= .Params.tags }}{{ if ne $index 0 }}, {{ end }}<a href="{{ `tags/` | relLangURL }}{{ . | urlize }}">{{ . }}</a>{{ end }}
|
||||||
<p>© 2023 Dein Unternehmen</p>
|
</li>
|
||||||
</footer>
|
</ul>
|
||||||
</body>
|
</div>
|
||||||
</html>
|
<div class="post-thumb">
|
||||||
|
{{ with .Params.image -}}
|
||||||
|
<img class="img-responsive" src="{{ . | relURL }}" alt="{{ $.Title }}">
|
||||||
|
{{- end }}
|
||||||
|
</div>
|
||||||
|
<div class="post-content post-excerpt">
|
||||||
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
|
{{ with site.Params.DisqusShortname -}}
|
||||||
|
<div class="post-comments">
|
||||||
|
{{ template "_internal/disqus.html" . }}
|
||||||
|
</div>
|
||||||
|
{{- end }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
{{ partial "blog-sidebar.html" . }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- regular page -->
|
||||||
|
{{ else -}}
|
||||||
|
{{ .Render "default" }}
|
||||||
|
{{- end }}
|
||||||
|
<!-- /regular page -->
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
@ -23,3 +23,4 @@
|
||||||
</section>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue