Skip to content

Instantly share code, notes, and snippets.

@sjkingo
Last active June 25, 2016 05:17
Show Gist options
  • Save sjkingo/d83a24184794db303d1e70998d7bd232 to your computer and use it in GitHub Desktop.
Save sjkingo/d83a24184794db303d1e70998d7bd232 to your computer and use it in GitHub Desktop.
fantail example
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{{ title }}</title>
<meta name="generator" content="fantail-{{ version }}">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<h1>{{ title }}</h1>
{{ content }}
</body>
</html>
$ tree fantail-site/
fantail-site/
├── pages
│   └── index.txt
└── templates
└── base.html
2 directories, 2 files
$ fantail build
INFO: staticsite: Finished. Output directory: /home/fantail/fantail-site/output
└── index.html
0 directories, 1 file
$ cat fantail-site/output/index.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Index</title>
<meta name="generator" content="fantail-0.1.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<h1>Index</h1>
<p><strong>Testing markdown</strong></p>
</body>
</html>
title: Index
**Testing markdown**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment