Hello friend 🤖,
I am nairolf32, A cybersecurity enthusiast slowly getting stronger. I Play CTFs and challenges on various websites and decided to keep a track of what I already know/did/learnt by writing it down. Here is a good place for that. This repository used to simply host my ctf writeups but I turnt it into my cybersec blog and here I share the best things I learnt throughout my learning journey. The writeups are from many platforms. My favorites ones are Tryhackme and Hackthebox. The writeups are mostly from those platforms.
You can click here to learn more about this blog!
This repository is not really open for external contributions but feel free to open an issue for anything you want to share. For further usage simply clone the repo with git clone and run hugo (it manages everything for you)
Most importantly, as I use a submodule theme you need to get it locally too using git submodule init then git submodule update. To test it run below commands:
hugo server- For local development you might need to override the baseURL in the config file
using the
--baseURL=http://localhost:1313flag with the command above. - The structure is quite simple, the
contentfolder contains all the posts using hugo pages bundles, thestaticfolder contains the rest of global static files (images, css, js, etc.), and thethemesfolder contains the theme submodule used for the website. You should not modify the theme files directly, but you can override them in thelayoutsfolder (If really needed). hugo -Dfor building the website- Deploying on GitHub Pages using GitHub Actions using the
./github/workflows/pages.ymlfile - Some minor theme layout modifications are done in the
layoutsfolder (image render-hooks and shortcodes) - Added a fuzzy search feature using Pagefind. You can install it locally with npm or yarn or download the binary from the releases page. The latest is
used in the GitHub Actions workflow file. The search feature is implemented using the
pagefindshortcode in thelayouts/shortcodes/pagefind.htmlfile and used in thecontent/search/index.mdfile. The indexing command ispagefind --site publicto index the website content and generate the search files in thepublicfolder. Remember to run this command after building the website withhugo -Dto update the search index locally.
Check hugo website for more information about this great static site generator
