commit e908551eca24d1873f933fa27fef13dde1320027 Author: Vojtěch Káně Date: Tue Jun 1 17:45:59 2021 +0200 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e47e1b3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/resources diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..861670f --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/hermit"] + path = themes/hermit + url = https://github.com/vojta001/hermit.git diff --git a/config.json b/config.json new file mode 100644 index 0000000..faf6555 --- /dev/null +++ b/config.json @@ -0,0 +1,45 @@ +{ + "baseURL": "https://vkane.cz", + "languageCode": "en", + "title": "Vojtěch Káně", + "theme": "hermit", + + "author": { + "name": "Vojtěch Káně" + }, + + "markup": { + "goldmark": { + "renderer": { + "unsafe": true + } + } + }, + + "params": { + "homeSubtitle": "A CS student, a scout and a technology enthusiast", + "dateform": "2006-01-02", + "dateformShort": "02.01.", + "dateformNumTime": "2006-01-02 15:04", + "social": [ + { + "name": "github", + "url": "https://github.com/vojta001" + }, + { + "name": "gitlab", + "url": "https://gitlab.com/vojta001" + }, + { + "name": "twitter", + "url": "https://twitter.com/VojtechKane" + }, + { + "name": "email", + "url": "mailto:vojtech@vkane.cz" + } + ] + }, + + "enableRobotsTXT": true +} diff --git a/content/about.md b/content/about.md new file mode 100644 index 0000000..4649465 --- /dev/null +++ b/content/about.md @@ -0,0 +1,12 @@ +--- +title: "About" +menu: "main" +weight: 2 +--- +Hi, my name is Vojtěch Káně. I am a CS student proudly studying the [Faculty of Mathematics and Physics of the Charles University](https://www.mff.cuni.cz). + +Computer science is my passion. While being mainly a software person — I love coding, testing, automating etc., I also enjoy hacking hardware from time to time. + +I believe in the power of community. I use a lot of open-source tools and I also try to give back as much as possible. I report and fix bugs, improve documentation, and answer questions in forums. + +I love educating myself as well as others. That's why I am an active scout leader and also one of the founding members of [Pátek](https://patek.cz). It is an incredible society of smart people with whom I proudly work on [PSC](https://gitlab.com/patek-devs/psc). diff --git a/content/blogroll/_index.md b/content/blogroll/_index.md new file mode 100644 index 0000000..8133376 --- /dev/null +++ b/content/blogroll/_index.md @@ -0,0 +1,14 @@ +--- +menu: main +title: Blogroll +weight: 4 +outputs: [ "HTML" ] +_build: + render: true +cascade: + _build: + render: false + list: true +--- + +This is a list of blogs I find interesting, so if you follow my blog, you might want to check these as well. diff --git a/content/blogroll/kev-quirk.md b/content/blogroll/kev-quirk.md new file mode 100644 index 0000000..d7b99a3 --- /dev/null +++ b/content/blogroll/kev-quirk.md @@ -0,0 +1,6 @@ +--- +title: "Kev Quirk's blog" +date: 2021-05-25T19:42:57+02:00 +blogUrl: "https://kevq.uk/blog" +--- +Kev Quirk's blog was one of the sources of inspiration for my one especially by encouraging to write a lot and not to fear imperfections. He is the author of [#100DaysToOffload](https://100daystooffload.com/). diff --git a/content/blogroll/tweag-io-nix.md b/content/blogroll/tweag-io-nix.md new file mode 100644 index 0000000..add6580 --- /dev/null +++ b/content/blogroll/tweag-io-nix.md @@ -0,0 +1,6 @@ +--- +title: "Tweag I/O - Nix blog" +date: 2021-05-25T20:19:39+02:00 +blogUrl: "https://www.tweag.io/blog/tags/nix" +--- +If you are, like me, interested in Nix(OS), this blog is a must. Tweag I/O is the employer of [Eelco Dolstra](https://edolstra.github.io) and therefore the blog contains many interesting and important posts (e.g. [Nix flakes introduction](https://www.tweag.io/blog/2020-05-25-flakes)). diff --git a/content/contact.md b/content/contact.md new file mode 100644 index 0000000..8beca41 --- /dev/null +++ b/content/contact.md @@ -0,0 +1,7 @@ +--- +title: Contact me +menu: main +weight: 3 +--- + +No matter whether it is a blog post comment, a question, or possibly a job offer :), I am looking forward to hearing from you. Just write me an email at [vojtech@vkane.cz](mailto:vojtech@vkane.cz), or contact me on Matrix [@vojta001:vkane.cz](https://matrix.to/#/@vojta001:vkane.cz). diff --git a/content/posts/_index.md b/content/posts/_index.md new file mode 100644 index 0000000..19ba0f4 --- /dev/null +++ b/content/posts/_index.md @@ -0,0 +1,5 @@ +--- +menu: main +title: Blog +weight: 1 +--- diff --git a/content/posts/intro.md b/content/posts/intro.md new file mode 100644 index 0000000..b4baafc --- /dev/null +++ b/content/posts/intro.md @@ -0,0 +1,8 @@ +--- +title: "What? A blog?" +date: 2021-05-25T14:17:27+02:00 +--- + +**Yes**! This is not a personal diary to be filled with fears and desires from the bottom of my heart, this is (or will be) a collection of technical notes, opinions, and dead ends I have discovered during my computer science adventures. + +The internet is already full of high-quality content, so why make another? Because the world is a complex place with so many variables and pitfalls, so while my posts might not be the most accurate or the most detailed, they might match the situation of the readers and therefore be helpful. I have read many articles showing the obvious, but without them, I would have never realized. diff --git a/content/projects/_index.md b/content/projects/_index.md new file mode 100644 index 0000000..4316bad --- /dev/null +++ b/content/projects/_index.md @@ -0,0 +1,14 @@ +--- +menu: main +title: My work +weight: 3 +outputs: [ "HTML" ] +_build: + render: true +cascade: + _build: + render: false + list: true +--- + +Here I present projects I've created or contributed to. Most of them are open-source and I would be very glad to merge your pull requests into them. diff --git a/content/projects/psc.md b/content/projects/psc.md new file mode 100644 index 0000000..39bef64 --- /dev/null +++ b/content/projects/psc.md @@ -0,0 +1,7 @@ +--- +title: Pátek Show Controller +date: 2021-06-01T16:35:44+02:00 +source: https://gitlab.com/patek-devs/psc +--- + +Pátek Show Controller, PSC, or P8 are names of my, and some other members' of Pátek, device capable of controlling lights, music, special effects and other stage equipment. Our main goal was to make it as user-friendly as possible while keeping powerful tunables for experts. We won [atthack 2019 in Brno](https://jaczech.org/novinky/posts/2019/december/att-hackathon-2019-technologie-budoucnosti) with the idea and have been working on it since then. The pace isn't very fast as we are all busy students, but the project is far from being dead. diff --git a/content/projects/tinyquiz.md b/content/projects/tinyquiz.md new file mode 100644 index 0000000..0c10f27 --- /dev/null +++ b/content/projects/tinyquiz.md @@ -0,0 +1,8 @@ +--- +title: Tinyquiz +date: 2021-06-01T16:16:59+02:00 +source: https://github.com/vojta001/tinyquiz +demo: https://tinyquiz.vkane.cz +--- + +Tinyquiz is an open-source online quiz platform I wrote as a semester programming project for [Programming I](https://is.cuni.cz/studium/predmety/index.php?do=predmet&kod=NPRX030) course. It is inpired by [Kahoot](https://kahoot.com), but does not require anyone to sign up (including the organizer) and can be easily self hosted. diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..4f09386 --- /dev/null +++ b/flake.lock @@ -0,0 +1,45 @@ +{ + "nodes": { + "hermit": { + "flake": false, + "locked": { + "lastModified": 1622561639, + "narHash": "sha256-Zw/+3EE6DAQ4NS1i22vadXwDEo6CnJkByy7IpdGuRYM=", + "owner": "vojta001", + "repo": "hermit", + "rev": "56843f347a642324970ba30d58f23c64e037bb7c", + "type": "github" + }, + "original": { + "owner": "vojta001", + "ref": "tmp", + "repo": "hermit", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1622059058, + "narHash": "sha256-t1/ZMtyxClVSfcV4Pt5C1YpkeJ/UwFF3oitLD7Ch/UA=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "84aa23742f6c72501f9cc209f29c438766f5352d", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "hermit": "hermit", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..5e41c06 --- /dev/null +++ b/flake.nix @@ -0,0 +1,32 @@ +{ + description = "vkane.cz"; + + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + + inputs.hermit = { + url = "github:vojta001/hermit/tmp"; + flake = false; + }; + + outputs = { self, nixpkgs, hermit }: + let + pkgs = import nixpkgs { system = "x86_64-linux"; }; + in + { + + website = pkgs.stdenv.mkDerivation { + pname = "vkane.cz"; + version = ""; + src = self; + preConfigure = '' + rm --dir --force themes/hermit + ln --symbolic '${hermit}' themes/hermit + ''; # TODO + buildPhase = '' + '${pkgs.hugo}'/bin/hugo --buildExpired --buildFuture --destination "$out" --minify --path-warnings --i18n-warnings + ''; + dontInstall = true; + }; + + }; +} diff --git a/layouts/blogroll/list.html b/layouts/blogroll/list.html new file mode 100644 index 0000000..d1bd7ce --- /dev/null +++ b/layouts/blogroll/list.html @@ -0,0 +1,24 @@ +{{ define "header" }} +{{ partialCached "header.html" . }} +{{ end }} + +{{ define "main" }} +
+

{{ .Title }}

+ {{- if .Content }} +
+ {{ .Content }} +
+ {{- end }} + {{- range .Pages }} + + {{- end }} +
+{{ end }} + +{{ define "footer" }} +{{ partialCached "footer.html" . }} +{{ end }} diff --git a/layouts/projects/list.html b/layouts/projects/list.html new file mode 100644 index 0000000..9ad739a --- /dev/null +++ b/layouts/projects/list.html @@ -0,0 +1,28 @@ +{{ define "header" }} +{{ partialCached "header.html" . }} +{{ end }} + +{{ define "main" }} +
+

{{ .Title }}

+ {{- if .Content }} +
+ {{ .Content }} +
+ {{- end }} + {{- range .Pages }} +
+

{{.Title}}

+
    + {{ with .Params.source }}
  • Source code
  • {{ end }} + {{ with .Params.demo }}
  • Demo
  • {{ end }} +
+

{{.Content}}

+
+ {{- end }} +
+{{ end }} + +{{ define "footer" }} +{{ partialCached "footer.html" . }} +{{ end }} diff --git a/themes/hermit b/themes/hermit new file mode 160000 index 0000000..56843f3 --- /dev/null +++ b/themes/hermit @@ -0,0 +1 @@ +Subproject commit 56843f347a642324970ba30d58f23c64e037bb7c