Skip to content

Commit

Permalink
Put the notmyidea theme by default.
Browse files Browse the repository at this point in the history
--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
  • Loading branch information
Alexis Metaireau committed Oct 30, 2010
1 parent 4438a73 commit 41a5f39
Show file tree
Hide file tree
Showing 29 changed files with 21 additions and 14 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
include *.rst
recursive-include pelican *.html
recursive-include pelican *.html *.css *png
include LICENSE
2 changes: 1 addition & 1 deletion bin/pelican
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
Expand Down
4 changes: 2 additions & 2 deletions pelican/contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -35,7 +35,7 @@ def summary(self):


class Article(Page):
mandatory_properties = ('author', 'title', 'date', 'category')
mandatory_properties = ('title', 'date', 'category')


class Quote(Page):
Expand Down
2 changes: 1 addition & 1 deletion pelican/settings.py
Original file line number Diff line number Diff line change
@@ -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/',
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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 -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ <h2 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.tit
{{ 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 -->
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions samples/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
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/"),
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

setup(
name = "pelican",
version = '2.0',
version = '2.1',
url = 'http://hg.lolnet.org/pelican/',
author = 'Alexis Metaireau',
author_email = '[email protected]',
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',
Expand Down

0 comments on commit 41a5f39

Please sign in to comment.