diff options
-rw-r--r-- | config.toml | 5 | ||||
-rw-r--r-- | content/2023/ai-generated-artwork-looses-copyright-protection.md | 2 | ||||
-rw-r--r-- | content/2023/http-headers-in-rails-hyphens-and-underscores.md | 2 | ||||
-rw-r--r-- | content/2023/pulse-width-modulation-on-oled-screens.md | 2 | ||||
-rw-r--r-- | content/2023/rtx-remakes.md | 4 | ||||
-rw-r--r-- | content/2023/star-trek-voyager-95-night.md | 2 | ||||
-rw-r--r-- | content/2023/star-trek-voyager-96-drone.md | 2 | ||||
-rw-r--r-- | content/2023/this-blog-is-ai-free.md | 4 | ||||
-rw-r--r-- | content/about.md | 5 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 3 | ||||
-rw-r--r-- | layouts/_default/index.html | 14 | ||||
-rw-r--r-- | layouts/_default/list.html | 32 | ||||
-rw-r--r-- | layouts/_default/single.html | 8 | ||||
-rw-r--r-- | layouts/partials/full_post.html | 9 | ||||
-rw-r--r-- | static/style.css | 105 |
15 files changed, 124 insertions, 75 deletions
diff --git a/config.toml b/config.toml index 2d7e16b..8fda764 100644 --- a/config.toml +++ b/config.toml @@ -2,10 +2,15 @@ baseURL = 'https://d-s.sh' languageCode = 'en-us' title = "d-s" tagline = "Hello do d-s's weblog!" + [params] defaultDescription = "Welcome to my blog!" plausibleDomain = "d-s.sh" +[taxonomies] + category = 'categories' + tag = 'tags' + [outputFormats.TXT] mediaType = "text/plain" sufix = "txt" diff --git a/content/2023/ai-generated-artwork-looses-copyright-protection.md b/content/2023/ai-generated-artwork-looses-copyright-protection.md index 06ce411..7801f6d 100644 --- a/content/2023/ai-generated-artwork-looses-copyright-protection.md +++ b/content/2023/ai-generated-artwork-looses-copyright-protection.md @@ -1,5 +1,5 @@ --- -title: "Ai Generated Artwork Looses Copyright Protection" +title: "AI Generated Artwork Looses Copyright Protection" category: "software" abstract: You can no longer claim copyright over something you did not create date: 2023-02-24T11:11:58+01:00 diff --git a/content/2023/http-headers-in-rails-hyphens-and-underscores.md b/content/2023/http-headers-in-rails-hyphens-and-underscores.md index 7e96b88..16f08cb 100644 --- a/content/2023/http-headers-in-rails-hyphens-and-underscores.md +++ b/content/2023/http-headers-in-rails-hyphens-and-underscores.md @@ -1,6 +1,6 @@ --- title: "HTTP Headers in Rails: Hyphens, Underscores, and a terrible day" -category: "engineering" +category: "software" abstract: Rack modyfies incomming requests's headers! date: 2023-02-01T18:00:51+01:00 year: 2023 diff --git a/content/2023/pulse-width-modulation-on-oled-screens.md b/content/2023/pulse-width-modulation-on-oled-screens.md index e49ddd7..5b5d654 100644 --- a/content/2023/pulse-width-modulation-on-oled-screens.md +++ b/content/2023/pulse-width-modulation-on-oled-screens.md @@ -1,5 +1,5 @@ --- -title: "Pulse Width Modulation on Oled Screens" +title: "Pulse Width Modulation on OLED Screens" category: "hardware" abstract: OLED flickers and some of us want to rip their eyes out date: 2023-02-23T15:13:20+01:00 diff --git a/content/2023/rtx-remakes.md b/content/2023/rtx-remakes.md index e6e0b56..86237e0 100644 --- a/content/2023/rtx-remakes.md +++ b/content/2023/rtx-remakes.md @@ -1,6 +1,6 @@ --- -title: "RTX Remakes" -category: "software" +title: RTX Remakes +category: software abstract: half life rtx looses mood date: 2023-02-26T07:56:31+01:00 year: 2023 diff --git a/content/2023/star-trek-voyager-95-night.md b/content/2023/star-trek-voyager-95-night.md index ee7db53..b86ceea 100644 --- a/content/2023/star-trek-voyager-95-night.md +++ b/content/2023/star-trek-voyager-95-night.md @@ -1,6 +1,6 @@ --- title: "Star Trek: Voyager #95 - Night" -category: "blog" +category: media abstract: my opinion on Star Trek Voyager 05x01 - Night" date: 2023-02-12T00:27:20+01:00 year: 2023 diff --git a/content/2023/star-trek-voyager-96-drone.md b/content/2023/star-trek-voyager-96-drone.md index d1280b0..2f23844 100644 --- a/content/2023/star-trek-voyager-96-drone.md +++ b/content/2023/star-trek-voyager-96-drone.md @@ -1,6 +1,6 @@ --- title: "Star Trek: Voyager #96 - Drone" -category: "blog" +category: "media" abstract: my opinion on Star Trek Voyager 05x02 - Drone" date: 2023-02-22T00:01:20+01:00 year: 2023 diff --git a/content/2023/this-blog-is-ai-free.md b/content/2023/this-blog-is-ai-free.md index 582e1a6..6efbeb5 100644 --- a/content/2023/this-blog-is-ai-free.md +++ b/content/2023/this-blog-is-ai-free.md @@ -1,6 +1,6 @@ --- -title: "This Blog Is Ai Free" -category: "software" +title: "This Blog Is AI Free" +category: Software year: 2023 abstract: No AI for me date: 2023-01-30T13:12:28+01:00 diff --git a/content/about.md b/content/about.md index 68ea7d6..bfbb737 100644 --- a/content/about.md +++ b/content/about.md @@ -1,7 +1,8 @@ --- title: "About" -category: "pages" -date: 2000-01-08T13:58:33+01:00 +category: +type: "special" +date: 2008-01-08T13:58:33+01:00 draft: false tags: [] --- diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6c7cc5f..db3d2be 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -58,9 +58,6 @@ </header> {{ end }} <main> - {{ block "page-title" . }} - <h2> {{ .Page.Title }}</h2> - {{ end }} {{ block "main" . }} {{ end }} diff --git a/layouts/_default/index.html b/layouts/_default/index.html new file mode 100644 index 0000000..3260a96 --- /dev/null +++ b/layouts/_default/index.html @@ -0,0 +1,14 @@ +{{ define "main" }} + {{ $paginator := .Paginate (where site.RegularPages "Type" "!=" "special")}} + {{ range $paginator.Pages }} + <article class="list"> + {{ partial "partials/full_post.html" . }} + </article> + {{ end }} + + <nav id="pagination"> + <ul> + {{ if .Paginator.HasPrev }}<li id="page-previous"><a href="{{ .Paginator.Prev.URL }}">← Newer</a></li>{{ end }}<li id="page-number"><span>Page {{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}</span></li>{{ if .Paginator.HasNext }}<li id="page-next"><a href="{{ .Paginator.Next.URL }}">Older →</a></li>{{ end }} + </ul> + </nav> +{{ end }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index e8a2608..c27ce17 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,23 +1,19 @@ {{ define "main" }} -{{ $paginator := (.Paginator.Pages) }}. -{{ $paginator := .Paginate (where .Data.Pages "Type" "posts") }} -{{ range $paginator.Pages }} - <article class="list"> +<article class="list taxonomy"> + <h2> + {{ humanize .Title }} archives + </h2> + <ul> + {{ $pages := (.Data.Pages) }} + {{ range $pages }} + <li> <a href="{{ .Page.Permalink }}"> - <h2>{{ .Page.Title }}</h2> + <time>{{ .PublishDate.Format "2006-01-02" }}</time> + · + {{ .Page.Title }} </a> - ({{ .PublishDate.Format "January 2, 2006" }}) - <div> - {{ .Page.Content }} - </div> - </article> - {{ end }} - -<nav id="pagination"> - <ul> - {{ if .Paginator.HasPrev }}<li id="page-previous"><a href="{{ .Paginator.Prev.URL }}">← Newer</a></li>{{ end }}<li id="page-number"><span>Page {{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}</span></li>{{ if .Paginator.HasNext }}<li id="page-next"><a href="{{ .Paginator.Next.URL }}">Older →</a></li>{{ end }} + </li> + {{ end }} </ul> -</nav> - - +</article> {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 7ef1f8d..bc058fb 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,9 +1,10 @@ {{ define "main" }} -<article>{{ .Page.Content }}</article> +<article> + {{ partial "partials/full_post.html" . }} + {{- if not (in .Params.category "pages") }} <BR> - added on {{ .PublishDate.Format "January 2, 2006" }} {{- if isset .Params "tags" -}} {{- $tagsLen := len .Params.tags -}} {{- if gt $tagsLen 0 -}} @@ -13,11 +14,10 @@ <a href="{{ $url | absURL }}"> {{ . | title }}</a> {{- if lt $k (sub $tagsLen 1) }} · {{ end -}} {{- end -}} - </div> {{- end -}} {{- end }} - <hr/> +</article> {{ if or .Next .Prev -}} <div> {{- with .Prev }} <a class="prev-link" href="{{ .RelPermalink}}"> ← Previous</a> {{ end -}} diff --git a/layouts/partials/full_post.html b/layouts/partials/full_post.html new file mode 100644 index 0000000..407fee3 --- /dev/null +++ b/layouts/partials/full_post.html @@ -0,0 +1,9 @@ +<a href="{{ .Page.Permalink }}"> + <h2>{{ .Page.Title }}</h2> +</a> +{{- if not (eq .Page.Type "special") }} + {{ .PublishDate.Format "January 2, 2006" }} +{{- end }} +<div> + {{ .Page.Content }} +</div> diff --git a/static/style.css b/static/style.css index c6222c9..60233ab 100644 --- a/static/style.css +++ b/static/style.css @@ -101,50 +101,22 @@ display: flex; flex: 0 0 45px; } - h2 { - text-align: left; - padding: 0; - margin: 0; - color: #000000; - text-transform: uppercase; - font-size: 1.5em; - } - h3 { - text-transform: uppercase; - text-align: left; - } main { padding: 5px; } - article { - margin-bottom: 20px; - padding: 10px; - text-align: justify; - background-color: ##fcfcfc; - border-style: solid; - border-color: #f3f1f1; - border-radius: 3px; - } - article a { - text-decoration: underline; - } - img.float-right { - float: right; - display: inline; - margin: 10px; - } - .next-link { - float: right; - } - .pagination { - text-align: center - } - .pagination li { - display: inline-block - } - /* Page navigation */ + + + + +/* ----------- Pagination navigation */ +.pagination { + text-align: center +} +.pagination li { + display: inline-block +} #pagination ul { text-align:center; } @@ -153,3 +125,58 @@ padding:0 1em; } +/* ----------- Taxmomy list */ +.taxonomy a { + text-decoration: none; +} +.taxonomy li { + list-style: none; +} +.taxonomy ul { + padding: 0; +} + +/* ----------- Articles / Posts */ +article { + margin-bottom: 20px; + padding: 25px; + text-align: justify; + background-color: ##fcfcfc; + border-style: solid; + border-color: #f3f1f1; + border-radius: 3px; + box-shadow: -1px 8px 35px -18px rgba(0,0,0,0.42); + +} +article a { + text-decoration: underline; +} +h3 { + text-align: left; +} +a h2{ + text-decoration: none; +} +h2 { + text-align: left; + padding: 0; + margin: 0; + color: #000000; + font-size: 1.5em; +} + +/* ----------- Articles images */ +img.float-right { + float: right; + display: inline; + margin-left: 10px; +} + +img.centered { +} + + +/* ----------- Articles adjustement navigation */ +.next-link { + float: right; +} |