This is a modified version of:
TXT by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
See the original readme
See the license
This repo/version is specifically designed to work with my personal website builder (https://github.com/queue-bit/go-pubsite) in a github action.
- Removed files:
- index.html
- left-sidebar.html
- no-sidebar.html
- right-sidebar.html
- Added files :
- Go Templating (for
html/template
, together these make up a modified version of index.html):- base/base.html
- base/body.html
- base/footer.html
- base/header.html
- CSS:
- assets/css/extend.css
- Go Templating (for
Expects a struct with the following defined:
Struct | Member | Description |
---|---|---|
CurrentPage | Title | Title of the current page |
CurrentPage | Nav | Breadcrumb nav of the current page |
CurrentPage | Excerpt | Excerpt of the current page |
CurrentPage | Content | The page content (article body) |
CurrentPage | SiteRoot | URL of the site's root |
CurrentPage | Analytics | Analytics Code (HTML with script tag) |
SiteMetaData | URL to Twitter user | |
SiteMetaData | Github | URL to GitHub user |
SiteMetaData | URL to LinkedIn user | |
SiteMetaData | Domain | The domain as defined in the config file |
SiteMetaData | Title | The site's title as defined in the config file |
- | Toc | Table of Contents (HTML) |
- | TopNav | The top navigation (HTML) |