This repository contains the source code as well as the the content for V Lang's blog hosted at: blog.vlang.io
The whole website is statically generated using Hugo. The source files are
included in the src directory, which contain the stylesheet files written
using SCSS and the scripts written using TypeScript.
There are three convenience shell scripts present at the root of the repository, which help streamline the process of writing new blog posts, as well as modifying the stylesheets and scripts.
Note: When there is a alternative to Hugo available, which is written in V, we will move to that.
- NPM and Node - any recent version will do.
- Hugo.
- Sass and TypeScript installed using
npm. You can clone the repository and donpm i.
- Navigate to the root of the repository.
- Run
./watch.shto start the watch process for Hugo, SCSS, and TypeScript. - Navigate to
localhost:1313to access the website. - Once done, run
./kill.shto stop the watch processes.
Please follow the guidelines provided here.
- From the root of the repository, run the
build.shscript. (Some environments prefersh build.shinstead of./build.sh) - The output is stored in the
publicdirectory, which should be served as the static website. - For CloudFlare pages, make sure to set the Hugo, Node, and NPM versions as environment variables.
Refer to the Contribution Guidelines.