Browse Source

Set static pages

Maxime Vidori 9 years ago
parent
commit
14fee02d93

+ 5 - 0
content/pages/01_index.md

@@ -0,0 +1,5 @@
+Title: Acceuil
+url:
+save_as: index.html
+
+Bienvenue

+ 3 - 0
content/pages/02_gitoyen.md

@@ -0,0 +1,3 @@
+Title: Gitoyen
+
+Qui sommes nous

+ 3 - 0
content/pages/03_services.md

@@ -0,0 +1,3 @@
+Title: Nos services
+
+Nos services

+ 3 - 0
content/pages/04_technical.md

@@ -0,0 +1,3 @@
+Title: Côté technique
+
+Apprends neophyte !

+ 3 - 0
content/pages/06_contact.md

@@ -0,0 +1,3 @@
+Title: Contact
+
+Nous contacter

+ 0 - 5
content/pages/index.md

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

+ 7 - 0
pelicanconf.py

@@ -33,5 +33,12 @@ SOCIAL = (('You can add links in your config file', '#'),
 
 
 DEFAULT_PAGINATION = 10
 DEFAULT_PAGINATION = 10
 
 
+ARTICLE_PATHS = ['blog']
+ARTICLE_URL = 'blog/{slug}.html'
+
+PAGE_URL = '{slug}.html'
+PAGE_SAVE_AS = '{slug}.html'
+
+
 # Uncomment following line if you want document-relative URLs when developing
 # Uncomment following line if you want document-relative URLs when developing
 #RELATIVE_URLS = True
 #RELATIVE_URLS = True