@@ -392,10 +392,10 @@ def patch_site(self):
392
392
conf_path = os .path .join (self .target_dir , "conf.py" )
393
393
with io .open (conf_path , "r" , encoding = "utf-8" ) as inf :
394
394
data = inf .read ()
395
- data = data .replace ('("pages/*.txt", "pages", "story .tmpl"),' ,
396
- '("pages/*.txt", "", "story .tmpl"),' )
397
- data = data .replace ('("pages/*.rst", "pages", "story .tmpl"),' ,
398
- '("pages/*.rst", "", "story .tmpl"),' )
395
+ data = data .replace ('("pages/*.txt", "pages", "page .tmpl"),' ,
396
+ '("pages/*.txt", "", "page .tmpl"),' )
397
+ data = data .replace ('("pages/*.rst", "pages", "page .tmpl"),' ,
398
+ '("pages/*.rst", "", "page .tmpl"),' )
399
399
data = data .replace ('# INDEX_PATH = ""' ,
400
400
'INDEX_PATH = "blog"' )
401
401
with io .open (conf_path , "w+" , encoding = "utf8" ) as outf :
@@ -553,7 +553,7 @@ def patch_site(self):
553
553
"""Enable post sections."""
554
554
conf_path = os .path .join (self .target_dir , "conf.py" )
555
555
with io .open (conf_path , "a" , encoding = "utf8" ) as outf :
556
- outf .write ("""\n \n POSTS_SECTIONS = True\n POSTS_SECTIONS_ARE_INDEXES = True\n PRETTY_URLS = True\n POSTS = (('posts/*.txt', '', 'post.tmpl'),)\n PAGES = (('pages/*.txt', '', 'story .tmpl'),)\n \n """ )
556
+ outf .write ("""\n \n POSTS_SECTIONS = True\n POSTS_SECTIONS_ARE_INDEXES = True\n PRETTY_URLS = True\n POSTS = (('posts/*.txt', '', 'post.tmpl'),)\n PAGES = (('pages/*.txt', '', 'page .tmpl'),)\n \n """ )
557
557
558
558
@classmethod
559
559
def fill_site (self ):
@@ -602,7 +602,7 @@ def patch_site(self):
602
602
"""Enable PAGE_INDEX."""
603
603
conf_path = os .path .join (self .target_dir , "conf.py" )
604
604
with io .open (conf_path , "a" , encoding = "utf8" ) as outf :
605
- outf .write ("""\n \n PAGE_INDEX = True\n PRETTY_URLS = False\n PAGES = PAGES + (('pages/*.php', 'pages', 'story .tmpl'),)\n \n """ )
605
+ outf .write ("""\n \n PAGE_INDEX = True\n PRETTY_URLS = False\n PAGES = PAGES + (('pages/*.php', 'pages', 'page .tmpl'),)\n \n """ )
606
606
607
607
@classmethod
608
608
def fill_site (self ):
@@ -707,7 +707,7 @@ def patch_site(self):
707
707
"""Enable PAGE_INDEX."""
708
708
conf_path = os .path .join (self .target_dir , "conf.py" )
709
709
with io .open (conf_path , "a" , encoding = "utf8" ) as outf :
710
- outf .write ("""\n \n PAGE_INDEX = True\n PRETTY_URLS = True\n PAGES = PAGES + (('pages/*.php', 'pages', 'story .tmpl'),)\n \n """ )
710
+ outf .write ("""\n \n PAGE_INDEX = True\n PRETTY_URLS = True\n PAGES = PAGES + (('pages/*.php', 'pages', 'page .tmpl'),)\n \n """ )
711
711
712
712
def _make_output_path (self , dir , name ):
713
713
"""Make a file path to the output."""
0 commit comments