AcidicNic / acidicnic.github.io

A static site generator CLI, made with Go, that dynamically generates and updates my portfolio website, nicc.io

Home Page:https://nicc.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Source Code for nicc.io, generated by a static site generator made with Go

buildPortfolio/buildPortfolio.go is CLI that allows me to efficiently update the information on my portfolio or the html template.

The template is populated with data from a CSV file, then it's pushed to this repo and live on GitHub Pages.

Here's how it works!

  1. Reads project, article, and footer data from buildPortfolio/data.csv
  2. Inserts data into buildPortfolio/template.tmpl
  3. Outputs completed template to index.html

Flags

  • csv string
    • A CSV file containing data to be inserted into the template. (default "data.csv")
  • output string
    • The .html output file. (default "../index.html")
  • tmpl string
    • A .tmpl file to insert data into. (default "template.tmpl")

Flags are optional and for debugging mostly. The default flags are set to work for this project exactly.

go run buildPortfolio.go

If no extensions are given, it will fill them in for you. Or you can use some random extension, it doesn't really matter.

go run buildPortfolio.go -csv="../../far/away/csvfile" -output="/cool_website.lol" -tmpl="some/nested/templatefile"

About

A static site generator CLI, made with Go, that dynamically generates and updates my portfolio website, nicc.io

https://nicc.io/


Languages

Language:HTML 78.9%Language:Go 18.9%Language:CSS 2.2%