Let’s create an example app that installs Fluidity from npm.
- Create an example app.
cd ~/Desktop
harp init example
cd example
| - var OPT = false | |
| each opt in data.OPT | |
| if (typeof(opt) !== 'undefined') | |
| if (typeof(opt.displayText) !== 'undefined') | |
| - OPT = true | |
| if (OPT == true) | |
| include ../partials/opt |
| //<![CDATA[ | |
| WebFontConfig = { | |
| google: { | |
| families: ['Roboto+Slab:400,700:latin'] | |
| }, | |
| typekit: { | |
| id: 'kax3zci' | |
| }, | |
| monotype: { | |
| projectId: '0d4aee2f-16cb-4cc3-9186-1e2317d930ab' |
| { | |
| "go-out-and-make-it-your-own": { | |
| "title": "Go Out & Make It Your Own", | |
| "date": "2013-08-19" | |
| }, | |
| "an-out-of-order-article": { | |
| "title": "An out-of-order article", | |
| "date": "2014-11-01" | |
| }, | |
| "welcome-to-harp": { |
| p “The environment is #{ environment }.” | |
| ul | |
| each article, slug in public.data | |
| unless article.published===false && environment=="Production" | |
| li | |
| a(href="/articles/#{ slug }") #{ article.title } | |
| //- Now, running the server locally will show | |
| A Simple Blog and A Simple Article, but in |
A quick example Harp app that uses the correct title for your blog in the correct place.
The App
app/
|- _harp.json
|- _layout.ejs
|- index.ejs
|+ posts/
|- _data.json
| /* Blockquotes | |
| Corresponding Markdown is: | |
| > This is the blockquote | |
| > **Author [Source](http://example.com/article.html)** | |
| Replace the variables with your own. | |
| */ |