Make some changes to `post.md` then use `hugo` to generate a new post:
Make some changes to `post.md` then use `hugo new` to draft a new post:
```sh
$ nano archetypes/post.md
$ hugo new post/once-upon-midnight-dreary.md
$ hugo serve --buildDrafts --navigateToChanged
$ vi archetypes/post.md # or vim, emacs, nano ...
$ hugo new post/totally-twisted.md
```
You have now created a post using {{<externalhref="https://gohugo.io/content-management/archetypes/"text="Archetypes in Hugo"/>}}. Archetypes establish defaults for new content like posts. Create new archetypes when creating [Custom Layouts](http://localhost:1414/feature/custom-layouts) to help maintain consistency within your content.
If `hugo server` is running with the `--navigateToChanged` flag your new post will appear automatically in JavaScript-enabled browsers. If you see an empty page you probably need to restart `hugo server` with the `--buildDrafts` flag.
Use archetypes to maintain consistency when creating content for [Custom Layouts](http://localhost:1414/feature/custom-layouts). Like custom layouts {{<externalhref="https://gohugo.io/content-management/archetypes/"text="Hugo Archetypes"/>}} may contain templating logic.
<!--more-->
---
{{<hackcss-alerttype="info">}}
<strong>Note:</strong> This {{<externalrel="help"target="_self"href="http://localhost:1414/shortcode/alert/"text="Alert"/>}} appears below the {{<externalhref="https://gohugo.io/content-management/summaries/"text="Hugo Summary Split"/>}}.
<strong>Tip:</strong> This message appears below a {{<externalhref="https://gohugo.io/content-management/summaries/#manual-summary-splitting"text="Manual Summary Split"/>}}.
{{</hackcss-alert>}}
In addition to alerts After Dark includes a number of other [Shortcodes](http://localhost:1414/shortcode/) and other useful [Features](http://localhost:1414/feature/) such as its [Module System](http://localhost:1414/feature/module-system/).
The above tip uses a shortcode called [Alert](http://localhost:1414/shortcode/alert/). In addition to a number of [Shortcodes](http://localhost:1414/shortcode/) After Dark provides a number of other [Features](http://localhost:1414/feature/).
Module System gives After Dark sites the ability to add enhanced functionality using [Modules](http://localhost:1414/module/) like this one, which uses the [Fractal Forest](http://localhost:1414/module/fractal-forest/) module to decode and render a BPG image animation otherwise not possible in most browsers:
The [Module System](http://localhost:1414/feature/module-system/), for example, provides a module to display image animations with alpha transparency and something not possible using a GIF:

@ -56,32 +57,17 @@ If you do not see the above animation, you may install the [Fractal Forest](http
Review the [Online Help](http://localhost:1414/) to learn about other useful features such as the [Section Menus](http://localhost:1414/feature/section-menu) navigational aid, responsive [Post Images](http://localhost:1414/feature/post-images/"), offline [Fuzzy Search](http://localhost:1414/feature/fuzzy-search/) and more.
If Online Help isn't running, start with the following:
```sh
$ cd flying-toasters
$ ./themes/after-dark/bin/help
```
---
Here're some cheat sheets for you to reference as you get started.
After Dark Scripts:
If online help isn't running, go ahead and start it using the corresponding command from the following cheat sheet within your site directory:
```sh
cd flying-toasters/themes/after-dark
./bin/upgrade # check for updates and upgrade
./bin/help # start online help docs
./bin/install # run the quick installer
cd ../../..
```
Hugo Commands:
# After Dark scripts
./themes/after-dark/bin/upgrade # check for updates and upgrade
./themes/after-dark/bin/help # start online help docs
./themes/after-dark/bin/install # run the quick installer
```sh
# Hugo commands
hugo # build site with default settings
hugo --minify # build with minified sources (hugo 0.45 and above)
hugo --minify # build with minified sources (hugo 0.47 and above)
hugo --config config.prod.toml # build with custom config
hugo --templateMetrics # generate template metrics