1
0
Fork 0
forked from github/pelican

Put the notmyidea theme by default.

--HG--
rename : samples/themes/notmyidea/css/main.css => pelican/themes/notmyidea/css/main.css
rename : samples/themes/notmyidea/css/pygment.css => pelican/themes/notmyidea/css/pygment.css
rename : samples/themes/notmyidea/css/reset.css => pelican/themes/notmyidea/css/reset.css
rename : samples/themes/notmyidea/images/icons/delicious.png => pelican/themes/notmyidea/images/icons/delicious.png
rename : samples/themes/notmyidea/images/icons/lastfm.png => pelican/themes/notmyidea/images/icons/lastfm.png
rename : samples/themes/notmyidea/images/icons/rss.png => pelican/themes/notmyidea/images/icons/rss.png
rename : samples/themes/notmyidea/images/icons/twitter.png => pelican/themes/notmyidea/images/icons/twitter.png
rename : samples/themes/notmyidea/templates/archives.html => pelican/themes/notmyidea/templates/archives.html
rename : samples/themes/notmyidea/templates/article.html => pelican/themes/notmyidea/templates/article.html
rename : samples/themes/notmyidea/templates/base.html => pelican/themes/notmyidea/templates/base.html
rename : samples/themes/notmyidea/templates/categories.html => pelican/themes/notmyidea/templates/categories.html
rename : samples/themes/notmyidea/templates/category.html => pelican/themes/notmyidea/templates/category.html
rename : samples/themes/notmyidea/templates/index.html => pelican/themes/notmyidea/templates/index.html
rename : samples/themes/notmyidea/templates/tag.html => pelican/themes/notmyidea/templates/tag.html
rename : samples/themes/notmyidea/templates/tags.html => pelican/themes/notmyidea/templates/tags.html
rename : pelican/themes/templates/archives.html => pelican/themes/simple/templates/archives.html
rename : pelican/themes/templates/article.html => pelican/themes/simple/templates/article.html
rename : pelican/themes/templates/base.html => pelican/themes/simple/templates/base.html
rename : pelican/themes/templates/categories.html => pelican/themes/simple/templates/categories.html
rename : pelican/themes/templates/category.html => pelican/themes/simple/templates/category.html
rename : pelican/themes/templates/index.html => pelican/themes/simple/templates/index.html
rename : pelican/themes/templates/tag.html => pelican/themes/simple/templates/tag.html
rename : pelican/themes/templates/tags.html => pelican/themes/simple/templates/tags.html
This commit is contained in:
Alexis Metaireau 2010-10-30 16:47:59 +01:00
commit 41a5f390fb
52 changed files with 945 additions and 938 deletions

View file

@ -1,3 +1,3 @@
include *.rst
recursive-include pelican *.html
recursive-include pelican *.html *.css *png
include LICENSE

View file

@ -10,7 +10,7 @@ parser.add_argument(dest='path',
help='Path where to find the content files (default is "content").')
parser.add_argument('-t', '--theme-path', dest='theme',
help='Path where to find the theme templates. If not specified, it will'
'use the ones included with pelican.')
'use the default one included with pelican.')
parser.add_argument('-o', '--output', dest='output',
help='Where to output the generated files. If not specified, a directory'
' will be created, named "output" in the current path.')

View file

@ -8,7 +8,7 @@ class Page(object):
:param string: the string to parse, containing the original content.
:param markup: the markup language to use while parsing.
"""
mandatory_properties = ('author', 'title')
mandatory_properties = ('title')
def __init__(self, content, metadatas={}, settings={}):
self.content = content
@ -35,7 +35,7 @@ class Page(object):
class Article(Page):
mandatory_properties = ('author', 'title', 'date', 'category')
mandatory_properties = ('title', 'date', 'category')
class Quote(Page):

View file

@ -1,7 +1,7 @@
import os
_DEFAULT_THEME = os.sep.join([os.path.dirname(os.path.abspath(__file__)),
"themes"])
"themes/notmyidea"])
_DEFAULT_CONFIG = {'PATH': None,
'THEME': _DEFAULT_THEME,
'OUTPUT_PATH': 'output/',

View file

Before

Width:  |  Height:  |  Size: 963 B

After

Width:  |  Height:  |  Size: 963 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 980 B

After

Width:  |  Height:  |  Size: 980 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 896 B

After

Width:  |  Height:  |  Size: 896 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 835 B

After

Width:  |  Height:  |  Size: 835 B

Before After
Before After

View file

@ -9,9 +9,12 @@
<abbr class="published" title="{{ article.date.isoformat() }}">
{{ article.date.strftime('%a %d %B %Y') }}
</abbr>
{% if article.author %}
<address class="vcard author">
By <a class="url fn" href="#">{{ article.author }}</a>
</address>In <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>
</address>
{% endif %}
<p>In <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a></p>
</footer><!-- /.post-info -->
{{ article.content }}
</div><!-- /.entry-content -->

View file

@ -20,7 +20,9 @@
</head>
<body id="index" class="home">
<a href="http://github.com/ametaireau"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" /></a>
{% if GITHUB_URL %}
<a href="{{ GITHUB_URL }}"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" /></a>
{% endif %}
<header id="banner" class="body">
<h1><a href="{{ SITEURL }}">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a></h1>

View file

@ -10,9 +10,11 @@
{{ article.date.strftime('%a %d %B %Y') }}
</abbr>
{% if article.author %}
<address class="vcard author">
By <a class="url fn" href="#">{{ article.author }}</a>
</address>In <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>
</address>
{% endif %}<p> In <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a></p>
</footer><!-- /.post-info -->
{{ article.content }}
</article></aside><!-- /#featured -->

View file

@ -3,11 +3,11 @@ PATH = 'samples/content'
THEME = 'samples/themes/notmyidea'
AUTHOR = u'Alexis Métaireau'
BLOGNAME = 'NotMyIdea.org'
BLOGSUBTITLE = u"%s's weblog" % AUTHOR
BLOGURL = 'http://blog.notmyidea.org'
SITENAME = 'Pelican'
SITESUBTITLE = u"%s's weblog" % AUTHOR
SITEURL = 'http://blog.notmyidea.org'
BLOGROLL = (('Biologeek', 'http://biologeek.org'),
SITEROLL = (('Biologeek', 'http://biologeek.org'),
('Filyb', "http://filyb.info/"),
('Libert-fr', "http://www.libert-fr.com"),
('N1k0', "http://prendreuncafe.com/blog/"),

View file

@ -7,14 +7,14 @@ if sys.version_info < (2,7):
setup(
name = "pelican",
version = '2.0',
version = '2.1',
url = 'http://hg.lolnet.org/pelican/',
author = 'Alexis Metaireau',
author_email = 'alexis@notmyidea.org',
description = "A tool to generate a static blog, with restructured text input files.",
long_description=open('README.rst').read(),
packages = ['pelican'],
package_data = {'pelican': ['themes/templates/*']},
include_package_data = True,
install_requires = requires,
scripts = ['bin/pelican'],
classifiers = ['Development Status :: 5 - Production/Stable',