diff --git a/MANIFEST.in b/MANIFEST.in index 4dc39a85..996b1814 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,3 @@ include *.rst -recursive-include pelican *.html +recursive-include pelican *.html *.css *png include LICENSE diff --git a/bin/pelican b/bin/pelican index d85eaf3c..e39d8c3a 100755 --- a/bin/pelican +++ b/bin/pelican @@ -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.') diff --git a/pelican/contents.py b/pelican/contents.py index a805efc2..0038b2fa 100644 --- a/pelican/contents.py +++ b/pelican/contents.py @@ -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): diff --git a/pelican/settings.py b/pelican/settings.py index c7e60dc3..670584be 100644 --- a/pelican/settings.py +++ b/pelican/settings.py @@ -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/', diff --git a/samples/themes/notmyidea/css/main.css b/pelican/themes/notmyidea/css/main.css similarity index 100% rename from samples/themes/notmyidea/css/main.css rename to pelican/themes/notmyidea/css/main.css diff --git a/samples/themes/notmyidea/css/pygment.css b/pelican/themes/notmyidea/css/pygment.css similarity index 100% rename from samples/themes/notmyidea/css/pygment.css rename to pelican/themes/notmyidea/css/pygment.css diff --git a/samples/themes/notmyidea/css/reset.css b/pelican/themes/notmyidea/css/reset.css similarity index 100% rename from samples/themes/notmyidea/css/reset.css rename to pelican/themes/notmyidea/css/reset.css diff --git a/samples/themes/notmyidea/images/icons/delicious.png b/pelican/themes/notmyidea/images/icons/delicious.png similarity index 100% rename from samples/themes/notmyidea/images/icons/delicious.png rename to pelican/themes/notmyidea/images/icons/delicious.png diff --git a/samples/themes/notmyidea/images/icons/lastfm.png b/pelican/themes/notmyidea/images/icons/lastfm.png similarity index 100% rename from samples/themes/notmyidea/images/icons/lastfm.png rename to pelican/themes/notmyidea/images/icons/lastfm.png diff --git a/samples/themes/notmyidea/images/icons/rss.png b/pelican/themes/notmyidea/images/icons/rss.png similarity index 100% rename from samples/themes/notmyidea/images/icons/rss.png rename to pelican/themes/notmyidea/images/icons/rss.png diff --git a/samples/themes/notmyidea/images/icons/twitter.png b/pelican/themes/notmyidea/images/icons/twitter.png similarity index 100% rename from samples/themes/notmyidea/images/icons/twitter.png rename to pelican/themes/notmyidea/images/icons/twitter.png diff --git a/samples/themes/notmyidea/templates/archives.html b/pelican/themes/notmyidea/templates/archives.html similarity index 100% rename from samples/themes/notmyidea/templates/archives.html rename to pelican/themes/notmyidea/templates/archives.html diff --git a/samples/themes/notmyidea/templates/article.html b/pelican/themes/notmyidea/templates/article.html similarity index 79% rename from samples/themes/notmyidea/templates/article.html rename to pelican/themes/notmyidea/templates/article.html index 4aed28f4..63384b9c 100644 --- a/samples/themes/notmyidea/templates/article.html +++ b/pelican/themes/notmyidea/templates/article.html @@ -9,9 +9,12 @@ {{ article.date.strftime('%a %d %B %Y') }} + {% if article.author %}
By {{ article.author }} - In {{ article.category }} + + {% endif %} + {{ article.content }} diff --git a/samples/themes/notmyidea/templates/base.html b/pelican/themes/notmyidea/templates/base.html similarity index 92% rename from samples/themes/notmyidea/templates/base.html rename to pelican/themes/notmyidea/templates/base.html index a9572db8..4552016d 100644 --- a/samples/themes/notmyidea/templates/base.html +++ b/pelican/themes/notmyidea/templates/base.html @@ -20,7 +20,9 @@ -
+{% if GITHUB_URL %}
+
+{% endif %}