Skip to content

Commit

Permalink
Display "cyks" correctly on main page (#19)
Browse files Browse the repository at this point in the history
* display cyks correctly on the main page

* hide "read more" button by default for cyks

* cleanup previous cyks
  • Loading branch information
lubieniebieski committed Feb 21, 2023
1 parent 6e7d9d4 commit c9f31f4
Show file tree
Hide file tree
Showing 9 changed files with 81 additions and 51 deletions.
6 changes: 1 addition & 5 deletions archetypes/cyk/index.md
Expand Up @@ -8,9 +8,5 @@ tags: []
categories:
- cyk
keywords: []
description: ""
showFullContent: false
readingTime: false
hideComments: false
color: "" #color from the theme settings
showFullContent: true
---
13 changes: 5 additions & 8 deletions content/cyk/001/index.md
@@ -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!
12 changes: 4 additions & 8 deletions content/cyk/002/index.md
@@ -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!
11 changes: 2 additions & 9 deletions content/cyk/003/index.md
@@ -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" >}}
10 changes: 2 additions & 8 deletions content/cyk/004/index.md
@@ -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 🙈
7 changes: 1 addition & 6 deletions content/cyk/005/index.md
Expand Up @@ -9,12 +9,7 @@ tags:
- morning
categories:
- cyk
keywords: []
description: ""
showFullContent: false
readingTime: false
hideComments: false
color: "" #color from the theme settings
showFullContent: true
---

Czasami warto z rana przejść się po okolicy, widoki wynagradzają. Listopad w swojej łagodnej okazałości!
8 changes: 1 addition & 7 deletions content/cyk/006/index.md
Expand Up @@ -9,15 +9,9 @@ tags:
- wallpaper
categories:
- cyk
keywords: []
description: ""
showFullContent: false
readingTime: false
hideComments: false
color: "" #color from the theme settings
---

This week, the new Porsche GT3 has it&#8217;s premiere.
This week, the new Porsche GT3 has it's premiere.

{{< youtube XdBDWTLe49g >}}

Expand Down
1 change: 1 addition & 0 deletions content/cyk/007/index.md
Expand Up @@ -9,6 +9,7 @@ tags:
- city
categories:
- cyk
showFullContent: true
---

Taken during the family trip to Kraków in 2023. It was surprisingly cold that night, around -10°C. Streets were pretty empty that night.
64 changes: 64 additions & 0 deletions layouts/index.html
@@ -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>&nbsp;
{{ 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 }}

0 comments on commit c9f31f4

Please sign in to comment.