diff options
| author | mjkwiatkowski <mati.rewa@gmail.com> | 2026-02-11 12:55:51 +0100 |
|---|---|---|
| committer | mjkwiatkowski <mati.rewa@gmail.com> | 2026-02-11 12:55:51 +0100 |
| commit | af2144dadfecc18e368fd5784b203794c1e6d9af (patch) | |
| tree | ef53c307a0295b09e545619c8a3f6fc1eab59b6c | |
| parent | ffec2fce6f91b84fda9c33282e26c23d1b66db44 (diff) | |
feat: changed website layout
| -rw-r--r-- | config.toml | 3 | ||||
| -rw-r--r-- | content/_index.md | 7 | ||||
| -rw-r--r-- | content/articles/_index.md | 7 | ||||
| -rw-r--r-- | content/articles/critical-cs.md (renamed from content/posts/critical-cs.md) | 1 | ||||
| -rw-r--r-- | content/articles/denounce-ai.md (renamed from content/posts/denounce-ai.md) | 1 | ||||
| -rw-r--r-- | content/articles/dijkstra-knuth.md (renamed from content/posts/dijkstra-knuth.md) | 1 | ||||
| -rw-r--r-- | content/articles/good-cs-books.md (renamed from content/posts/good-cs-books.md) | 5 | ||||
| -rw-r--r-- | content/articles/lecture-photos.md (renamed from content/posts/lecture-photos.md) | 1 | ||||
| -rw-r--r-- | content/articles/mythical-man-month.md (renamed from content/posts/mythical-man-month.md) | 1 | ||||
| -rw-r--r-- | content/articles/nature-of-technology.md (renamed from content/posts/nature-of-technology.md) | 1 | ||||
| -rw-r--r-- | content/articles/poster-fair.md (renamed from content/posts/poster-fair.md) | 1 | ||||
| -rw-r--r-- | content/articles/useful-links.md (renamed from content/posts/useful-links.md) | 1 | ||||
| -rw-r--r-- | content/contact/_index.md | 6 | ||||
| -rw-r--r-- | layouts/_default/list.html | 20 | ||||
| -rw-r--r-- | layouts/_markup/render-image.html (renamed from layouts/_default/_markup/render-image.html) | 0 | ||||
| -rw-r--r-- | layouts/baseof.html | 20 | ||||
| -rw-r--r-- | layouts/home.html | 19 | ||||
| -rw-r--r-- | layouts/page.html (renamed from layouts/_default/single.html) | 4 | ||||
| -rw-r--r-- | layouts/partials/footer.html | 14 | ||||
| -rw-r--r-- | layouts/partials/head.html | 15 | ||||
| -rw-r--r-- | layouts/partials/header.html | 34 | ||||
| -rw-r--r-- | layouts/partials/navigation.html | 18 | ||||
| -rw-r--r-- | layouts/section.html | 17 | ||||
| -rw-r--r-- | layouts/terms.html (renamed from layouts/_default/terms.html) | 0 | ||||
| -rw-r--r-- | static/css/style.css | 15 |
25 files changed, 135 insertions, 77 deletions
diff --git a/config.toml b/config.toml index 5cf0fe0..e14e3c7 100644 --- a/config.toml +++ b/config.toml @@ -2,8 +2,6 @@ baseURL = 'https://mjkw.pl/' languageCode = 'en-us' title = 'mjkw' enableRobotsTXT = true -[permalinks] -post = "/:year/:month/:day/:filename/" [params] footer = "© Copyright 2025-2026 Mateusz J. Kwiatkowski. All Rights Reserved. No part of this website may be used or reproduced in any manner to train artificial intelligence technologies or systems." @@ -11,7 +9,6 @@ footer = "© Copyright 2025-2026 Mateusz J. Kwiatkowski. All Rights Reserved [markup] defaultMarkdownHandler = "goldmark" - [imaging] anchor = 'Top' bgColor = '#ffffff' diff --git a/content/_index.md b/content/_index.md index 93ede42..0bd9544 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,4 +1,9 @@ -## About +--- +title: "About" +date: 2026-01-31T06:37:16+01:00 +draft: false +--- + Welcome to the mjkw.pl blog where I discuss some of the problems I encounter in Computer Science. Here, I mostly try to practice writing skills and organize my arguments; [git.denounce.ai](https://git.denounce.ai) is my git repository, [ohmyghost.nl](https://ohmyghost.nl) is a separate, English literature book blog. diff --git a/content/articles/_index.md b/content/articles/_index.md new file mode 100644 index 0000000..100edaa --- /dev/null +++ b/content/articles/_index.md @@ -0,0 +1,7 @@ +--- +title: "Articles" +date: 2026-01-31T06:37:16+01:00 +draft: false +--- + +This is a list of all articles up to date. diff --git a/content/posts/critical-cs.md b/content/articles/critical-cs.md index 373da9c..b402b0a 100644 --- a/content/posts/critical-cs.md +++ b/content/articles/critical-cs.md @@ -2,6 +2,7 @@ title: "Comment for The New History of Modern Computing by P. Ceruzzi and T. Haigh" date: 2026-01-31T06:37:16+01:00 draft: false +summary: A short digression on mindlessly following trends. --- Paul Ceruzzi and Thomas Haigh have taken the courtesy to tell the history of computing inside their brand new, 2021 book, albeit not without a twist. diff --git a/content/posts/denounce-ai.md b/content/articles/denounce-ai.md index 6d0da91..2df9023 100644 --- a/content/posts/denounce-ai.md +++ b/content/articles/denounce-ai.md @@ -2,6 +2,7 @@ date = '2025-09-12T23:08:15+02:00' draft = false title = 'Why using AI to solve your homework is a bad idea' +summary = 'Using AI to solve your homework hurts both you and your colleagues. Here is why.' +++ Recently I have read a blog post by [Jamie Zawinski](https://www.jwz.org/) on [Anthony Moser's opinion](https://anthonymoser.github.io/writing/ai/haterdom/2025/08/26/i-am-an-ai-hater.html) about the current developments in AI. diff --git a/content/posts/dijkstra-knuth.md b/content/articles/dijkstra-knuth.md index a284a1e..bfa994c 100644 --- a/content/posts/dijkstra-knuth.md +++ b/content/articles/dijkstra-knuth.md @@ -2,6 +2,7 @@ date = '2025-12-14T17:14:30+01:00' draft = false title = 'On the old-school approach to programming' +summary ='After having read the EWD190 I decided to relate to it a bit.' +++ It has long lingered on my mind to reflect partially on my experience of the last 3 years, as the B.Sc. of Computer Science I have recently undertaken is soon coming to an end. diff --git a/content/posts/good-cs-books.md b/content/articles/good-cs-books.md index 4b851d7..96d7528 100644 --- a/content/posts/good-cs-books.md +++ b/content/articles/good-cs-books.md @@ -2,9 +2,10 @@ date = '2025-07-25T11:29:52+02:00' draft = false title = 'Computer Science books every student should read' +summary = ' ' +++ -1. [Frederick P. Brooks, _The Mythical Man-Month: Essays on Software Engineering_](/posts/mythical-man-month). +1. [Frederick P. Brooks, _The Mythical Man-Month: Essays on Software Engineering_](/articles/mythical-man-month). 2. Carl Hamacher and Zvonko Vranesic, _Computer Organization_. @@ -16,4 +17,4 @@ title = 'Computer Science books every student should read' 6. Maurice Herlihy, Nir Shavit, Victor Luchangco, Michael Spear, _The Art of Multiprocessor Programming_. -7. [W. Brian Arthur, _The Nature of Technology: What It Is and How It Evolves_.](/posts/nature-of-technology) +7. [W. Brian Arthur, _The Nature of Technology: What It Is and How It Evolves_.](/articles/nature-of-technology) diff --git a/content/posts/lecture-photos.md b/content/articles/lecture-photos.md index c40779c..84875f3 100644 --- a/content/posts/lecture-photos.md +++ b/content/articles/lecture-photos.md @@ -2,6 +2,7 @@ title: "Computer Organization and Computer Networks" date: 2025-10-09T05:43:30+01:00 draft: false +summary: ' ' --- Here are some cool photos from my first lectures. diff --git a/content/posts/mythical-man-month.md b/content/articles/mythical-man-month.md index b4952ef..5e29614 100644 --- a/content/posts/mythical-man-month.md +++ b/content/articles/mythical-man-month.md @@ -2,6 +2,7 @@ title: "Review of The Mythical Man-Month by Frederick P. Brooks" date: 2025-12-22T17:25:54+01:00 draft: false +summary: '8/10 book, worth recommending' --- "The Mythical Man-Month" by Frederick. P. Brooks is a book about his experience during development of OS/360. diff --git a/content/posts/nature-of-technology.md b/content/articles/nature-of-technology.md index 12f9d45..0dd5470 100644 --- a/content/posts/nature-of-technology.md +++ b/content/articles/nature-of-technology.md @@ -2,6 +2,7 @@ title: "Review of The Nature of Technology by W. Brian Arthur" date: 2026-02-11T08:26:48+01:00 draft: false +summary: ' ' --- (Writing in progress) diff --git a/content/posts/poster-fair.md b/content/articles/poster-fair.md index c7edbd3..e38db39 100644 --- a/content/posts/poster-fair.md +++ b/content/articles/poster-fair.md @@ -2,6 +2,7 @@ title: "HP Poster Fair 2024/2025" date: 2026-02-08T15:38:10+01:00 draft: false +summary: This is a short upload of the photos so that they do not dissapear into oblivion. --- Last year we in June I presented my poster during the annual HP Poster Fair at the VU. diff --git a/content/posts/useful-links.md b/content/articles/useful-links.md index f387032..c07fafe 100644 --- a/content/posts/useful-links.md +++ b/content/articles/useful-links.md @@ -2,6 +2,7 @@ date = '2025-07-26T12:53:30+02:00' draft = false title = 'Useful links' +summary = ' ' +++ 1. [jwz.org](https://www.jwz.org) diff --git a/content/contact/_index.md b/content/contact/_index.md index 1ddd30b..ab6b5e5 100644 --- a/content/contact/_index.md +++ b/content/contact/_index.md @@ -1,4 +1,8 @@ -## Contact me ++++ +date = '2025-09-12T23:08:15+02:00' +draft = false +title = 'Contact me' ++++ You can reach me at mati.rewa@gmail.com and soon at mail@mjkw.pl diff --git a/layouts/_default/list.html b/layouts/_default/list.html deleted file mode 100644 index 9b40ced..0000000 --- a/layouts/_default/list.html +++ /dev/null @@ -1,20 +0,0 @@ -{{ partial "header.html" . }} -<div class="body"> -{{ .Content }} -</div> -{{ if .IsHome }} - <div class="list"> - <h2>Recent posts</h2> - <ul> - {{ $pages := .Pages }} - {{ $pages = .Site.RegularPages }} - {{ range (where $pages "Section" "!=" "") }} - <li> - <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a> - <span class="date"> Published on {{ .Date.Format "2006/01/02" }}</span> - </li> - {{ end }} - </ul> - </div> -{{ end }} -{{ partial "footer.html" . }} diff --git a/layouts/_default/_markup/render-image.html b/layouts/_markup/render-image.html index 179fe95..179fe95 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_markup/render-image.html diff --git a/layouts/baseof.html b/layouts/baseof.html new file mode 100644 index 0000000..11f8e65 --- /dev/null +++ b/layouts/baseof.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html lang="{{ site.Language.LanguageCode }}"> +<head> + {{ partial "head.html" . }} +</head> +<body> + <header> + {{ partial "header.html" . }} + </header> + + <main> + {{ block "main" . }} + {{ end }} + </main> + + <footer> + {{ partial "footer.html" . }} + </footer> +</body> +</html> diff --git a/layouts/home.html b/layouts/home.html new file mode 100644 index 0000000..2dabf5b --- /dev/null +++ b/layouts/home.html @@ -0,0 +1,19 @@ +{{ define "main" }} +<div class="body"> + <h2>{{ .Title }}</h2> + {{ .Content }} +</div> +<div class="list"> + <h2>Recent posts</h2> + <ul> + {{ $pages := .Pages }} + {{ $pages = .Site.RegularPages }} + {{ range (where $pages "Section" "!=" "") }} + <li> + <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a> + <span class="date"> Published on {{ .Date.Format "2006/01/02" }}</span> + </li> + {{ end }} + </ul> +</div> +{{ end }} diff --git a/layouts/_default/single.html b/layouts/page.html index a322e0a..cea54ae 100644 --- a/layouts/_default/single.html +++ b/layouts/page.html @@ -1,7 +1,7 @@ -{{ partial "header.html" .}} +{{ define "main" }} <div class="single"> <h2>{{ .Title }}</h2> <h4> Published on {{ .Date.Format "2006/01/02" }}</h4> {{ .Content }} </div> -{{ partial "footer.html" . }} +{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 83be5c4..641b3b9 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,11 +1,3 @@ -<footer style="vertical-align: bottom;"> - <div style="display: block; margin-left:20em; margin-right:20em; font-size: 10pt"> - <center> - {{ with .Site.Params.footer }} - {{ . | markdownify }} - {{ end }} - </center> - </div> -</footer> -</body> -</html> +{{ with .Site.Params.footer }} +{{ . | markdownify }} +{{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 546851c..8708ddb 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,9 +1,6 @@ -<head> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png"> - <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png"> - <link rel="stylesheet" href="{{ "/css/style.css" | relURL }}" /> - <link rel="stylesheet" href="{{ "/css/fonts.css" | relURL }}" /> - <script async type="text/javascript" src="js/code.js"> </script> -</head> +<meta charset="utf-8"> +<meta name="viewport" content="width=device-width, initial-scale=1"> +<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png"> +<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png"> +<link rel="stylesheet" href="{{ "/css/style.css" | relURL }}" /> +<link rel="stylesheet" href="{{ "/css/fonts.css" | relURL }}" /> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index f3feda0..9deb68f 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,10 +1,24 @@ -<!DOCTYPE html> -<html lang=en-us> - {{ partial "head.html" . }} - <header> - <img width="100em" height="100em" src="/images/logo.jpg" alt="my logo"> - <div> - <h1>mjkw.pl</h1> - {{ partial "navigation.html" .}} - </div> - </header> +<img width="100em" height="100em" src="/images/logo.jpg" alt="mjkw logo"> +<div> + <h1>mjkw.pl</h1> + <ul> + <li> + <a href="/">home</a> + </li> + <li> + <a href="/articles">articles</a> + </li> + <li> + <a href="https://git.denounce.ai/">git.denounce.ai</a> + </li> + <li> + <a href="https://ohmyghost.nl">ohmyghost.nl</a> + </li> + <li> + <a href="https://atlarge-research.com/mkwiatkowski/">research</a> + </li> + <li> + <a href="/contact">contact me</a> + </li> + </ul> +</div> diff --git a/layouts/partials/navigation.html b/layouts/partials/navigation.html deleted file mode 100644 index 6d9d2ca..0000000 --- a/layouts/partials/navigation.html +++ /dev/null @@ -1,18 +0,0 @@ -<ul> - <li> - <a href="/">home</a> - </li> - <li> - <a href="https://git.denounce.ai/">git.denounce.ai</a> - </li> - <li> - <a href="https://ohmyghost.nl">ohmyghost.nl</a> - </li> - <li> - <a href="https://atlarge-research.com/mkwiatkowski/">research</a> - </li> - <li> - <a href="/contact">contact me</a> - </li> -</ul> - diff --git a/layouts/section.html b/layouts/section.html new file mode 100644 index 0000000..84557c3 --- /dev/null +++ b/layouts/section.html @@ -0,0 +1,17 @@ +{{ define "main" }} +<div class="list"> + <h2>{{ .Title }}</h2> + {{ .Content }} + <ul> + {{ $pages := .Pages }} + {{ $pages = .Site.RegularPages }} + {{ range (where $pages "Section" "==" .Section ) }} + <li> + <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a> + <span class="date"> Published on {{ .Date.Format "2006/01/02" }}</span> + <span class="summary"> {{ .Summary }} </span> + </li> + {{ end }} + </ul> +</div> +{{ end }} diff --git a/layouts/_default/terms.html b/layouts/terms.html index c018b05..c018b05 100644 --- a/layouts/_default/terms.html +++ b/layouts/terms.html diff --git a/static/css/style.css b/static/css/style.css index 1ecfa95..002cca3 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -94,10 +94,18 @@ p { text-align: justify; } +footer { + vertical-align: bottom; + margin-left:20em; + margin-right:20em; + font-size: 10pt +} + .list, .single, .body { font-family:Georgia, 'Times New Roman', Times, serif; margin-left: 3em; width: 80%; + height: 100%; margin-bottom: 0em; margin-top: 0em; background-color: #FFFFFF; @@ -109,3 +117,10 @@ p { font-size: 0.8em; margin-bottom: 10px; } + +.summary { + display: block; + font-size: 0.8em; + margin-top: 0.1em; + margin-bottom: 2em; +} |
