Browse Source

Setup dev environment for gitoyen theme

Maxime Vidori 9 years ago
parent
commit
b9852868a4
3 changed files with 11 additions and 1 deletions
  1. 5 0
      content/pages/index.md
  2. 3 0
      fabfile.py
  3. 3 1
      pelicanconf.py

+ 5 - 0
content/pages/index.md

@@ -0,0 +1,5 @@
+Title: Welcome to My Site
+URL:
+save_as: index.html
+
+Thank you for visiting. Welcome!

+ 3 - 0
fabfile.py

@@ -20,6 +20,8 @@ import sys
 # Local path configuration (can be absolute or relative to fabfile)
 fabric.env.deploy_path = path.path('output')
 fabric.env.content_path = path.path('content')
+fabric.env.theme_path = path.path('../theme')
+
 fabric.env.jinja = jinja2.Environment(
     loader=jinja2.PackageLoader('fabfile', 'templates')
 )
@@ -115,6 +117,7 @@ def serve(*args):
     build()
     server = Server(application)
     server.watch(fabric.env.content_path, build)
+    server.watch(fabric.env.theme_path, build)
     server.serve(port=port, debug=True)
 
 @fabric.task

+ 3 - 1
pelicanconf.py

@@ -23,7 +23,9 @@ AUTHOR_FEED_RSS = None
 LINKS = (('Pelican', 'http://getpelican.com/'),
          ('Python.org', 'http://python.org/'),
          ('Jinja2', 'http://jinja.pocoo.org/'),
-         ('You can modify those links in your config file', '#'),)
+         ('You can modify those links in your config file ', '#'),)
+
+THEME = "theme"
 
 # Social widget
 SOCIAL = (('You can add links in your config file', '#'),