@@ -1,4 +1,35 @@
1-<!doctype html><!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ --><!--[if lt IE 7]> <html class="no-js ie6" lang="en"> <![endif]--><!--[if IE 7]> <html class="no-js ie7" lang="en"> <![endif]--><!--[if IE 8]> <html class="no-js ie8" lang="en"> <![endif]--><!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--><head><meta charset="utf-8"><title></title><meta name="description" content=""><meta name="author" content=""><!-- Mobile viewport optimized …
1+<!doctype html>
2+<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
3+<!--[if lt IE 7]> <html class="no-js ie6" lang="en"> <![endif]-->
4+<!--[if IE 7]> <html class="no-js ie7" lang="en"> <![endif]-->
5+<!--[if IE 8]> <html class="no-js ie8" lang="en"> <![endif]-->
6+<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
7+<head>
8+ <meta charset="utf-8">
9+
10+ <title>Dusty Markdown</title>
11+ <meta name="description" content="simple command line content manager">
12+ <meta name="author" content="@xonecas">
13+
14+ <!-- Mobile viewport optimized: j.mp/bplateviewport -->
15+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
16+
17+ <!-- CSS: implied media="all" -->
18+ <link rel="stylesheet" href="css/style.css">
19+ <link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
20+
21+
22+ <!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects -->
23+ <script src="js/libs/modernizr.js"></script>
24+
25+</head>
26+
27+<body>
28+ <header>
29+ <h1>Dusty Markdown</h1>
30+ </header>
31+ <section id="main" class="center">
32+ <p>This project is the new content manager under xonecas.com.
233 It's very minimal and light, developer friendly. The idea
334 is that you can write the dynamic content in markdown and
435 use dust to combine static and dynamic.</p>
@@ -12,8 +43,70 @@ use dust to combine static and dynamic.</p>
1243 <li>Markdown</li>
1344 </ul>
1445
15-<p>See the example page <a href="/about">here</a>.</p></section><footer class="center"><h3>Thu, 28 of April, 2011</h3>
46+<h3>The gist:</h3>
47+
48+<p>So the build.js file grabs the source files you write and
49+compiles them into static assets (@TODO add compression
50+and concatenation). The way it knows what to do with your
51+files is because it expects a specific folder/naming
52+convention.</p>
53+
54+<p>This app is the example of that convention:</p>
55+
56+<pre><code> root/
57+ build.js // compiler
58+ server.js // static asset provider
59+
60+ templates/ // home to your pages/views
61+ index.dust // root of the app
62+ pagename.dust // pagename becomes
63+ // http://server/pagename
64+
65+ markdown/ // where your content goes
66+ keyname.md // you can refer to this in
67+ // your template susing {keyname}
68+ section_keyname.md // you can refer to several
69+ // keynames using {#section}
70+ htdocs/ // your static content
71+ ...
72+ ... // organize it how you want it
73+ // just remember that the .html
74+ // files are created by build.js
75+ // so don't edit them by hand
76+</code></pre>
77+
78+<p>The default htdocs folder is from HTML5 Boilerplate and so is
79+the static file server. One difference is that this app uses
80+Ender for the js library, but you're welcome to change it.
81+There is also a very simple unique visitors/request counter.</p>
82+
83+<p>See the example page <a href="/about">here</a>.</p>
84+ </section>
85+ <footer class="center">
86+ <h3>Thu, 28 of April, 2011</h3>
87+
88+<p>This is an example entry so that I now it's working.</p> <h3>Thu, 28 of April, 2011</h3>
89+
90+<p>First cleaned up. Added defult pages. Things look pretty now.</p>
91+ </footer>
92+
93+
94+
95+ <!-- JavaScript at the bottom for fast page loading -->
96+ <script src="js/libs/ender.js"></script>
97+
98+ <!-- scripts concatenated and minified via ant build script-->
99+ <script src="js/script.js"></script>
100+ <!-- end scripts-->
101+
16102
17-<p>First cleaned up. Added defult pages. Things look pretty now.</p> <h3>Thu, 28 of April, 2011</h3>
103+ <!-- simple uniques and page requests tracker, see server.js -->
104+ <script>Modernizr.localstorage || document.write('<script src="js/libs/storage.js">\x3C/script>')</script>
105+ <script>
106+ var s = localStorage, key = s.getItem('key');
107+ if (key === null) { key = +new Date(); s.setItem('key', key); };
108+ $.ajax('/track?key='+key);
109+ </script>
18110
19-<p>This is an example entry so that I now it's working.</p> </footer><!-- JavaScript at the bottom for fast page loading --><script src="js/libs/ender.js"></script><!-- scripts concatenated and minified via ant build script--><script src="js/script.js"></script><!-- end scripts--><!-- simple uniques and page requests tracker, see server.js --><script>Modernizr.localstorage || document.write('<script src="js/libs/storage.js">\x3C/script>')</script><script>var s = localStorage, key = s.getItem('ke …
111+</body>
112+</html>