More work done, more placeholder content. Can't be bothered to make all content multilingual. Code should be compliant though.

This commit is contained in:
Greenscreener
2019-07-14 19:28:54 +02:00
parent 19051bc505
commit 6b76c1892b
26 changed files with 194 additions and 35 deletions
+28
View File
@@ -60,4 +60,32 @@ $primary: #0b2a37;
.author-media {
margin-bottom: 15px;
}
.pageTitle.title {
font-weight: 300;
font-size: 40px;
margin-bottom: 10px;
}
.column .pageTitle.title {
font-size: 30px;
}
.pageHeader {
margin-bottom: 40px;
}
.content h1, h2, h3, h4, h5, h6, .title {
font-weight: 300;
}
h2 a {
color: $text;
}
.box h2 a {
color: $link;
&:hover {
color: $link-hover;
}
}
.separateWithCommas + .separateWithCommas:before {
content: ", ";
}
// /Custom styles
+20 -1
View File
@@ -1,2 +1,21 @@
[readmore]
other = "Číst dále"
other = "Číst dále"
[published]
other = "Publikováno"
[author]
other = "Autor"
[part_of_project]
one = "Tento přízpěvek je součástí projektu"
few = "Tento přízpěvek je součástí projektů"
other = "Tento přízpěvek je součástí projektů"
[member]
one = "Člen"
few = "Členové"
other = "Členové"
[leader]
other = "Vedoucí"
+18 -1
View File
@@ -1,2 +1,19 @@
[readmore]
other = "Read more"
other = "Read more"
[published]
other = "Published"
[author]
other = "Author"
[part_of_project]
one = "This post is a part of this project"
other = "This post is a part of these projects"
[member]
one = "Member"
other = "Members"
[leader]
other = "Leader"
+1 -1
View File
@@ -1,4 +1,4 @@
{{ define "main" }}
<h2 class="title">{{ .Title }}</h2>
{{ partial "pageHeader.html" . }}
{{ partial "list.html" .}}
{{ end }}
+1 -1
View File
@@ -1,5 +1,5 @@
{{ define "main" }}
<h2 class="title">{{ .Title }}</h2>
{{ partial "pageHeader.html" . }}
<div class="content">
{{ .Content }}
</div>
-17
View File
@@ -1,17 +0,0 @@
{{ define "main" }}
<div class="media author-media">
<div class="media-left">
<figure class="image is-96x96">
<img src="{{ .Params.avatar }}" alt="User avatar">
</figure>
</div>
<div class="media-content is-vertical-center">
<h4 class="title is-4">{{ .Title }}</h4>
<h6 class="title is-6">{{ .Params.fullname }}</h6>
</div>
</div>
<div class="content">
{{ .Content }}
</div>
{{ partial "list.html" . }}
{{ end }}
+15
View File
@@ -0,0 +1,15 @@
{{ define "main" }}
{{ partial "pageHeader.html" . }}
{{ $baseUrl := .Site.BaseURL }}
{{ $paginator := .Paginate (.Pages.ByPublishDate.Reverse) }}
{{ partial "paginator-buttons.html" $paginator }}
{{ range $paginator.Pages }}
<div class="box">
<div class="pageHeaderContainer">
{{ partial "blogPageHeader.html" . }}
</div>
<div class="content"><p> {{ .Summary }} <a href="{{ .Permalink }}">{{ T "readmore" }}</a> </p></div>
</div>
{{ end }}
{{ partial "paginator-buttons.html" $paginator }}
{{ end }}
+9
View File
@@ -0,0 +1,9 @@
{{ define "main" }}
{{ partial "blogPageHeader.html" . }}
<div class="content">
{{ .Content }}
</div>
{{ if ne .Params.projects nil }}
<h3 class="title">{{ T "part_of_project" (len .Params.projects) }}: {{ range .Params.projects }}{{ with $.Site.GetPage (printf "projects/%s" .) }}<a class="separateWithCommas" href="{{ .Permalink }}">{{ .Title }}</a>{{ end }}{{ end }}</h3>
{{ end }}
{{ end }}
@@ -0,0 +1,7 @@
<div class="pageHeader">
<h2 class="title pageTitle"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<p class="has-text-grey">{{- T "published" -}}:&nbsp;<time>{{ .PublishDate.Format "02.01.2006 15:04" }}</time></p>
<p class="has-text-grey">
{{- T "author" -}}:{{ range .Params.authors }}{{ with $.Site.GetPage (printf "authors/%s" .) }}<a class="separateWithCommas" href="{{ .Permalink }}">{{ .Title }}</a>{{ end }}{{ end }}
</p>
</div>
+2 -4
View File
@@ -4,11 +4,9 @@
{{ range $paginator.Pages }}
<div class="box">
<div class="pageHeaderContainer">
<div class="pageHeader">
<h3 class="title pageTitle"><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
</div>
{{ partial "pageHeader.html" . }}
</div>
<div class="content"><p> {{ replaceRE "invisible\\(\\);(?:.|\n)*invisibleEnd\\(\\);" "" .Summary }} <a href="{{ .Permalink }}">{{ T "readmore" }}</a> </p></div>
<div class="content"><p> {{ .Summary }} <a href="{{ .Permalink }}">{{ T "readmore" }}</a> </p></div>
</div>
{{ end }}
{{ partial "paginator-buttons.html" $paginator }}
@@ -0,0 +1,3 @@
<div class="pageHeader">
<h2 class="title pageTitle"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
</div>
@@ -0,0 +1,9 @@
<div class="pageHeader">
<h2 class="title pageTitle"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<p class="has-text-grey">
{{- T "leader" -}}: {{ range .Params.leader }}{{ with $.Site.GetPage (printf "authors/%s" .) }}<a href="{{ .Permalink }}">{{ .Title }}</a>{{ end }}{{ end }}
</p>
<p class="has-text-grey">
{{- T "member" (len .Params.authors) -}}: {{ range .Params.authors }}{{ with $.Site.GetPage (printf "authors/%s" .) }}<a class="separateWithCommas" href="{{ .Permalink }}">{{ .Title }}</a>{{ end }}{{ end }}
</p>
</div>
+20
View File
@@ -0,0 +1,20 @@
{{ define "main" }}
<div class="box">
<div class="media author-media">
<div class="media-left">
<figure class="image is-96x96">
<img src="{{ .Params.avatar }}" alt="User avatar">
</figure>
</div>
<div class="media-content is-vertical-center">
<h3 class="title is-3">{{ .Title }}</h3>
<h4 class="title is-4">{{ .Params.fullname }}</h4>
<div class="content">
{{ .Content }}
</div>
</div>
</div>
</div>
{{ partial "list.html" . }}
{{ end }}
@@ -0,0 +1,9 @@
{{ define "main" }}
{{ if ne .Params.authors nil}}
{{ partial "projectPageHeader.html" . }}
<div class="content">
{{ .Content }}
</div>
{{ end}}
{{ partial "list.html" . }}
{{ end }}