Compare commits

..

No commits in common. "861bb178f1c64040e8616bf1ace56c0f95b587d9" and "d32a81f4862f528eed5c641f6ba2e678ac26f7fe" have entirely different histories.

3 changed files with 23 additions and 56 deletions

3
.gitignore vendored
View file

@ -1,5 +1,2 @@
# Ignoriere den Ordner public/ (und dessen Inhalt) # Ignoriere den Ordner public/ (und dessen Inhalt)
public/ public/
# Hugo build stats
hugo_stats.json

View file

@ -1,58 +1,29 @@
{{ define "main" }} {{ define "main" }}
{{ partial "page-title.html" . }} {{ partial "page-title.html" . }}
<!-- checking blog --> <!DOCTYPE html>
{{ if or (eq .Section "post") (eq .Section "posts") (eq .Section "blog") (eq .Section "blogs") (eq .Section "news") (eq .Section "categories") (eq .Section "tags") }} <html lang="de">
<head>
<section class="page-wrapper"> <meta charset="UTF-8">
<div class="container"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<div class="row"> <title>{{ .Title }}</title>
<div class="col-md-8"> <link rel="stylesheet" href="{{ "css/styles.css" | absURL }}">
<div class="post post-single"> </head>
<h2 class="post-title">{{ .Title }}</h2> <body>
<div class="post-meta"> <header>
<ul> <h1>{{ .Title }}</h1>
<li><i class="ion-calendar"></i> {{ time.Format ":date_long" .PublishDate }}</li> <nav>
<li><i class="ion-android-people"></i> <!-- Navigation kann hier hinzugefügt werden -->
{{ i18n "posted_by" }} </nav>
{{ $authors := slice }}{{ if reflect.IsSlice .Params.author }}{{ $authors = .Params.author }}{{ else }}{{ $authors = (slice .Params.author) }}{{ end -}} </header>
{{ range $index, $elements := $authors }}{{ if ne $index 0 }}, {{ end }}<a class="text-primary" href="{{ `author/` | relLangURL }}{{ . | urlize }}">{{ . }}</a>{{ end }} <main>
</li> {{ .Content }}
<li><i class="ion-pricetags"></i> </main>
{{ range $index, $elements:= .Params.tags }}{{ if ne $index 0 }}, {{ end }}<a href="{{ `tags/` | relLangURL }}{{ . | urlize }}">{{ . }}</a>{{ end }} <footer>
</li> <p>&copy; 2023 Dein Unternehmen</p>
</ul> </footer>
</div> </body>
<div class="post-thumb"> </html>
{{ 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 }}

View file

@ -23,4 +23,3 @@
</section> </section>
{{ end }} {{ end }}
{{ end }} {{ end }}