minor rearrangements and fixes

This commit is contained in:
Helmut Merz 2020-06-08 14:54:08 +02:00
parent c05a285efa
commit 5979be2db6
9 changed files with 61 additions and 34 deletions

2
.gitignore vendored
View file

@ -1,4 +1,4 @@
public
resources
themes
static/images
static/img

View file

@ -1,6 +1,13 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
title: "{{ replace .Name "-" " " | title }}"
summary: ""
img:
domains: []
topics: []
date: {{ .Date }}
author:
draft: true
weight: 10
---
### First Headline

View file

@ -1,5 +1,5 @@
#
# en.yaml 2020-03-08
# en.yaml 2020-05-10
#
about:
@ -8,21 +8,21 @@ about:
author:
other: Autor
categories:
other: Kategorien
Categories:
other: Kategorien
category:
other: Kategorie
contact:
other: Kontakt
dateFormat:
other: 02.01.2006
domains:
other: Bereiche
Domains:
other: Bereiche
domains:
other: Bereich
next:
other: Weiter
@ -31,3 +31,13 @@ prev:
recentArticles:
other: Aktuelle Artikel
topics:
other: Themen
Topics:
other: Themen
topic:
other: Thema

View file

@ -1,5 +1,5 @@
#
# en.yaml 2020-03-08
# en.yaml 2020-05-10
#
about:
@ -8,15 +8,6 @@ about:
author:
other: Author
categories:
other: Categories
Categories:
other: Categories
category:
other: Category
contact:
other: Contact
@ -24,6 +15,15 @@ dateFormat:
other: Jan 02, 2006
# other: 2006-01-02
domains:
other: Domains
Domains:
other: Domains
domain:
other: Domain
next:
other: Next
@ -32,3 +32,13 @@ prev:
recentArticles:
other: Recent Posts
topics:
other: Topics
Topics:
other: Topics
topic:
other: Topic

View file

@ -4,9 +4,9 @@
<div class="panel panel-default">
{{ if .Params.img }}
<img width="100%" src="{{ .Site.BaseURL }}images/{{ .Params.img }}" alt="{{ .Title }}">
<img width="100%" src="{{ .Site.BaseURL }}img/{{ .Params.img }}" alt="{{ .Title }}">
{{ else if .Site.Params.defaultImage }}
<img width="100%" src="{{ .Site.BaseURL }}images/{{ .Site.Params.defaultImage }}" alt="{{ .Site.Title }}">
<img width="100%" src="{{ .Site.BaseURL }}img/{{ .Site.Params.defaultImage }}" alt="{{ .Site.Title }}">
{{ end }}
<div class="panel-body">

View file

@ -11,7 +11,7 @@
<div class="col-md-4 text-center mt25" >
{{ with .Site.Params.builtBy }}
<a target="_blank" href="{{.link}}"><img src="/{{.Site.BaseURL}}images/{{.image}}" alt="{{.name}}"></a>
<a target="_blank" href="{{.link}}"><img src="/{{.Site.BaseURL}}img/{{.image}}" alt="{{.name}}"></a>
{{ end }}
</div>

View file

@ -9,14 +9,14 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="{{ .Site.BaseURL }}"><img src="{{.Site.BaseURL}}images/{{.Site.Params.logo}}" alt="{{.Site.Title}}"></a>
<a href="{{ .Site.BaseURL }}"><img src="{{.Site.BaseURL}}img/{{.Site.Params.logo}}" alt="{{.Site.Title}}"></a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse " id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li><a href="{{ .Site.BaseURL }}pages/about/">{{i18n "about"}}</a></li>
<li><a href="{{ .Site.BaseURL }}categories/">{{i18n "categories"}}</a></li>
<li><a href="{{ .Site.BaseURL }}topics/">{{i18n "topics"}}</a></li>
<li><a href="{{ .Site.BaseURL }}pages/contact/">{{i18n "contact"}}</a></li>
</ul>
</div><!-- /.navbar-collapse -->

View file

@ -2,17 +2,17 @@
<div class="post-img">
{{ if .Params.img }}
<img width="600" src="{{ .Site.BaseURL}}images/{{ .Params.img }}" alt="{{ .Params.title }}">
<img width="600" src="{{ .Site.BaseURL}}img/{{ .Params.img }}" alt="{{ .Params.title }}">
{{ else }}
<img width="600" src="{{ .Site.BaseURL }}images/{{ .Site.Params.defaultImage }}" alt="matrix">
<img width="600" src="{{ .Site.BaseURL }}img/{{ .Site.Params.defaultImage }}" alt="matrix">
{{ end }}
</div>
{{ $taxo := "categories" }}
{{ $taxo := "topics" }}
{{ if .Param $taxo }}
<div class="mt10 sb-box">
<h3>{{i18n "categories"}}</h3>
<h3>{{i18n "topics"}}</h3>
<ul id="{{ $taxo }}">
{{ range .Param $taxo }}
{{ $name := . }}

View file

@ -3,7 +3,7 @@
<div class="home">
<div class="row">
<h1 class="site-title">{{i18n "category"}}: {{.Title | title}}</h1>
<h1 class="site-title">{{i18n "topic"}}: {{.Title | title}}</h1>
<br />
</div>