aboutsummaryrefslogtreecommitdiff
path: root/template_index_html.go
AgeCommit message (Collapse)Author
2026-01-24all: embed CSS and index HTML template using memfsShulhan
Previously, with direct embed, every time we change the CSS or index template, we need to restart the "ciigo serve" command. Using memfs make us easy to update and see the changes directly, without restarting the server.
2023-05-14all: rewrite watcher tests using lib/test.DataShulhan
Instead of using another template, use the embedded template when generating HTML. In this way we can see how the generated HTML looks like.
2022-07-24all: generate HTML meta data and replace the top header titleShulhan
The following metadata are rendered based on the same asciidoc attributes: author, description, generator, and keywords. This changes also replace the topbar title with the document title, cleanup the HTML header syntax by replacing "/>" with ">", trim leading and trailing spaces on Body and embedded CSS.
2022-03-04all: re-licensing ciigo under GPL-3.0 or laterShulhan
See https://kilabit.info/journal/2022/gpl/ for more information.
2020-12-06Release ciigo v0.3.0 (2020-12-06)v0.3.0Shulhan
This release replace the asciidoc parsing from libasciidoc-go to https://sr.ht/~shulhan/asciidoctor-go[asciidoctor-go], which provide more control and stable APIs. We also remove support form markdown markup language and focus only to support asciidoctor format from now on. The Go module path and repository is also moved from github to git.sr.ht/~shulhan/ciigo.
2020-11-26all: remove the Author and DateShulhan
Since the generate HTML already render the authors and date, there is no need to save the values in the fileHTML. Also, update the default embedded HTML template with latest format.
2020-11-11all: migrate the repo and Go module to git.sr.ht/~shulhan/ciigoShulhan
2020-10-08all: check for zero last updated when unpacking adoc metadataShulhan
If the date is zero ("0001-01-01 ...") reset it to empty string and do not render it on HTML output.
2020-05-07template: update the embedded HTML footerShulhan
2020-05-01all: embed the HTML template and the stylesheetShulhan
The parameter for template either in Convert or Generate functions or in CLI now become pure optional, not default to "templates/html.tmpl" anymore. This will minimize steps for user to setup or run the library or program.