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:
parent
19051bc505
commit
6b76c1892b
5
archetypes/authors.md
Normal file
5
archetypes/authors.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
title: "unknown"
|
||||
avatar: "https://example.com/images/avatar.png"
|
||||
fullname: "Jan Novák"
|
||||
---
|
6
archetypes/blog.md
Normal file
6
archetypes/blog.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
date: {{ .Date }}
|
||||
draft: false
|
||||
authors: [ "unknown" ]
|
||||
---
|
@ -2,6 +2,6 @@
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
date: {{ .Date }}
|
||||
draft: false
|
||||
authors: [ "Greenscreener" ]
|
||||
authors: [ "unknown" ]
|
||||
---
|
||||
|
||||
|
6
archetypes/projects.md
Normal file
6
archetypes/projects.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
draft: false
|
||||
authors: [ "unknown" ]
|
||||
leader: [ "unknown" ]
|
||||
---
|
@ -3,5 +3,4 @@ title: "Greenscreener"
|
||||
avatar: "https://greenscreener.tk/images/GSLOGO.svg"
|
||||
fullname: "Jan Černohorský"
|
||||
---
|
||||
# Blehgh
|
||||
Lorem ipsum dolor sit amet.
|
||||
Greenscreener je velice cool týpek.
|
@ -3,5 +3,4 @@ title: "Greenscreener"
|
||||
avatar: "https://greenscreener.tk/images/GSLOGO.svg"
|
||||
fullname: "Jan Černohorský"
|
||||
---
|
||||
# Blehgh
|
||||
Lorem ipsum dolor sit amet.
|
||||
Greenscreener is a really cool guy.
|
@ -1,4 +0,0 @@
|
||||
---
|
||||
title: "Autoři"
|
||||
type: "_default"
|
||||
---
|
8
content/blog/urychlovac1.cs.md
Normal file
8
content/blog/urychlovac1.cs.md
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
title: "Tvorba urychlovače Kapitola I."
|
||||
date: 2019-07-14T18:27:55+02:00
|
||||
draft: false
|
||||
authors: [ "Greenscreener" ]
|
||||
projects: [ "urychlovac" ]
|
||||
---
|
||||
Bastlíme a bastlíme a bastlíme a bastľime a bastlíme a bastlíme.
|
8
content/blog/urychlovac2.cs.md
Normal file
8
content/blog/urychlovac2.cs.md
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
title: "Tvorba urychlovače Kapitola II."
|
||||
date: 2019-07-14T18:28:01+02:00
|
||||
draft: false
|
||||
authors: [ "Greenscreener" ]
|
||||
projects: [ "urychlovac" ]
|
||||
---
|
||||
Bastlíme a bastlíme a bastlíme a bastľime a bastlíme a bastlíme.
|
8
content/blog/urychlovac3.cs.md
Normal file
8
content/blog/urychlovac3.cs.md
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
title: "Tvorba urychlovače Kapitola III."
|
||||
date: 2019-07-14T18:28:07+02:00
|
||||
draft: false
|
||||
authors: [ "Greenscreener" ]
|
||||
projects: [ "urychlovac" ]
|
||||
---
|
||||
Bastlíme a bastlíme a bastlíme a bastľime a bastlíme a bastlíme.
|
7
content/projects/urychlovac/_index.cs.md
Normal file
7
content/projects/urychlovac/_index.cs.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Projekt Urychlovač"
|
||||
draft: false
|
||||
authors: [ "Greenscreener", "sijisu" ]
|
||||
leader: [ "sijisu" ]
|
||||
---
|
||||
Chtěli jsme jet na MakerFaire, ale neměli jsme co prezentovat. Tak jsme za měsíc postavili urychlovač částic.
|
@ -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
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit d3ba819e7db1e938c9d3581aff71c9423e036228
|
||||
Subproject commit e8f57b57ed235335fa6dcd18c3ef866ec1ecbacc
|
@ -1,2 +1,21 @@
|
||||
[readmore]
|
||||
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í"
|
@ -1,2 +1,19 @@
|
||||
[readmore]
|
||||
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,4 +1,4 @@
|
||||
{{ define "main" }}
|
||||
<h2 class="title">{{ .Title }}</h2>
|
||||
{{ partial "pageHeader.html" . }}
|
||||
{{ partial "list.html" .}}
|
||||
{{ end }}
|
@ -1,5 +1,5 @@
|
||||
{{ define "main" }}
|
||||
<h2 class="title">{{ .Title }}</h2>
|
||||
{{ partial "pageHeader.html" . }}
|
||||
<div class="content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
@ -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
themes/patek/layouts/blog/list.html
Normal file
15
themes/patek/layouts/blog/list.html
Normal 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
themes/patek/layouts/blog/single.html
Normal file
9
themes/patek/layouts/blog/single.html
Normal 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 }}
|
7
themes/patek/layouts/partials/blogPageHeader.html
Normal file
7
themes/patek/layouts/partials/blogPageHeader.html
Normal file
@ -0,0 +1,7 @@
|
||||
<div class="pageHeader">
|
||||
<h2 class="title pageTitle"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||||
<p class="has-text-grey">{{- T "published" -}}: <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>
|
@ -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>
|
||||
{{ partial "pageHeader.html" . }}
|
||||
</div>
|
||||
</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 }}
|
||||
|
3
themes/patek/layouts/partials/pageHeader.html
Normal file
3
themes/patek/layouts/partials/pageHeader.html
Normal file
@ -0,0 +1,3 @@
|
||||
<div class="pageHeader">
|
||||
<h2 class="title pageTitle"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||||
</div>
|
9
themes/patek/layouts/partials/projectPageHeader.html
Normal file
9
themes/patek/layouts/partials/projectPageHeader.html
Normal file
@ -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
themes/patek/layouts/taxonomy/author.html
Normal file
20
themes/patek/layouts/taxonomy/author.html
Normal 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 }}
|
9
themes/patek/layouts/taxonomy/project.html
Normal file
9
themes/patek/layouts/taxonomy/project.html
Normal file
@ -0,0 +1,9 @@
|
||||
{{ define "main" }}
|
||||
{{ if ne .Params.authors nil}}
|
||||
{{ partial "projectPageHeader.html" . }}
|
||||
<div class="content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{ end}}
|
||||
{{ partial "list.html" . }}
|
||||
{{ end }}
|
Loading…
Reference in New Issue
Block a user