diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-24 05:57:50 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-24 05:57:50 +0200 |
| commit | b3dfbe8b70b870399dc335b8dcf028bb9a3955de (patch) | |
| tree | cd9b9aaa0445d4641356227866827f2d828a1517 | |
| parent | 660cebf99b4317856401acda8238bff75f82c4cc (diff) | |
| download | mitjafelicijan.com-b3dfbe8b70b870399dc335b8dcf028bb9a3955de.tar.gz | |
Added notes as a separate type of content and moved the content
| -rw-r--r-- | content/notes/catv-weechat-config.md | 19 | ||||
| -rw-r--r-- | content/notes/convert-mkv.md | 20 | ||||
| -rw-r--r-- | content/notes/download-youtube-videos.md | 23 | ||||
| -rw-r--r-- | content/notes/fix-plan9-bootloader.md | 18 | ||||
| -rw-r--r-- | content/notes/git-push-multiple-origins.md | 16 | ||||
| -rw-r--r-- | content/notes/install-plan9port-linux.md | 18 | ||||
| -rw-r--r-- | content/notes/mass-set-permission.md | 14 | ||||
| -rw-r--r-- | content/notes/mount-plan9-over-network.md | 21 | ||||
| -rw-r--r-- | content/notes/plan9-screenshot.md | 16 | ||||
| -rw-r--r-- | content/notes/preview-troff-man-pages.md | 18 | ||||
| -rw-r--r-- | content/notes/run-9front-in-qemu.md | 26 | ||||
| -rw-r--r-- | content/notes/write-iso-usb.md | 13 | ||||
| -rw-r--r-- | content/pages/pastebin.md | 135 | ||||
| -rw-r--r-- | static/general/index.css | 2 | ||||
| -rw-r--r-- | themes/simple/layouts/_default/notes.html | 29 | ||||
| -rw-r--r-- | themes/simple/layouts/partials/navigation.html | 2 | ||||
| -rw-r--r-- | themes/simple/static/css/tailwind.css | 16 |
17 files changed, 260 insertions, 146 deletions
diff --git a/content/notes/catv-weechat-config.md b/content/notes/catv-weechat-config.md new file mode 100644 index 0000000..8d85d22 --- /dev/null +++ b/content/notes/catv-weechat-config.md | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | --- | ||
| 2 | title: "#cat-v on weechat configuration" | ||
| 3 | url: catv-weechat-config.html | ||
| 4 | date: 2023-05-09 | ||
| 5 | type: notes | ||
| 6 | draft: false | ||
| 7 | --- | ||
| 8 | |||
| 9 | Set up weechat to connect to #cat-v on oftc. This applies to [weechat](https://weechat.org/) | ||
| 10 | but should be similar for other irc clients. | ||
| 11 | |||
| 12 | ```sh | ||
| 13 | # Install weechat and launch it and execute the following commands. | ||
| 14 | |||
| 15 | /server add oftc irc.oftc.net -tls | ||
| 16 | /set irc.server.oftc.autoconnect on | ||
| 17 | /set irc.server.oftc.autojoin "#cat-v" | ||
| 18 | /set irc.server.oftc.nicks "nick1,nick2,nick3" | ||
| 19 | ``` | ||
diff --git a/content/notes/convert-mkv.md b/content/notes/convert-mkv.md new file mode 100644 index 0000000..cca08d7 --- /dev/null +++ b/content/notes/convert-mkv.md | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | --- | ||
| 2 | title: Convert all MKV files into other formats | ||
| 3 | url: convert-mkv.html | ||
| 4 | date: 2023-05-14 | ||
| 5 | type: notes | ||
| 6 | draft: false | ||
| 7 | --- | ||
| 8 | |||
| 9 | You will need `ffmpeg` installed on your system. This will convert all MKV files | ||
| 10 | into WebM format. | ||
| 11 | |||
| 12 | ```sh | ||
| 13 | # Convert all MKV files into WebM format. | ||
| 14 | find ./ -name '*.mkv' -exec bash -c 'ffmpeg -i "$0" -vcodec libvpx -acodec libvorbis -cpu-used 5 -threads 8 "${0%%.mp4}.webm"' {} \; | ||
| 15 | ``` | ||
| 16 | |||
| 17 | ```sh | ||
| 18 | # Convert all MKV files into MP4 format. | ||
| 19 | find ./ -name '*.mkv' -exec bash -c 'ffmpeg -i "$0" c:a copy -c:v copy -cpu-used 5 -threads 8 "${0%%.mp4}.mp4"' {} \; | ||
| 20 | ``` | ||
diff --git a/content/notes/download-youtube-videos.md b/content/notes/download-youtube-videos.md new file mode 100644 index 0000000..dd3363d --- /dev/null +++ b/content/notes/download-youtube-videos.md | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | --- | ||
| 2 | title: Download list of YouTube files | ||
| 3 | url: download-youtube-videos.html | ||
| 4 | date: 2023-05-13 | ||
| 5 | type: notes | ||
| 6 | draft: false | ||
| 7 | --- | ||
| 8 | |||
| 9 | If you need to download a list of YouTube videos and don't want to download the | ||
| 10 | actual YouTube list (which `yt-dlp` supports), you can use the following method. | ||
| 11 | |||
| 12 | ```js | ||
| 13 | // Used to get list of raw URL's from YouTube's video tab'. | ||
| 14 | // Copy them into videos.txt. | ||
| 15 | document.querySelectorAll('#contents a.ytd-thumbnail.style-scope.ytd-thumbnail').forEach(el => console.log(el.href)) | ||
| 16 | ``` | ||
| 17 | |||
| 18 | Download and install https://github.com/yt-dlp/yt-dlp. | ||
| 19 | |||
| 20 | ```sh | ||
| 21 | # This will download all videos in videos.txt. | ||
| 22 | yt-dlp --batch-file videos.txt -N `nproc` -f webm | ||
| 23 | ``` | ||
diff --git a/content/notes/fix-plan9-bootloader.md b/content/notes/fix-plan9-bootloader.md new file mode 100644 index 0000000..f37ff0e --- /dev/null +++ b/content/notes/fix-plan9-bootloader.md | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | --- | ||
| 2 | title: Fix bootloader not being written in Plan9 | ||
| 3 | url: fix-plan9-bootloader.html | ||
| 4 | date: 2023-05-11 | ||
| 5 | type: notes | ||
| 6 | draft: false | ||
| 7 | --- | ||
| 8 | |||
| 9 | If the bootloader is not being written to a disk when installing 9front on real | ||
| 10 | harware try clearing first sector of the disk with the following command. | ||
| 11 | |||
| 12 | ```sh | ||
| 13 | dd if=/dev/zero of=/dev/sdX bs=512 count=1 | ||
| 14 | |||
| 15 | # If command above doesn't work try this one, wait couple of seconds and | ||
| 16 | # press delete key to stop the command. | ||
| 17 | cat </dev/zero >/dev/sd*/data | ||
| 18 | ``` | ||
diff --git a/content/notes/git-push-multiple-origins.md b/content/notes/git-push-multiple-origins.md new file mode 100644 index 0000000..7b12148 --- /dev/null +++ b/content/notes/git-push-multiple-origins.md | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | --- | ||
| 2 | title: Push to multiple origins at once in Git | ||
| 3 | url: git-push-multiple-origins.html | ||
| 4 | date: 2023-05-06 | ||
| 5 | type: notes | ||
| 6 | draft: false | ||
| 7 | --- | ||
| 8 | |||
| 9 | Sometimes you want to push to multiple origins at once. This is useful if you | ||
| 10 | have a mirror of your repository on another server. You can do this by adding | ||
| 11 | multiple push urls to your git config. After this you can push to all origins | ||
| 12 | at once by using `git push --all`. This is a shorthand for command above. | ||
| 13 | |||
| 14 | ```sh | ||
| 15 | git config --global alias.pushall '!sh -c "git remote | xargs -L1 git push --all"' | ||
| 16 | ``` | ||
diff --git a/content/notes/install-plan9port-linux.md b/content/notes/install-plan9port-linux.md new file mode 100644 index 0000000..6355287 --- /dev/null +++ b/content/notes/install-plan9port-linux.md | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | --- | ||
| 2 | title: Install Plan9port on Linux | ||
| 3 | url: install-plan9port-linux.html | ||
| 4 | date: 2023-05-12 | ||
| 5 | type: notes | ||
| 6 | draft: false | ||
| 7 | --- | ||
| 8 | |||
| 9 | Install Plan9port on Linux. This applies to [Plan9port](https://9fans.github.io/plan9port/). | ||
| 10 | This is a port of many Plan 9 programs to Unix-like operating systems. Useful for | ||
| 11 | programs like `9term` and `rc`. | ||
| 12 | |||
| 13 | ```sh | ||
| 14 | sudo apt-get install gcc libx11-dev libxt-dev libxext-dev libfontconfig1-dev | ||
| 15 | git clone https://github.com/9fans/plan9port $HOME/plan9 | ||
| 16 | cd $HOME/plan9/plan9port | ||
| 17 | ./INSTALL -r $HOME/plan9 | ||
| 18 | ``` | ||
diff --git a/content/notes/mass-set-permission.md b/content/notes/mass-set-permission.md new file mode 100644 index 0000000..20a4fab --- /dev/null +++ b/content/notes/mass-set-permission.md | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | --- | ||
| 2 | title: Change permissions of matching files recursively | ||
| 3 | url: mass-set-permission.html | ||
| 4 | date: 2023-05-16 | ||
| 5 | type: notes | ||
| 6 | draft: false | ||
| 7 | --- | ||
| 8 | |||
| 9 | Replace `*.xml` with your pattern. This will remove executable bit from all | ||
| 10 | files matching the pattern. Change `+` to `-` to add executable bit. | ||
| 11 | |||
| 12 | ```sh | ||
| 13 | find . -type f -name "*.xml" -exec chmod -x {} + | ||
| 14 | ``` | ||
diff --git a/content/notes/mount-plan9-over-network.md b/content/notes/mount-plan9-over-network.md new file mode 100644 index 0000000..3572b99 --- /dev/null +++ b/content/notes/mount-plan9-over-network.md | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | --- | ||
| 2 | title: Mount Plan9 over network | ||
| 3 | url: mount-plan9-over-network.html | ||
| 4 | date: 2023-05-07 | ||
| 5 | type: notes | ||
| 6 | draft: false | ||
| 7 | --- | ||
| 8 | |||
| 9 | - First install libfuse with sudo apt install libfuse-dev. | ||
| 10 | - Then clone https://github.com/ftrvxmtrx/9pfs and compile it with make. | ||
| 11 | - Copy 9pfs to your path. | ||
| 12 | |||
| 13 | ```sh | ||
| 14 | # On Plan9 side | ||
| 15 | ip/ipconfig # enables network | ||
| 16 | aux/listen1 -tv tcp!*!9999 /bin/exportfs -r tmp # export tmp folder | ||
| 17 | |||
| 18 | # On Linux side | ||
| 19 | 9pfs 172.18.0.1 -p 9999 local_folder # mount | ||
| 20 | umount local_folder # unmount | ||
| 21 | ``` | ||
diff --git a/content/notes/plan9-screenshot.md b/content/notes/plan9-screenshot.md new file mode 100644 index 0000000..88b7bd9 --- /dev/null +++ b/content/notes/plan9-screenshot.md | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | --- | ||
| 2 | title: Take a screenshot in Plan9 | ||
| 3 | url: plan9-screenshot.html | ||
| 4 | date: 2023-05-10 | ||
| 5 | type: notes | ||
| 6 | draft: false | ||
| 7 | --- | ||
| 8 | |||
| 9 | Take a screenshot in Plan9. This applies to [Plan9](https://9p.io/plan9/) and | ||
| 10 | [9front](https://9front.org/). This will take a screenshot of the screen and | ||
| 11 | output it to `/dev/screen`. You can then use `topng` to convert it to a png | ||
| 12 | image. | ||
| 13 | |||
| 14 | ```sh | ||
| 15 | cat /dev/screen | topng > screen.png | ||
| 16 | ``` | ||
diff --git a/content/notes/preview-troff-man-pages.md b/content/notes/preview-troff-man-pages.md new file mode 100644 index 0000000..6ff1124 --- /dev/null +++ b/content/notes/preview-troff-man-pages.md | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | --- | ||
| 2 | title: Previews how man page written in Troff will look like | ||
| 3 | url: preview-troff-man-pages.html | ||
| 4 | date: 2023-05-15 | ||
| 5 | type: notes | ||
| 6 | draft: false | ||
| 7 | --- | ||
| 8 | |||
| 9 | Troff is used to write man pages and it is difficult to read it so this will | ||
| 10 | preview how it will look like when it is rendered. | ||
| 11 | |||
| 12 | ```sh | ||
| 13 | # On Linux system. | ||
| 14 | groff -man -Tascii filename | ||
| 15 | |||
| 16 | # On Plan9 system. | ||
| 17 | man 1 filename | ||
| 18 | ``` | ||
diff --git a/content/notes/run-9front-in-qemu.md b/content/notes/run-9front-in-qemu.md new file mode 100644 index 0000000..1e6820d --- /dev/null +++ b/content/notes/run-9front-in-qemu.md | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | --- | ||
| 2 | title: Run 9front in Qemu | ||
| 3 | url: run-9front-in-qemu.html | ||
| 4 | date: 2023-05-05 | ||
| 5 | type: notes | ||
| 6 | draft: false | ||
| 7 | --- | ||
| 8 | |||
| 9 | Run 9front in Qemu. This applies to [Plan9](https://9p.io/plan9/) and | ||
| 10 | [9front](https://9front.org/). | ||
| 11 | |||
| 12 | Download from here http://9front.org/iso/. | ||
| 13 | |||
| 14 | ```sh | ||
| 15 | # Create a qcow2 image. | ||
| 16 | qemu-img create -f qcow2 $HOME/VM/9front.qcow2.img 30G | ||
| 17 | |||
| 18 | # Run the VM. | ||
| 19 | qemu-system-x86_64 -cpu host -enable-kvm -m 1024 \ | ||
| 20 | -net nic,model=virtio,macaddr=52:54:00:00:EE:03 -net user \ | ||
| 21 | -device virtio-scsi-pci,id=scsi \ | ||
| 22 | -drive if=none,id=vd0,file=$HOME/VM/9front.qcow2.img \ | ||
| 23 | -device scsi-hd,drive=vd0 \ | ||
| 24 | -drive if=none,id=vd1,file=$HOME/VM/ISO/9front.386.iso \ | ||
| 25 | -device scsi-cd,drive=vd1,bootindex=0 | ||
| 26 | ``` | ||
diff --git a/content/notes/write-iso-usb.md b/content/notes/write-iso-usb.md new file mode 100644 index 0000000..04b0c81 --- /dev/null +++ b/content/notes/write-iso-usb.md | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | --- | ||
| 2 | title: Write ISO to USB Key | ||
| 3 | url: write-iso-usb.html | ||
| 4 | date: 2023-05-08 | ||
| 5 | type: notes | ||
| 6 | draft: false | ||
| 7 | --- | ||
| 8 | |||
| 9 | Write ISO to USB key. Nothing fancy here. | ||
| 10 | |||
| 11 | ```sh | ||
| 12 | sudo dd if=iso_file.iso of=/dev/sdX bs=4M status=progress conv=fdatasync | ||
| 13 | ``` | ||
diff --git a/content/pages/pastebin.md b/content/pages/pastebin.md deleted file mode 100644 index 422b417..0000000 --- a/content/pages/pastebin.md +++ /dev/null | |||
| @@ -1,135 +0,0 @@ | |||
| 1 | --- | ||
| 2 | title: Pastebin | ||
| 3 | date: 2023-05-19 | ||
| 4 | url: pastebin.html | ||
| 5 | draft: false | ||
| 6 | --- | ||
| 7 | |||
| 8 | *No additional explanation provided here. Use blog for more detailed stuff.* | ||
| 9 | |||
| 10 | **▒ Change permissions of all files matching a pattern recursively** | ||
| 11 | |||
| 12 | ```sh | ||
| 13 | find . -type f -name "*.xml" -exec chmod -x {} + | ||
| 14 | ``` | ||
| 15 | |||
| 16 | **▒ Previews how man page written in Troff will look like** | ||
| 17 | |||
| 18 | ```sh | ||
| 19 | # On Linux system. | ||
| 20 | groff -man -Tascii filename | ||
| 21 | |||
| 22 | # On Plan9 system. | ||
| 23 | man 1 filename | ||
| 24 | ``` | ||
| 25 | |||
| 26 | **▒ Convert all MKV files into WebM format** | ||
| 27 | |||
| 28 | ```sh | ||
| 29 | find ./ -name '*.mkv' -exec bash -c 'ffmpeg -i "$0" -vcodec libvpx -acodec libvorbis -cpu-used 5 -threads 8 "${0%%.mp4}.webm"' {} \; | ||
| 30 | ``` | ||
| 31 | |||
| 32 | **▒ Convert all MKV files into MP4 format** | ||
| 33 | |||
| 34 | ```sh | ||
| 35 | find ./ -name '*.mkv' -exec bash -c 'ffmpeg -i "$0" c:a copy -c:v copy -cpu-used 5 -threads 8 "${0%%.mp4}.mp4"' {} \; | ||
| 36 | ``` | ||
| 37 | |||
| 38 | **▒ Download list of YouTube files** | ||
| 39 | |||
| 40 | ```js | ||
| 41 | // Used to get list of raw URL's from YouTube's video tab'. | ||
| 42 | // Copy them into videos.txt. | ||
| 43 | document.querySelectorAll('#contents a.ytd-thumbnail.style-scope.ytd-thumbnail').forEach(el => console.log(el.href)) | ||
| 44 | ``` | ||
| 45 | |||
| 46 | Download and install https://github.com/yt-dlp/yt-dlp. | ||
| 47 | |||
| 48 | ```sh | ||
| 49 | yt-dlp --batch-file videos.txt -N `nproc` -f webm | ||
| 50 | ``` | ||
| 51 | |||
| 52 | **▒ Install Plan9port on Linux** | ||
| 53 | |||
| 54 | ```sh | ||
| 55 | sudo apt-get install gcc libx11-dev libxt-dev libxext-dev libfontconfig1-dev | ||
| 56 | git clone https://github.com/9fans/plan9port $HOME/plan9 | ||
| 57 | cd $HOME/plan9/plan9port | ||
| 58 | ./INSTALL -r $HOME/plan9 | ||
| 59 | ``` | ||
| 60 | |||
| 61 | **▒ Fix bootloader not being written in Plan9** | ||
| 62 | |||
| 63 | If the bootloader is not being written to a disk when installing 9front on | ||
| 64 | real harware try clearing first sector of the disk with the following command. | ||
| 65 | |||
| 66 | ```sh | ||
| 67 | dd if=/dev/zero of=/dev/sdX bs=512 count=1 | ||
| 68 | |||
| 69 | # If command above doesn't work try this one, wait couple of seconds and | ||
| 70 | # press delete key to stop the command. | ||
| 71 | cat </dev/zero >/dev/sd*/data | ||
| 72 | ``` | ||
| 73 | |||
| 74 | **▒ Take a screenshot in Plan9** | ||
| 75 | |||
| 76 | ```sh | ||
| 77 | cat /dev/screen | topng > screen.png | ||
| 78 | ``` | ||
| 79 | |||
| 80 | **▒ #cat-v on weechat configuration** | ||
| 81 | |||
| 82 | ```sh | ||
| 83 | # Install weechat and launch it and execute the following commands. | ||
| 84 | |||
| 85 | /server add oftc irc.oftc.net -tls | ||
| 86 | /set irc.server.oftc.autoconnect on | ||
| 87 | /set irc.server.oftc.autojoin "#cat-v" | ||
| 88 | /set irc.server.oftc.nicks "nick1,nick2,nick3" | ||
| 89 | ``` | ||
| 90 | |||
| 91 | **▒ Write ISO to USB Key** | ||
| 92 | |||
| 93 | ```sh | ||
| 94 | sudo dd if=iso_file.iso of=/dev/sdX bs=4M status=progress conv=fdatasync | ||
| 95 | ``` | ||
| 96 | |||
| 97 | **▒ Mount Plan9 over network** | ||
| 98 | |||
| 99 | - First install `libfuse` with `sudo apt install libfuse-dev`. | ||
| 100 | - Then clone https://github.com/ftrvxmtrx/9pfs and compile it with `make`. | ||
| 101 | - Copy `9pfs` to your path. | ||
| 102 | |||
| 103 | ```sh | ||
| 104 | # On Plan9 side | ||
| 105 | ip/ipconfig # enables network | ||
| 106 | aux/listen1 -tv tcp!*!9999 /bin/exportfs -r tmp # export tmp folder | ||
| 107 | |||
| 108 | # On Linux side | ||
| 109 | 9pfs 172.18.0.1 -p 9999 local_folder # mount | ||
| 110 | umount local_folder # unmount | ||
| 111 | ``` | ||
| 112 | |||
| 113 | **▒ Push to multiple origins at once in Git** | ||
| 114 | |||
| 115 | ```sh | ||
| 116 | git config --global alias.pushall '!sh -c "git remote | xargs -L1 git push --all"' | ||
| 117 | ``` | ||
| 118 | |||
| 119 | **▒ Run 9front in Qemu** | ||
| 120 | |||
| 121 | Download from here http://9front.org/iso/. | ||
| 122 | |||
| 123 | ```sh | ||
| 124 | # Create a qcow2 image. | ||
| 125 | qemu-img create -f qcow2 $HOME/VM/9front.qcow2.img 30G | ||
| 126 | |||
| 127 | # Run the VM. | ||
| 128 | qemu-system-x86_64 -cpu host -enable-kvm -m 1024 \ | ||
| 129 | -net nic,model=virtio,macaddr=52:54:00:00:EE:03 -net user \ | ||
| 130 | -device virtio-scsi-pci,id=scsi \ | ||
| 131 | -drive if=none,id=vd0,file=$HOME/VM/9front.qcow2.img \ | ||
| 132 | -device scsi-hd,drive=vd0 \ | ||
| 133 | -drive if=none,id=vd1,file=$HOME/VM/ISO/9front.386.iso \ | ||
| 134 | -device scsi-cd,drive=vd1,bootindex=0 | ||
| 135 | ``` | ||
diff --git a/static/general/index.css b/static/general/index.css index d8d97e8..8897086 100644 --- a/static/general/index.css +++ b/static/general/index.css | |||
| @@ -1 +1 @@ | |||
| /*! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.mx-auto{margin-left:auto;margin-right:auto}.my-12{margin-top:3rem;margin-bottom:3rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-6{margin-left:1.5rem}.mt-4{margin-top:1rem}.block{display:block}.flex{display:flex}.contents{display:contents}.hidden{display:none}.h-full{height:100%}.w-full{width:100%}.flex-grow{flex-grow:1}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-1{gap:.25rem}.rounded{border-radius:.25rem}.border-0{border-width:0}.border-2{border-width:2px}.border-gray-100{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity))}.bg-orange-600{--tw-bg-opacity:1;background-color:rgb(234 88 12/var(--tw-bg-opacity))}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-16{padding-bottom:4rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-relaxed{line-height:1.625}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.decoration-wavy{text-decoration-style:wavy}.decoration-1{text-decoration-thickness:1px}.underline-offset-2{text-underline-offset:2px}*{cursor:url(/general/9front-cursor.png),auto}.container-blog{max-width:700px}::selection{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}::-moz-selection{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}a:hover{color:blue}article.single h2{margin-bottom:2rem;margin-top:2rem;font-size:1.5rem;line-height:2rem;font-weight:700}article.single h3{font-size:1.25rem}article.single h3,article.single h4{margin-bottom:1rem;margin-top:2rem;line-height:1.75rem;font-weight:700}article.single h4{font-size:1.125rem}article.single p{margin-bottom:1.25rem}article.single a{text-decoration-line:underline;text-decoration-style:wavy;text-decoration-thickness:1px;text-underline-offset:2px}article.single a:hover{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}article.single .content blockquote{background-image:url(/general/alert-light.svg);background-size:30px 30px;background-repeat:no-repeat;background-position:0 5px;margin-top:2rem;margin-bottom:2rem;padding-left:3rem}article.single .content blockquote p{margin-bottom:.5rem}article.single img{margin-top:2rem;margin-bottom:2rem;width:100%;border-radius:.25rem;--tw-bg-opacity:1!important;background-color:rgb(249 250 251/var(--tw-bg-opacity))!important;image-rendering:crisp-edges;image-rendering:-webkit-optimize-contrast}article.single video{width:100%;border-radius:.25rem;--tw-bg-opacity:1!important;background-color:rgb(249 250 251/var(--tw-bg-opacity))!important}article.single audio{margin-bottom:1.5rem;width:100%}article.single code{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity));padding:.25rem .5rem;font-weight:500}article.single code,article.single pre{border-radius:.25rem;font-size:.75rem;line-height:1rem}article.single pre{margin-bottom:1.5rem;overflow-x:auto;--tw-bg-opacity:1!important;background-color:rgb(249 250 251/var(--tw-bg-opacity))!important;padding:1rem}article.single pre code{background:unset;padding:unset;line-height:1.625}article.single table{margin-bottom:1rem;width:100%;border-collapse:collapse;border-width:1px;--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity))}article.single table td,article.single table th,article.single table tr{border-width:1px;padding:.5rem 1rem;text-align:left}article.single .content ul{margin-bottom:1.5rem;list-style-type:disc;padding-left:1.5rem}@media (min-width:768px){article.single .content ul{padding-left:2.5rem}}article.single .content ol{margin-bottom:1.5rem;list-style-type:decimal;padding-left:2rem}@media (min-width:768px){article.single .content ol{padding-left:2.5rem}}article.single #TableOfContents{margin-bottom:2.5rem;margin-left:1rem;line-height:1.625}article.single #TableOfContents ul{list-style-type:decimal;padding-left:1rem}@media (min-width:768px){article.single #TableOfContents ul{padding-left:1.5rem}}article.single .katex-display{margin-top:2.5rem;margin-bottom:2.5rem}article.single .ll-iframe{border-radius:.25rem;--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}article.single .ll-iframe:before{display:flex;height:100%}@keyframes pulse{50%{opacity:.5}}article.single .ll-iframe:before{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;cursor:pointer;align-items:center;justify-content:center;border-radius:.25rem;border-width:2px;--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity));font-size:.875rem;line-height:1.25rem;font-weight:500;content:"Click here to load resource…"}article.single .ll-iframe.empty:before{content:none}.hover\:bg-yellow-100:hover{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}@media (min-width:768px){.md\:mb-0{margin-bottom:0}.md\:block{display:block}.md\:flex-row{flex-direction:row}.md\:p-0{padding:0}} \ No newline at end of file | /*! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.mx-auto{margin-left:auto;margin-right:auto}.my-12{margin-top:3rem;margin-bottom:3rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-6{margin-left:1.5rem}.mt-4{margin-top:1rem}.block{display:block}.flex{display:flex}.contents{display:contents}.hidden{display:none}.h-full{height:100%}.w-full{width:100%}.flex-grow{flex-grow:1}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-1{gap:.25rem}.rounded{border-radius:.25rem}.border-0{border-width:0}.border-2{border-width:2px}.border-b-2{border-bottom-width:2px}.border-b-4{border-bottom-width:4px}.border-dashed{border-style:dashed}.border-gray-100{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity))}.bg-orange-600{--tw-bg-opacity:1;background-color:rgb(234 88 12/var(--tw-bg-opacity))}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-16{padding-bottom:4rem}.pb-10{padding-bottom:2.5rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-relaxed{line-height:1.625}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.decoration-wavy{text-decoration-style:wavy}.decoration-1{text-decoration-thickness:1px}.underline-offset-2{text-underline-offset:2px}*{cursor:url(/general/9front-cursor.png),auto}.container-blog{max-width:700px}::selection{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}::-moz-selection{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}a:hover{color:blue}article.single h2{margin-bottom:2rem}article.single h2,article.single h2.notes-heading{margin-top:2rem;font-size:1.5rem;line-height:2rem;font-weight:700;line-height:1.25}article.single h2.notes-heading{margin-bottom:1rem}article.single h3{font-size:1.25rem}article.single h3,article.single h4{margin-bottom:1rem;margin-top:2rem;line-height:1.75rem;font-weight:700;line-height:1.25}article.single h4{font-size:1.125rem}article.single p{margin-bottom:1.25rem}article.single a{text-decoration-line:underline;text-decoration-style:wavy;text-decoration-thickness:1px;text-underline-offset:2px}article.single a:hover{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}article.single .content blockquote{background-image:url(/general/alert-light.svg);background-size:30px 30px;background-repeat:no-repeat;background-position:0 5px;margin-top:2rem;margin-bottom:2rem;padding-left:3rem}article.single .content blockquote p{margin-bottom:.5rem}article.single img{margin-top:2rem;margin-bottom:2rem;image-rendering:crisp-edges;image-rendering:-webkit-optimize-contrast}article.single img,article.single video{width:100%;border-radius:.25rem;--tw-bg-opacity:1!important;background-color:rgb(249 250 251/var(--tw-bg-opacity))!important}article.single audio{margin-bottom:1.5rem;width:100%}article.single code{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity));padding:.25rem .5rem;font-weight:500}article.single code,article.single pre{border-radius:.25rem;font-size:.75rem;line-height:1rem}article.single pre{margin-bottom:1.5rem;overflow-x:auto;--tw-bg-opacity:1!important;background-color:rgb(249 250 251/var(--tw-bg-opacity))!important;padding:1rem}article.single pre code{background:unset;padding:unset;line-height:1.625}article.single table{margin-bottom:1rem;width:100%;border-collapse:collapse;border-width:1px;--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity))}article.single table td,article.single table th,article.single table tr{border-width:1px;padding:.5rem 1rem;text-align:left}article.single .content ul{margin-bottom:1.5rem;list-style-type:disc;padding-left:1.5rem}@media (min-width:768px){article.single .content ul{padding-left:2.5rem}}article.single .content ol{margin-bottom:1.5rem;list-style-type:decimal;padding-left:2rem}@media (min-width:768px){article.single .content ol{padding-left:2.5rem}}article.single #TableOfContents{margin-bottom:2.5rem;margin-left:1rem;line-height:1.625}article.single #TableOfContents ul{list-style-type:decimal;padding-left:1rem}@media (min-width:768px){article.single #TableOfContents ul{padding-left:1.5rem}}article.single .katex-display{margin-top:2.5rem;margin-bottom:2.5rem}article.single .ll-iframe{border-radius:.25rem;--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}article.single .ll-iframe:before{display:flex;height:100%}@keyframes pulse{50%{opacity:.5}}article.single .ll-iframe:before{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;cursor:pointer;align-items:center;justify-content:center;border-radius:.25rem;border-width:2px;--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity));font-size:.875rem;line-height:1.25rem;font-weight:500;content:"Click here to load resource…"}article.single .ll-iframe.empty:before{content:none}.last\:border-0:last-child{border-width:0}.hover\:bg-yellow-100:hover{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}@media (min-width:768px){.md\:mb-0{margin-bottom:0}.md\:block{display:block}.md\:flex-row{flex-direction:row}.md\:p-0{padding:0}} \ No newline at end of file | ||
diff --git a/themes/simple/layouts/_default/notes.html b/themes/simple/layouts/_default/notes.html new file mode 100644 index 0000000..b3a2f44 --- /dev/null +++ b/themes/simple/layouts/_default/notes.html | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | {{ define "main" }} | ||
| 2 | <main role="main" class="container-blog mx-auto px-6 md:p-0"> | ||
| 3 | |||
| 4 | <section class="mb-6"> | ||
| 5 | <h1 class="text-2xl font-bold">Notes, notes and notes</h1> | ||
| 6 | <p class="text-gray-600 italic">Notes about things I learn, things I do, things I want to remember, but never do.</p> | ||
| 7 | </section> | ||
| 8 | |||
| 9 | <hr class="border-2 border-gray-100 mb-12"> | ||
| 10 | |||
| 11 | <!-- List of all notes --> | ||
| 12 | <nav itemscope itemtype="https://schema.org/SiteNavigationElement" class="mb-12" role="feed"> | ||
| 13 | <meta itemprop="name" content="Article list"> | ||
| 14 | <section> | ||
| 15 | {{ range (where .Site.RegularPages "Section" "notes") }} | ||
| 16 | <div class="mb-10"> | ||
| 17 | <article class="mb-5 single" itemscope itemtype="http://schema.org/Article"> | ||
| 18 | <h2 class="text-xl font-medium notes-heading">{{.Title}}</h2> | ||
| 19 | <div class="content"> | ||
| 20 | {{ .Content | safeHTML }} | ||
| 21 | </div> | ||
| 22 | </article> | ||
| 23 | </div> | ||
| 24 | {{ end }} | ||
| 25 | </section> | ||
| 26 | </nav> | ||
| 27 | |||
| 28 | </main> | ||
| 29 | {{ end }} | ||
diff --git a/themes/simple/layouts/partials/navigation.html b/themes/simple/layouts/partials/navigation.html index adabc9a..c4d76f0 100644 --- a/themes/simple/layouts/partials/navigation.html +++ b/themes/simple/layouts/partials/navigation.html | |||
| @@ -7,10 +7,10 @@ | |||
| 7 | <nav itemscope itemtype="http://schema.org/SiteNavigationElement" class="flex items-center gap-1" role="toolbar"> | 7 | <nav itemscope itemtype="http://schema.org/SiteNavigationElement" class="flex items-center gap-1" role="toolbar"> |
| 8 | <meta itemprop="name" content="Main Menu"> | 8 | <meta itemprop="name" content="Main Menu"> |
| 9 | 9 | ||
| 10 | <a href="/notes.html" class="font-medium px-2 hover:bg-yellow-100">Notes</a> | ||
| 10 | <a href="https://telegram.me/mitjafelicijan" target="_blank" rel="noopener nofollow" itemprop="url" class="font-medium px-2 hover:bg-yellow-100">Telegram</a> | 11 | <a href="https://telegram.me/mitjafelicijan" target="_blank" rel="noopener nofollow" itemprop="url" class="font-medium px-2 hover:bg-yellow-100">Telegram</a> |
| 11 | <a href="https://git.mitjafelicijan.com" target="_blank" rel="noopener nofollow" itemprop="url" class="font-medium px-2 hover:bg-yellow-100">Git</a> | 12 | <a href="https://git.mitjafelicijan.com" target="_blank" rel="noopener nofollow" itemprop="url" class="font-medium px-2 hover:bg-yellow-100">Git</a> |
| 12 | <a href="https://files.mitjafelicijan.com" target="_blank" rel="noopener nofollow" itemprop="url" class="font-medium px-2 hover:bg-yellow-100">Files</a> | 13 | <a href="https://files.mitjafelicijan.com" target="_blank" rel="noopener nofollow" itemprop="url" class="font-medium px-2 hover:bg-yellow-100">Files</a> |
| 13 | <a href="/pastebin.html" class="font-medium px-2 hover:bg-yellow-100">Pastebin</a> | ||
| 14 | <a href="/curriculum-vitae.html" class="font-medium px-2 hover:bg-yellow-100">CV</a> | 14 | <a href="/curriculum-vitae.html" class="font-medium px-2 hover:bg-yellow-100">CV</a> |
| 15 | <a href="/index.xml" itemprop="url" class="font-medium px-2 hover:bg-yellow-100 hidden md:block">RSS</a> | 15 | <a href="/index.xml" itemprop="url" class="font-medium px-2 hover:bg-yellow-100 hidden md:block">RSS</a> |
| 16 | </nav> | 16 | </nav> |
diff --git a/themes/simple/static/css/tailwind.css b/themes/simple/static/css/tailwind.css index fa64f9c..0753513 100644 --- a/themes/simple/static/css/tailwind.css +++ b/themes/simple/static/css/tailwind.css | |||
| @@ -24,15 +24,19 @@ a:hover { | |||
| 24 | 24 | ||
| 25 | /* Headings */ | 25 | /* Headings */ |
| 26 | article.single h2 { | 26 | article.single h2 { |
| 27 | @apply text-2xl font-bold mb-8 mt-8; | 27 | @apply text-2xl font-bold mb-8 mt-8 leading-tight; |
| 28 | } | ||
| 29 | |||
| 30 | article.single h2.notes-heading { | ||
| 31 | @apply text-2xl font-bold mb-4 mt-8 leading-tight; | ||
| 28 | } | 32 | } |
| 29 | 33 | ||
| 30 | article.single h3 { | 34 | article.single h3 { |
| 31 | @apply text-xl font-bold mb-4 mt-8; | 35 | @apply text-xl font-bold mb-4 mt-8 leading-tight; |
| 32 | } | 36 | } |
| 33 | 37 | ||
| 34 | article.single h4 { | 38 | article.single h4 { |
| 35 | @apply text-lg font-bold mb-4 mt-8; | 39 | @apply text-lg font-bold mb-4 mt-8 leading-tight; |
| 36 | } | 40 | } |
| 37 | 41 | ||
| 38 | /* Paragraph */ | 42 | /* Paragraph */ |
| @@ -66,12 +70,6 @@ article.single img { | |||
| 66 | image-rendering: -webkit-optimize-contrast; | 70 | image-rendering: -webkit-optimize-contrast; |
| 67 | } | 71 | } |
| 68 | 72 | ||
| 69 | article.single img[src*="?style=bigimg"] {} | ||
| 70 | |||
| 71 | @media (max-width: 900px) { | ||
| 72 | article.single img[src*="?style=bigimg"] {} | ||
| 73 | } | ||
| 74 | |||
| 75 | article.single video { | 73 | article.single video { |
| 76 | @apply rounded w-full !bg-gray-50; | 74 | @apply rounded w-full !bg-gray-50; |
| 77 | } | 75 | } |
