mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Sort articles by date. A bit more templates. Add an author field.
--HG-- rename : pelican/templates/archives.html => pelican/themes/archives.html rename : pelican/templates/article.html => pelican/themes/article.html rename : pelican/templates/categories.html => pelican/themes/categories.html rename : pelican/templates/category.html => pelican/themes/category.html rename : pelican/templates/index.html => pelican/themes/index.html rename : pelican/templates/tag.html => pelican/themes/tag.html rename : pelican/templates/tags.html => pelican/themes/tags.html
This commit is contained in:
parent
9351152152
commit
3634e5c49d
20 changed files with 123 additions and 30 deletions
|
|
@ -19,11 +19,14 @@ parser.add_argument('-o', '--output', default=None, dest='output',
|
|||
parser.add_argument('-m', '--markup', default='rest', dest='markup',
|
||||
help='the markup language to use. Currently only ReSTreucturedtext is'
|
||||
' available.')
|
||||
parser.add_argument('-s', '--settings', default=None, dest='settings',
|
||||
help='the settings of the application. Default to None.')
|
||||
|
||||
if __name__ == '__main__':
|
||||
args = parser.parse_args()
|
||||
files = []
|
||||
for root, dirs, temp_files in os.walk(args.path, followlinks=True):
|
||||
files.extend([os.sep.join((root, f)) for f in temp_files])
|
||||
generate_output(files, args.templates, args.output, args.markup)
|
||||
generate_output(files, args.templates, args.output, args.markup,
|
||||
args.settings)
|
||||
print 'Done !'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue