Commits

Steve Losh  committed ee1aa96

Styling.

  • Participants
  • Parent commits 1c849cf

Comments (0)

Files changed (3)

File bookmarkdown/bookmarkdown

 
     for filename in os.listdir('chapters'):
         if filename.endswith('.markdown'):
-            _build_html_file(join('chapters', filename), 'chapter')
+            _build_html_file(join('chapters', filename.rsplit('.')[0]), 'chapter')
 
 def _build_pdf():
     mkdirs(join('build', 'pdf'))

File bookmarkdown/static/styles/style.less

 html {
     overflow-y: scroll;
 }
+
+header {
+    margin-top: 30px;
+    text-align: center;
+}
+footer {
+    text-align: center;
+    font-style: italic;
+}

File bookmarkdown/templates/base.html

     </head>
 
     <body>
-        <header>
-            <h1>Book Title</h1>
-        </header>
+        <div class="container">
+            <header class="sixteen columns">
+                <h1>Book Title</h1>
+            </header>
 
-        <section class="content">
-            {% block content %}{% endblock %}
-        </section>
+            <section class="content">
+                {% block content %}{% endblock %}
+            </section>
 
-        <footer>
-        </footer>
+            <footer class="sixteen columns">
+                Built with
+                <a href="http://bitbucket.org/sjl/bookmarkdown/">Bookmarkdown</a>.
+            </footer>
+        </div>
     </body>
 </html>