chiark / gitweb /
doc: simplify path handling for example articles.
authorVladimír Vondruš <mosra@centrum.cz>
Thu, 21 Dec 2017 22:51:01 +0000 (23:51 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Thu, 21 Dec 2017 22:51:15 +0000 (23:51 +0100)
Finally I can like how it is.

doc/examples/article-hide-summary.rst
doc/examples/article.rst
doc/examples/jumbo-article-hide-summary.rst
doc/examples/jumbo-article.rst
site/pelicanconf.py

index 37c997af8bc37dc03fc2c1d234b8bb5aa531c192..369136dc1770c512b601ea3398400de4665cbd6c 100644 (file)
@@ -32,7 +32,6 @@ Article with hidden summary
 :category: Examples
 :tags: Special
 :author: An Author
-:slug: article-hide-summary
 :hide_summary: True
 
 Implicit article summary paragraph. :language-la:`Lorem ipsum dolor sit amet,
index 91264ae2dc50de7ccd5a97623d2be5bb228f3b28..cf536a7b0db1c702e38ac51f7caa8e16cea8be41 100644 (file)
@@ -31,7 +31,6 @@ An article
 :date: 2017-09-08 0:00
 :category: Examples
 :author: An Author
-:slug: article
 :summary: Article summary paragraph. :language-la:`Lorem ipsum dolor sit amet,
     consectetur adipiscing elit. Aenean id elit posuere, consectetur magna
     congue, sagittis est.`
index d893a838bacae4d33a6a89cffc3d353c23a04864..3b055f4e6cf352891e83d54b1c1b0625c045ea79 100644 (file)
@@ -33,7 +33,6 @@ Article with hidden summary --- a jumbo one
 :category: Examples
 :tags: Jumbo, Special
 :author: An Author
-:slug: jumbo-article-hide-summary
 :hide_summary: True
 
 Implicit article summary paragraph. :language-la:`Lorem ipsum dolor sit amet,
index 5cda096f5ed8d3c6879712643e7d4b15ca0fc768..0cefa280ac79445c1d0ca21ac9e89b3c40287c89 100644 (file)
@@ -33,7 +33,6 @@ An article --- a jumbo one
 :category: Examples
 :tags: Jumbo
 :author: An Author
-:slug: jumbo-article
 :summary: Article summary paragraph. :language-la:`Lorem ipsum dolor sit amet,
     consectetur adipiscing elit. Aenean id elit posuere, consectetur magna
     congue, sagittis est.`
index 42c3b0ef9a2d219061f6be4052712a887f2b09ea..95fbfb3678911d27775078a137fa37751024e950 100644 (file)
@@ -163,8 +163,8 @@ PAGE_URL = '{slug}/'
 PAGE_SAVE_AS = '{slug}/index.html'
 ARCHIVES_URL = 'examples/'
 ARCHIVES_SAVE_AS = 'examples/index.html'
-ARTICLE_URL = '{category}/{slug}/'
-ARTICLE_SAVE_AS = '{category}/{slug}/index.html'
+ARTICLE_URL = '{slug}/' # category is part of the slug (i.e., examples)
+ARTICLE_SAVE_AS = '{slug}/index.html'
 AUTHOR_URL = 'author/{slug}/'
 AUTHOR_SAVE_AS = 'author/{slug}/index.html'
 CATEGORY_URL = 'category/{slug}/'