Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display "cyks" correctly on main page (#19)
* display cyks correctly on the main page * hide "read more" button by default for cyks * cleanup previous cyks
- Loading branch information
1 parent
6e7d9d4
commit c9f31f4
Showing
9 changed files
with
81 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
--- | ||
title: "Cyk001: Pierwszy różowy zachód w 2020, Turew, 2020" | ||
date: "2020-03-16T20:51:15+01:00" | ||
type: posts | ||
author: adam nowak | ||
cover: "cover.jpg" | ||
tags: [] | ||
categories: | ||
- cyk | ||
keywords: [] | ||
description: "" | ||
showFullContent: false | ||
readingTime: false | ||
hideComments: false | ||
color: "" #color from the theme settings | ||
tags: | ||
- Turew | ||
- nature | ||
- sunset | ||
showFullContent: true | ||
--- | ||
|
||
Im bliżej wiosny, tym bardziej się cieszę, że słońca coraz więcej i razem z nim -- takie oto cuda będę mógł oglądać częściej! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
--- | ||
title: "Cyk002: Baloty, Turew, 2020" | ||
date: 2020-08-03T21:26:30+00:00 | ||
type: posts | ||
author: adam nowak | ||
cover: "cover.jpg" | ||
tags: [] | ||
categories: | ||
- cyk | ||
keywords: [] | ||
description: "" | ||
showFullContent: false | ||
readingTime: false | ||
hideComments: false | ||
color: "" #color from the theme settings | ||
tags: | ||
- Turew | ||
- nature | ||
showFullContent: true | ||
--- | ||
|
||
Uroki życia na wsi. A ile uciechy z oglądania prac rolniczych dla moich dwóch urwisów! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,19 @@ | ||
--- | ||
title: "Cyk003: Apple Watch s6, Turew, 2020" | ||
date: 2020-10-01T19:45:50+00:00 | ||
type: posts | ||
author: adam nowak | ||
cover: "cover.jpg" | ||
tags: | ||
- apple | ||
- Apple | ||
categories: | ||
- cyk | ||
- hardware | ||
keywords: [] | ||
description: "" | ||
showFullContent: false | ||
readingTime: false | ||
hideComments: false | ||
color: "" #color from the theme settings | ||
--- | ||
|
||
Jak tylko zobaczyłem, że jest model w kolorze "niebieskim", nie mogłem się powstrzymać. | ||
|
||
Różnica prędkości między s2, a s6 jest kolosalna -- korzystanie z wszystkich funkcji sprawia autentycznie radość i satysfakcję. Mam wrażenie, że to samo uczucie towarzyszyło mi przy pierwszym zegarku, więc chyba Apple specjalnie dodaje jakieś instrukcje w swoich aktualizacjach, żeby uczucie spowolnienia i niechęci wywołać. | ||
|
||
BTW, sorry za odcisk palucha, przynajmniej widać, że to nie jest super sterylny sprzęt --- on ma być używany i będzie tak wyglądał! | ||
BTW, sorry za odcisk palucha, przynajmniej widać, że to nie jest super sterylny sprzęt -- on ma być używany i będzie tak wyglądał! | ||
|
||
{{< figure src="20201001_2020-10-01-21.09.35-DSCF0588-lubieniebieskipl.jpg" alt="Apple Watch s6" >}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,15 @@ | ||
--- | ||
title: "Cyk004: Selfie time, Turew, 2020" | ||
date: 2020-10-06T20:57:53+00:00 | ||
type: posts | ||
author: adam nowak | ||
cover: "cover.jpg" | ||
tags: | ||
- fuji | ||
- Fuji | ||
- selfie | ||
- hardware | ||
categories: | ||
- cyk | ||
keywords: [] | ||
description: "" | ||
showFullContent: false | ||
readingTime: false | ||
hideComments: false | ||
color: "" #color from the theme settings | ||
showFullContent: true | ||
--- | ||
|
||
Na pierwszy rzut oka wygląda nieźle, a potem się zastanawiam dlaczego zasłaniam sobie wizjer 🙈 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{{ define "main" }} | ||
{{ if .Content }} | ||
<div class="index-content {{ if .Params.framed -}}framed{{- end -}}"> | ||
{{ .Content }} | ||
</div> | ||
{{ end }} | ||
<div class="posts"> | ||
|
||
{{ $PageContext := . }} | ||
{{ if .IsHome }} | ||
{{ $PageContext = .Site }} | ||
{{ end }} | ||
{{ $paginator := .Paginate (where $PageContext.RegularPages "Type" "in" (slice "posts" "cyk")) }} | ||
|
||
{{ range $paginator.Pages }} | ||
<article class="post on-list"> | ||
<h1 class="post-title"> | ||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> | ||
</h1> | ||
|
||
<div class="post-meta"> | ||
{{ if .Date }} | ||
<time class="post-date"> | ||
{{ .Date.Format "2006-01-02" }} :: | ||
</time> | ||
{{ end }} | ||
{{ with .Params.Author }} | ||
<span class="post-author">{{ . }}</span> | ||
{{ end }} | ||
</div> | ||
|
||
{{ if .Params.tags }} | ||
<span class="post-tags"> | ||
{{ range .Params.tags }} | ||
#<a href="{{ (urlize (printf "tags/%s/" . )) | absLangURL }}"> | ||
{{- . -}} | ||
</a> | ||
{{ end }} | ||
</span> | ||
{{ end }} | ||
|
||
{{ partial "cover.html" . }} | ||
|
||
<div class="post-content"> | ||
{{ if .Params.showFullContent }} | ||
{{ .Content }} | ||
{{ else if .Description }} | ||
{{ .Description | markdownify }} | ||
{{ else }} | ||
{{ .Summary }} | ||
{{ end }} | ||
</div> | ||
|
||
{{ if not .Params.showFullContent }} | ||
<div> | ||
<a class="read-more button" href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a> | ||
</div> | ||
{{ end }} | ||
</article> | ||
{{ end }} | ||
|
||
{{ partial "pagination.html" . }} | ||
</div> | ||
{{ end }} |