diff --git a/config.toml b/config.toml index 89bb9a2..19a3c5d 100644 --- a/config.toml +++ b/config.toml @@ -32,7 +32,7 @@ paginate = 5 # set post to show the last updated # If you use git, you can set `enableGitInfo` to `true` and then post will automatically get the last updated - showLastUpdated = false + showLastUpdated = true # set a custom favicon (default is a `themeColor` square) # favicon = "favicon.ico" @@ -48,7 +48,7 @@ paginate = 5 # whether to show a table of contents # can be overridden in a page's front-matter - # Toc = false # default + Toc = true # default # set title for the table of contents # can be overridden in a page's front-matter @@ -59,14 +59,14 @@ paginate = 5 # set Twitter handles for Twitter cards # see https://developer.twitter.com/en/docs/tweets/optimize-with-cards/guides/getting-started#card-and-content-attribution # do not include @ - creator = "" + creator = "Gasper212" site = "" [languages] [languages.en] languageName = "English" - title = "Terminal" - subtitle = "A simple, retro theme for Hugo" + title = "Welcome!" + subtitle = "Hello" owner = "" keywords = "" copyright = "" @@ -81,3 +81,9 @@ paginate = 5 [languages.en.params.logo] logoText = "blog.spanskiduh.xyz" logoHomeLink = "/" + + [languages.en.menu] + [[languages.en.menu.main]] + identifier = "about" + name = "About" + url = "/about" diff --git a/content/about.md b/content/about.md new file mode 100644 index 0000000..e71c97e --- /dev/null +++ b/content/about.md @@ -0,0 +1,15 @@ ++++ +title = "About" +date = "2022-12-24" +author = "spanskiduh" ++++ + +# Hi :) + +I am a compsci student at university of Ljubljana. + +This is a simple blog, with all the linux tools I have used throught my life +journey. It varies from CTF tools to basic linux sysadmin explanations and usage +of terminal commands. + +p.s. search feature is still in the making ;) diff --git a/content/posts/Clipboard.md b/content/posts/Clipboard.md index adca31c..6a6c712 100644 --- a/content/posts/Clipboard.md +++ b/content/posts/Clipboard.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="Clipboard" -description="click to read Clipboard" +description="click to read about Clipboard" +++ diff --git a/content/posts/Compression.md b/content/posts/Compression.md index b963f1a..0ba0774 100644 --- a/content/posts/Compression.md +++ b/content/posts/Compression.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-12-21" author="spanskiduh" title="Compression" -description="click to read Compression" +description="click to read about Compression" +++ diff --git a/content/posts/Curl.md b/content/posts/Curl.md index 7f68027..2b33b91 100644 --- a/content/posts/Curl.md +++ b/content/posts/Curl.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="Curl" -description="click to read Curl" +description="click to read about Curl" +++ diff --git a/content/posts/Dig.md b/content/posts/Dig.md index 3b637a2..7cc3cce 100644 --- a/content/posts/Dig.md +++ b/content/posts/Dig.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="Dig" -description="click to read Dig" +description="click to read about Dig" +++ diff --git a/content/posts/Find.md b/content/posts/Find.md index 5b43549..307029c 100644 --- a/content/posts/Find.md +++ b/content/posts/Find.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="Find" -description="click to read Find" +description="click to read about Find" +++ diff --git a/content/posts/GIT.md b/content/posts/GIT.md index c876d4d..a3da937 100644 --- a/content/posts/GIT.md +++ b/content/posts/GIT.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-12-21" author="spanskiduh" title="GIT" -description="click to read GIT" +description="click to read about GIT" +++ diff --git a/content/posts/Locate.md b/content/posts/Locate.md index 6e9bf3b..5e0db30 100644 --- a/content/posts/Locate.md +++ b/content/posts/Locate.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="Locate" -description="click to read Locate" +description="click to read about Locate" +++ diff --git a/content/posts/MPI.md b/content/posts/MPI.md index 73a52aa..0a6e48e 100644 --- a/content/posts/MPI.md +++ b/content/posts/MPI.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-12-01" author="spanskiduh" title="MPI" -description="click to read MPI" +description="click to read about MPI" +++ # MPI diff --git a/content/posts/Networking.md b/content/posts/Networking.md index b8e5a43..1ad1a04 100644 --- a/content/posts/Networking.md +++ b/content/posts/Networking.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-12-21" author="spanskiduh" title="Networking" -description="click to read Networking" +description="click to read about Networking" +++ diff --git a/content/posts/SSH.md b/content/posts/SSH.md index 00d5d4d..e438f0f 100644 --- a/content/posts/SSH.md +++ b/content/posts/SSH.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="SSH" -description="click to read SSH" +description="click to read about SSH" +++ diff --git a/content/posts/Tracks.md b/content/posts/Tracks.md index d01abeb..e891069 100644 --- a/content/posts/Tracks.md +++ b/content/posts/Tracks.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="Tracks" -description="click to read Tracks" +description="click to read about Tracks" +++ diff --git a/content/posts/VFS.md b/content/posts/VFS.md index 9983f5f..0a9c184 100644 --- a/content/posts/VFS.md +++ b/content/posts/VFS.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="VFS" -description="click to read VFS" +description="click to read about VFS" +++ # VFS diff --git a/content/posts/VIM.md b/content/posts/VIM.md index 4464eba..93d46f0 100644 --- a/content/posts/VIM.md +++ b/content/posts/VIM.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="VIM" -description="click to read VIM" +description="click to read about VIM" +++ diff --git a/content/posts/adress_space.md b/content/posts/adress_space.md index d565674..5ffc7a8 100644 --- a/content/posts/adress_space.md +++ b/content/posts/adress_space.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="adress_space" -description="click to read adress_space" +description="click to read about adress_space" +++ # Adress space diff --git a/content/posts/ansible.md b/content/posts/ansible.md index 73df3bb..75c7432 100644 --- a/content/posts/ansible.md +++ b/content/posts/ansible.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="ansible" -description="click to read ansible" +description="click to read about ansible" +++ # Ansible diff --git a/content/posts/bash.md b/content/posts/bash.md index 97a3b26..36057e2 100644 --- a/content/posts/bash.md +++ b/content/posts/bash.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="bash" -description="click to read bash" +description="click to read about bash" +++ # Bash diff --git a/content/posts/binary-patching.md b/content/posts/binary-patching.md index b772054..781e7db 100644 --- a/content/posts/binary-patching.md +++ b/content/posts/binary-patching.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="binary-patching" -description="click to read binary-patching" +description="click to read about binary-patching" +++ diff --git a/content/posts/binary_vs_text_files.md b/content/posts/binary_vs_text_files.md index 344941c..4db6ce8 100644 --- a/content/posts/binary_vs_text_files.md +++ b/content/posts/binary_vs_text_files.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="binary_vs_text_files" -description="click to read binary_vs_text_files" +description="click to read about binary_vs_text_files" +++ # Binary vs text files diff --git a/content/posts/burpsuite.md b/content/posts/burpsuite.md index d07d275..1975e26 100644 --- a/content/posts/burpsuite.md +++ b/content/posts/burpsuite.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="burpsuite" -description="click to read burpsuite" +description="click to read about burpsuite" +++ # BURPSUITE diff --git a/content/posts/certs.md b/content/posts/certs.md index ff66480..47242e1 100644 --- a/content/posts/certs.md +++ b/content/posts/certs.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="certs" -description="click to read certs" +description="click to read about certs" +++ # CERTS diff --git a/content/posts/disk-usage.md b/content/posts/disk-usage.md index 1cb5de2..629e447 100644 --- a/content/posts/disk-usage.md +++ b/content/posts/disk-usage.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="disk-usage" -description="click to read disk-usage" +description="click to read about disk-usage" +++ diff --git a/content/posts/disk-utils.md b/content/posts/disk-utils.md index 433cd95..563a8d6 100644 --- a/content/posts/disk-utils.md +++ b/content/posts/disk-utils.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="disk-utils" -description="click to read disk-utils" +description="click to read about disk-utils" +++ # Disk utils diff --git a/content/posts/docker.md b/content/posts/docker.md index 7cdef8c..93807ca 100644 --- a/content/posts/docker.md +++ b/content/posts/docker.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="docker" -description="click to read docker" +description="click to read about docker" +++ # Docker diff --git a/content/posts/document-conversion.md b/content/posts/document-conversion.md index 3f18a04..dd6be84 100644 --- a/content/posts/document-conversion.md +++ b/content/posts/document-conversion.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="document-conversion" -description="click to read document-conversion" +description="click to read about document-conversion" +++ ### Pandoc diff --git a/content/posts/emacs.md b/content/posts/emacs.md index fa59f7a..16d9444 100644 --- a/content/posts/emacs.md +++ b/content/posts/emacs.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-12-21" author="spanskiduh" title="emacs" -description="click to read emacs" +description="click to read about emacs" +++ # Emacs diff --git a/content/posts/exec.md b/content/posts/exec.md index abc77bb..1ed5db6 100644 --- a/content/posts/exec.md +++ b/content/posts/exec.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="exec" -description="click to read exec" +description="click to read about exec" +++ # EXEC It is a family of functions that do the same thing but actually no. diff --git a/content/posts/ffmpeg.md b/content/posts/ffmpeg.md index 46d50a2..a2ec95c 100644 --- a/content/posts/ffmpeg.md +++ b/content/posts/ffmpeg.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="ffmpeg" -description="click to read ffmpeg" +description="click to read about ffmpeg" +++ # FFMPEG diff --git a/content/posts/forensics.md b/content/posts/forensics.md index 23705f1..fe7653c 100644 --- a/content/posts/forensics.md +++ b/content/posts/forensics.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="forensics" -description="click to read forensics" +description="click to read about forensics" +++ # FORENSICS diff --git a/content/posts/fork.md b/content/posts/fork.md index 8b6af7c..6331c79 100644 --- a/content/posts/fork.md +++ b/content/posts/fork.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="fork" -description="click to read fork" +description="click to read about fork" +++ # Fork diff --git a/content/posts/gcc.md b/content/posts/gcc.md index 3d99c58..6cabae4 100644 --- a/content/posts/gcc.md +++ b/content/posts/gcc.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="gcc" -description="click to read gcc" +description="click to read about gcc" +++ # GCC diff --git a/content/posts/gdb.md b/content/posts/gdb.md index fb08591..571985c 100644 --- a/content/posts/gdb.md +++ b/content/posts/gdb.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="gdb" -description="click to read gdb" +description="click to read about gdb" +++ diff --git a/content/posts/hydra.md b/content/posts/hydra.md index cee463e..6013de7 100644 --- a/content/posts/hydra.md +++ b/content/posts/hydra.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="hydra" -description="click to read hydra" +description="click to read about hydra" +++ # HYDRA - brute forcing tool diff --git a/content/posts/lxc.md b/content/posts/lxc.md index c125307..2ed5b10 100644 --- a/content/posts/lxc.md +++ b/content/posts/lxc.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="lxc" -description="click to read lxc" +description="click to read about lxc" +++ # LXC diff --git a/content/posts/mosquitto.md b/content/posts/mosquitto.md index 6f4eded..a923a4c 100644 --- a/content/posts/mosquitto.md +++ b/content/posts/mosquitto.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="mosquitto" -description="click to read mosquitto" +description="click to read about mosquitto" +++ # Mosquitto diff --git a/content/posts/mount.md b/content/posts/mount.md index 367cc02..1978207 100644 --- a/content/posts/mount.md +++ b/content/posts/mount.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="mount" -description="click to read mount" +description="click to read about mount" +++ # Mount diff --git a/content/posts/named_pipes.md b/content/posts/named_pipes.md index 56594d6..8fe2f84 100644 --- a/content/posts/named_pipes.md +++ b/content/posts/named_pipes.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="named_pipes" -description="click to read named_pipes" +description="click to read about named_pipes" +++ # Named pipes diff --git a/content/posts/nmap.md b/content/posts/nmap.md index 9aeaed9..d575d86 100644 --- a/content/posts/nmap.md +++ b/content/posts/nmap.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="nmap" -description="click to read nmap" +description="click to read about nmap" +++ # NMAP diff --git a/content/posts/pdf.md b/content/posts/pdf.md index 6d621cb..a57f639 100644 --- a/content/posts/pdf.md +++ b/content/posts/pdf.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="pdf" -description="click to read pdf" +description="click to read about pdf" +++ # PDF MANIPULATION diff --git a/content/posts/permissions.md b/content/posts/permissions.md index df5eb8d..54fd2db 100644 --- a/content/posts/permissions.md +++ b/content/posts/permissions.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="permissions" -description="click to read permissions" +description="click to read about permissions" +++ # PERMS diff --git a/content/posts/pipewire.md b/content/posts/pipewire.md index 9ab0eae..aa41b09 100644 --- a/content/posts/pipewire.md +++ b/content/posts/pipewire.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="pipewire" -description="click to read pipewire" +description="click to read about pipewire" +++ # PIPEWIRE diff --git a/content/posts/powerusage.md b/content/posts/powerusage.md index ead0ece..50d859e 100644 --- a/content/posts/powerusage.md +++ b/content/posts/powerusage.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="powerusage" -description="click to read powerusage" +description="click to read about powerusage" +++ # Check deatiled power usage on linux (common distros have it preinstalled) diff --git a/content/posts/proces_sorting_algorithms.md b/content/posts/proces_sorting_algorithms.md index 2cba99f..b6ca50c 100644 --- a/content/posts/proces_sorting_algorithms.md +++ b/content/posts/proces_sorting_algorithms.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="proces_sorting_algorithms" -description="click to read proces_sorting_algorithms" +description="click to read about proces_sorting_algorithms" +++ # Sorting algorithms diff --git a/content/posts/proxmox.md b/content/posts/proxmox.md index e7b32be..63284ae 100644 --- a/content/posts/proxmox.md +++ b/content/posts/proxmox.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="proxmox" -description="click to read proxmox" +description="click to read about proxmox" +++ # PROXMOX diff --git a/content/posts/pwn.md b/content/posts/pwn.md index b584284..5233ca4 100644 --- a/content/posts/pwn.md +++ b/content/posts/pwn.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="pwn" -description="click to read pwn" +description="click to read about pwn" +++ # PWN diff --git a/content/posts/python_specifics.md b/content/posts/python_specifics.md index 2939c84..7b83c2f 100644 --- a/content/posts/python_specifics.md +++ b/content/posts/python_specifics.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="python_specifics" -description="click to read python_specifics" +description="click to read about python_specifics" +++ # PYTHON SPECIFICS diff --git a/content/posts/qemu.md b/content/posts/qemu.md index 75bd73f..66c4cd4 100644 --- a/content/posts/qemu.md +++ b/content/posts/qemu.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="qemu" -description="click to read qemu" +description="click to read about qemu" +++ # Qemu diff --git a/content/posts/regex.md b/content/posts/regex.md index c1f7f20..31c5b2c 100644 --- a/content/posts/regex.md +++ b/content/posts/regex.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="regex" -description="click to read regex" +description="click to read about regex" +++ # REGEX diff --git a/content/posts/rstudio.md b/content/posts/rstudio.md index 6ef00e4..fa2e25d 100644 --- a/content/posts/rstudio.md +++ b/content/posts/rstudio.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="rstudio" -description="click to read rstudio" +description="click to read about rstudio" +++ # Rstudio diff --git a/content/posts/rust.md b/content/posts/rust.md index 41d8976..1338631 100644 --- a/content/posts/rust.md +++ b/content/posts/rust.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="rust" -description="click to read rust" +description="click to read about rust" +++ # RUST diff --git a/content/posts/services-and-process-management.md b/content/posts/services-and-process-management.md index 867905a..a6338dd 100644 --- a/content/posts/services-and-process-management.md +++ b/content/posts/services-and-process-management.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="services-and-process-management" -description="click to read services-and-process-management" +description="click to read about services-and-process-management" +++ diff --git a/content/posts/shell.md b/content/posts/shell.md index 37f15b9..0d9d906 100644 --- a/content/posts/shell.md +++ b/content/posts/shell.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="shell" -description="click to read shell" +description="click to read about shell" +++ # SHELL SHORTCUTS diff --git a/content/posts/squid.md b/content/posts/squid.md index fe1d0c2..a3c7716 100644 --- a/content/posts/squid.md +++ b/content/posts/squid.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="squid" -description="click to read squid" +description="click to read about squid" +++ # SQUID tool diff --git a/content/posts/symlinks.md b/content/posts/symlinks.md index 008bddd..4fa262e 100644 --- a/content/posts/symlinks.md +++ b/content/posts/symlinks.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="symlinks" -description="click to read symlinks" +description="click to read about symlinks" +++ # Difference between hardlinks and symlinks diff --git a/content/posts/system-information.md b/content/posts/system-information.md index 8a5a4c4..faa825b 100644 --- a/content/posts/system-information.md +++ b/content/posts/system-information.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="system-information" -description="click to read system-information" +description="click to read about system-information" +++ diff --git a/content/posts/tmux.md b/content/posts/tmux.md index 3c999de..2840685 100644 --- a/content/posts/tmux.md +++ b/content/posts/tmux.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-12-21" author="spanskiduh" title="tmux" -description="click to read tmux" +description="click to read about tmux" +++ diff --git a/content/posts/uart.md b/content/posts/uart.md index 53eab58..7a8d95e 100644 --- a/content/posts/uart.md +++ b/content/posts/uart.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="uart" -description="click to read uart" +description="click to read about uart" +++ diff --git a/content/posts/ufw.md b/content/posts/ufw.md index d55b0ef..e2c4a8d 100644 --- a/content/posts/ufw.md +++ b/content/posts/ufw.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="ufw" -description="click to read ufw" +description="click to read about ufw" +++ diff --git a/content/posts/vim_tutor.md b/content/posts/vim_tutor.md index e58e57d..ff34d37 100644 --- a/content/posts/vim_tutor.md +++ b/content/posts/vim_tutor.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="vim_tutor" -description="click to read vim_tutor" +description="click to read about vim_tutor" +++ # Vim Tutor diff --git a/content/posts/virt-manager.md b/content/posts/virt-manager.md index 58d578a..6747ccf 100644 --- a/content/posts/virt-manager.md +++ b/content/posts/virt-manager.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="virt-manager" -description="click to read virt-manager" +description="click to read about virt-manager" +++ # VIRT MANAGER diff --git a/content/posts/wasm.md b/content/posts/wasm.md index 9cef58c..2e5fa4b 100644 --- a/content/posts/wasm.md +++ b/content/posts/wasm.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="wasm" -description="click to read wasm" +description="click to read about wasm" +++ # Wasm h39df71edfbdc6cfb diff --git a/content/posts/wl-mirror.md b/content/posts/wl-mirror.md index 95ce87f..ac4a7b4 100644 --- a/content/posts/wl-mirror.md +++ b/content/posts/wl-mirror.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="wl-mirror" -description="click to read wl-mirror" +description="click to read about wl-mirror" +++ # WL-mirror diff --git a/content/posts/yaml.md b/content/posts/yaml.md index d90b4d1..f4fa85b 100644 --- a/content/posts/yaml.md +++ b/content/posts/yaml.md @@ -1,9 +1,9 @@ - + +++ -date="2022-12-24" +date="2022-11-30" author="spanskiduh" title="yaml" -description="click to read yaml" +description="click to read about yaml" +++ # YAML diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..e69de29 diff --git a/scripts/move.py b/scripts/move.py new file mode 100644 index 0000000..24e89ee --- /dev/null +++ b/scripts/move.py @@ -0,0 +1,49 @@ +import os +import time + +header = { + "author": "spanskiduh", +} + +MD_NOTES_DIR = "../../md-notes/" +POSTS_DIR = "../content/posts/" + +def main(): + # List all files in md-notes directory + for filename in os.listdir(MD_NOTES_DIR): + # Check if file is md file + if filename.endswith(".md"): + # Opent the file and read it + with open(MD_NOTES_DIR + filename, "r") as f: + # Read the file + file = f.read() + # Find --- in the file and remove it and content inside --- + splited_file = file.split("---") + if(len(splited_file) > 2): + splited_file = splited_file[2:] + # Join the list back to a string + file = "".join(splited_file) + + + header["title"] = filename[:-3] + header["description"] = f"click to read about {filename[:-3]}" + date_modified = os.path.getmtime(MD_NOTES_DIR + filename) + header["date"] = time.strftime("%Y-%m-%d", time.localtime(date_modified)) + + # Add the header to the file for hugo to parse + file = f"""\r ++++ +date="{header["date"]}" +author="{header["author"]}" +title="{header["title"]}" +description="{header["description"]}" ++++ +{file}""" + # Write the file to proc directory + with open(POSTS_DIR + filename, "w") as f: + f.write(file) + + + +if __name__ == '__main__': + main()