dedebb2c36ad775952231dce8d6ce6d2c0349017
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 50s
Evrard Van Espen's Blog
This is a personal blog built with Go, using the go-org library to parse Org-mode files and generate HTML content.
Features
- Parse Org-mode files from the
postsdirectory - Generate HTML pages for each post
- Create an index page with all posts
- Support for tags and tag pages
- Syntax highlighting for code blocks
- Responsive design with SCSS
- Media handling for images and videos
Installation
-
Clone the repository:
git clone https://github.com/evanespen/blog.git cd blog -
Install dependencies:
go mod download
Usage
-
Add your posts in Org-mode format to the
postsdirectory. -
Add the medias of the articles alongside with them
-
Build the site in dev mode (auto reload):
./build-dev.shOr with
go run . -
The generated site will be in the
builddirectory.
Development
- The main entry point is
main.go. - Templates are located in the
templatesdirectory. - SCSS file is
styles/main.scss. - Utility functions are in
utils.go. - Media handling is in
medias.go. - Org-mode parsing is in
parse.go. - HTML rendering is in
render.go. - SCSS compilation is in
styles.go. - Static file copying is in
static.go.
TODO
- code documentation
- footer
- resume page
- contact page
- responsive
- RSS
- favicon
- search
- sitemap.xml
- robots.txt
- better error handling
License
This project is licensed under the MIT License - see the LICENSE file for details.
Description
Languages
Go
72.2%
SCSS
17.5%
HTML
8.7%
Dockerfile
1.1%
Shell
0.5%