Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
add page title to the blog
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Jun 19, 2015
1 parent 20aad28 commit f184473
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pyquickhelper/helpgen/blog_post_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ def write_aggregated_posts(self, folder, division=10,
rst_links_up=rst_links_up,
rst_links_down=rst_links_down,
index_terms=["blog"],
language=self.Lang)
language=self.Lang,
bold_title=TITLES[self.Lang]["main_title"])

def write_aggregated_categories(self, folder, division=10,
rst_links_up=None, rst_links_down=None):
Expand Down Expand Up @@ -539,6 +540,7 @@ def produce_aggregated_post_page(name, l, this, prev, next, main_page="Blog",
if bold_title is not None:
rows.append(bold_title)
rows.append("+" * len(bold_title))
rows.append("")

for post in l:
text = post.post_as_rst(language=language)
Expand Down
2 changes: 2 additions & 0 deletions src/pyquickhelper/helpgen/texts_language.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"catsmaonths": "All categories and months",
"more": "post",
"main": "blog home",
"main_title": "blog page",
},
'fr': {"blogpost": "article",
"toc": "Contenu",
Expand All @@ -28,5 +29,6 @@
"catsmaonths": "Catégories et mois",
"more": "article",
"main": "page principale du blog",
"main_title": "page de blog",
}
}

0 comments on commit f184473

Please sign in to comment.