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.
- Reads project, article, and footer data from buildPortfolio/data.csv
- Inserts data into buildPortfolio/template.tmpl
- Outputs completed template to index.html
- 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"