all repos — hastysite @ e7a662f3cbbb61be4ba3a41a9350a4ae183c0b91

A high-performance static site generator.

Site updates.
h3rald h3rald@h3rald.com
Sat, 11 Nov 2017 22:12:52 +0100
commit

e7a662f3cbbb61be4ba3a41a9350a4ae183c0b91

parent

ac1672ec25c82d0bdc737cc747cf50a098ddef27

M site/assets/styles/site.csssite/assets/styles/site.css

@@ -1,3 +1,3 @@

-.unstyled li a::before { +#page-getting-started .unstyled li a::before { content: none; }
A site/contents/customization.md

@@ -0,0 +1,21 @@

+----- +id: customization +title: "Customization" +content-type: page +----- + + +## Default Build Pipeline + + +### Preprocess + + +### Process Rules + + +### Postprocess + +## Modifying the [rules.min](class:kwd) File + +## Creating Scripts
M site/contents/home.mdsite/contents/home.md

@@ -13,8 +13,8 @@ > * [](class:check) Built-in rich markdown support via [HastyScribe](https://h3rald.com/hastyscribe).

> * [](class:check) Built-in [mustache](https://mustache.github.io/) support for page templates. > * [](class:check) Limited support for standard [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables). > * [](class:check) Fully configurable content and asset processing pipeline, using the [min](https://min-lang.org) programming language. -> * [](class:check) Fully configurable script engine and custom script definition, using the [min](https://min-lang.org) programming language. -> * [](class:check) Built-in default stylesheet based on [HastyScribe](https://h3rald.com/hastyscribe). -> * [](class:check) Default scripts and rules to [get started](/getting-started) quickly. +> * [](class:check) Custom script definition, using the [min](https://min-lang.org) programming language. +> * [](class:check) Default stylesheet and fonts from [HastyScribe](https://h3rald.com/hastyscribe). +> * [](class:check) Default scripts and rules to get started quickly.
M site/contents/reference.mdsite/contents/reference.md

@@ -4,3 +4,6 @@ title: "Reference"

content-type: page ----- +## Default Content Metadata + +## [hastysite](class:kwd) min Module
M site/contents/usage.mdsite/contents/usage.md

@@ -4,3 +4,29 @@ title: "Usage"

content-type: page ----- +HastySite is a simple command-line program that supports some default commands and options, described in the following sections. Additionally, you can configure your own programs by creating your own [min](https://min-lang.org) scripts. + +## Default Commands + +### build + + +### clean + + +### page + + +### post + + +## Options + + +### -h, \-\-help + + +### -l, \-\-loglevel + + +### -v, \-\-version
M site/rules.minsite/rules.min

@@ -30,6 +30,7 @@ meta /content-type :tpl

meta ( (input-fread @contents meta) (settings /title %site-title) + (settings /base-url %site-base-url) (=temp contents temp markdown @contents temp) (contents %contents) (=temp tpl temp mustache @page temp)
M site/settings.jsonsite/settings.json

@@ -6,5 +6,6 @@ "temp": "temp",

"output": "output", "scripts": "scripts", "title": "HastySite", + "base-url": "", "rules": "rules.min" }
M site/templates/_header.mustachesite/templates/_header.mustache

@@ -10,6 +10,7 @@ </li>

<li class="luxbar-item"><a href="/news"><i class="fa fa-bullhorn"></i> News</a></li> <li class="luxbar-item"><a href="/getting-started"><i class="fa fa-star"></i> Getting Started</a></li> <li class="luxbar-item"><a href="/usage"><i class="fa fa-wrench"></i> Usage</a></li> + <li class="luxbar-item"><a href="/customization"><i class="fa fa-gears"></i> Customization</a></li> <li class="luxbar-item"><a href="/reference"><i class="fa fa-book"></i> Reference</a></li> <li class="luxbar-item"><a href="/about"><i class="fa fa-info-circle"></i> About</a></li> </ul>
M site/templates/news.mustachesite/templates/news.mustache

@@ -9,7 +9,7 @@ <h1>{{title}}</h1>

{{{contents}}} <ul class="unstyled"> {{#posts}} - <li> <span class="date">{{date}}</span> &mdash; <a href="/{{id}}">{{title}}</a></li> + <li> <span class="date">{{date}}</span> &mdash; <a href="/{{id}}">{{title}}</a></li> {{/posts}} </ul> </article>
M site/templates/page.mustachesite/templates/page.mustache

@@ -4,7 +4,7 @@ {{> _head}}

<body> {{> _header}} <main> - <article> + <article id="page-{{id}}"> <h1>{{title}}</h1> {{{contents}}} </article>