diff options
-rw-r--r-- | README.rst | 52 | ||||
-rw-r--r-- | bootlex/templates/article.html | 8 | ||||
-rw-r--r-- | bootlex/templates/base.html | 16 | ||||
-rw-r--r-- | bootlex/templates/index.html | 11 | ||||
-rw-r--r-- | bootlex/templates/tags.html | 2 | ||||
-rw-r--r-- | notmyidea-cms-fr/templates/article.html | 8 | ||||
-rw-r--r-- | notmyidea-cms/templates/article.html | 2 | ||||
-rw-r--r-- | syte/README.md | 4 | ||||
-rw-r--r-- | tuxlite_tbs/templates/archives.html | 2 | ||||
-rw-r--r-- | tuxlite_tbs/templates/base.html | 2 |
10 files changed, 77 insertions, 30 deletions
@@ -1,5 +1,51 @@ -Pelican themes +Pelican Themes ############## -This repository contains themes for pelican, feel free to clone, add you own -and make a pull request, it's community-managed! +This repository contains themes for Pelican. Feel free to clone, add your own +theme, and submit a pull request. It's community-managed! + +Using Themes +############ + +These instructions assume you have already completed the `Getting Started`_ +guide, have a working site, and would now like to apply a non-default theme. + +.. _Getting Started: http://docs.getpelican.com/en/latest/getting_started.html + +First, choose a location to hold your themes. For this example, we'll use the +directory ``~/pelican-themes``, but yours could be different. Clone the +``pelican-themes`` repository to that location on your local machine: + +.. code-block:: sh + + git clone https://github.com/getpelican/pelican-themes ~/pelican-themes + +Now you should have your ``pelican-themes`` repository stored at +``~/pelican-themes/``. + +To use one of the themes, edit your Pelican settings file to include this line: + +.. code-block:: python + + THEME = "~/pelican-themes/theme-name" + +So, for instance, to use the ``mnmlst`` theme, you would edit your settings +file to include: + +.. code-block:: python + + THEME = "~/pelican-themes/mnmlst" + +Save the changes to your settings file and then regenerate your site by using +the Makefile you should already have set up using ``pelican-quickstart``: + +.. code-block:: sh + + make html + +Themes can also be specified directly via the ``-t ~/pelican-themes/theme-name`` +parameter to the ``pelican`` command. If you want to edit your theme, make sure +that any edits you make are made to the copy stored in +``~/pelican-themes/theme-name``. Any changes made to +files stored in your site's ``output`` directory will be deleted the next +time you generate your site. diff --git a/bootlex/templates/article.html b/bootlex/templates/article.html index d2cfda6..7c64418 100644 --- a/bootlex/templates/article.html +++ b/bootlex/templates/article.html @@ -1,11 +1,11 @@ {% extends "base.html" %} {% block title %}{{ article.title }}{%endblock%} -{% block content %} -<div id="content"> +{% block content %} +<div id="content"> <div class="header"> <h1>{{ article.title }}</h1> </div> - <p class="meta"><small><span>{% if article.author %}<a href="{{ SITEURL }}author/{{ article.author.slug }}/">{{ article.author }}</a> - {% endif %}</span><span>{{ article.locale_date }}</span> - <span class="tags">{% if article.tags %}{% for tag in article.tags %}<a href="/tag/{{ tag }}/">{{ tag }}</a>{% if not loop.last %}, {% endif %}{% endfor %}{% endif %}</span></small></p> + <p class="meta"><small><span>{% if article.author %}<a href="{{ SITEURL }}/author/{{ article.author.slug }}/">{{ article.author }}</a> - {% endif %}</span><span>{{ article.locale_date }}</span> - <span class="tags">{% if article.tags %}{% for tag in article.tags %}<a href="/tag/{{ tag }}/">{{ tag }}</a>{% if not loop.last %}, {% endif %}{% endfor %}{% endif %}</span></small></p> <div class="entry-content"> {{ article.content }} </div><!-- /.entry-content --> @@ -14,7 +14,7 @@ <script type="text/javascript"> /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ var disqus_shortname = '{{ DISQUS_SITENAME }}'; // required: replace example with your forum shortname - + /* * * DON'T EDIT BELOW THIS LINE * * */ (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; diff --git a/bootlex/templates/base.html b/bootlex/templates/base.html index 481fb28..ed1bf94 100644 --- a/bootlex/templates/base.html +++ b/bootlex/templates/base.html @@ -12,9 +12,9 @@ <link href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" /> {% endif %} {% endblock head %} - + {% include 'analytics.html' %} - + </head> <body> @@ -57,12 +57,12 @@ {% endfor %} {% endif %} </ul> - </div><!-- /#menu --> + </div><!-- /#menu --> </div> </div> - + <hr /> - + <div class="row"> <div class="span12"> <div id="about"> @@ -71,12 +71,12 @@ </div><!-- /#contentinfo --> </div> </div> - + {% if DISQUS_SITENAME %} <script type="text/javascript"> /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ var disqus_shortname = '{{ DISQUS_SITENAME }}'; // required: replace example with your forum shortname - + /* * * DON'T EDIT BELOW THIS LINE * * */ (function () { var s = document.createElement('script'); s.async = true; @@ -86,6 +86,6 @@ }()); </script> {% endif %} - + </body> </html> diff --git a/bootlex/templates/index.html b/bootlex/templates/index.html index c76ab3e..517016f 100644 --- a/bootlex/templates/index.html +++ b/bootlex/templates/index.html @@ -1,15 +1,15 @@ {% extends "base.html" %} {% block title %}Blog{%endblock%} -{% block content %} +{% block content %} <div id="content"> {% block content_title %} <h1>Blog</h1> {% endblock %} <ul class="unstyled"> -{% for article in articles_page.object_list %} +{% for article in articles_page.object_list %} <li> - <div> + <div> <div class="header"> <h2>{{ article.title }}</h2> </div> @@ -29,12 +29,11 @@ </div> </div> </li> - + <li><hr /></li> - - {% endfor %} </ul><!-- /#posts-list --> + <div class="pagination pagination-centered"> <ul> {% if articles_page.has_previous() and (articles_page.previous_page_number() != 1) %} diff --git a/bootlex/templates/tags.html b/bootlex/templates/tags.html index 87f134c..a2ebbe3 100644 --- a/bootlex/templates/tags.html +++ b/bootlex/templates/tags.html @@ -8,7 +8,7 @@ class="active" {% if tags %} <ul> {% for tag, articles in tags %} - <li><a href="{{ SITEURL }}tag/{{ tag }}/">{{ tag }}</a></li> + <li><a href="{{ SITEURL }}/tag/{{ tag }}/">{{ tag }}</a></li> {% endfor %} </ul> {% else %} diff --git a/notmyidea-cms-fr/templates/article.html b/notmyidea-cms-fr/templates/article.html index 24767dd..bc7f574 100644 --- a/notmyidea-cms-fr/templates/article.html +++ b/notmyidea-cms-fr/templates/article.html @@ -1,7 +1,7 @@ {% extends "base.html" %} -{% block title %}{{ article.title }}{% endblock %} -{% block content %} -<section id="content" class="body"> +{% block title %}{{ article.title|striptags }}{% endblock %} +{% block content %} +<section id="content" class="body"> <article> <header> <h1 class="entry-title"><a href="{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title }}">{{ article.title @@ -16,7 +16,7 @@ Par <a class="url fn" href="#">{{ article.author }}</a> </address> {% endif %} - <p>Dans <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>. + <p>Dans <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>. {% include 'taglist.html' %} </footer><!-- /.post-info --> {{ article.content }} diff --git a/notmyidea-cms/templates/article.html b/notmyidea-cms/templates/article.html index 79ad679..6f50605 100644 --- a/notmyidea-cms/templates/article.html +++ b/notmyidea-cms/templates/article.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% block title %}{{ article.title }}{% endblock %} +{% block title %}{{ article.title|striptags }}{% endblock %} {% block content %} <section id="content" class="body"> <article> diff --git a/syte/README.md b/syte/README.md index c9159ec..bae5417 100644 --- a/syte/README.md +++ b/syte/README.md @@ -21,7 +21,9 @@ All these settings are optional, not using them will simply not enable the socia ###### Not so optional -Pelican-syte uses the webassets module integrated into Pelican, so you will also need to install it ( `pip install webassets` ) and add the `WEBASSETS = True` setting. +Pelican-syte uses the webassets module integrated into Pelican, so you +will also need to install it ( `pip install webassets` ) and add the +`pelican.plugins.assets` plugin to `PLUGINS` setting. #### Links diff --git a/tuxlite_tbs/templates/archives.html b/tuxlite_tbs/templates/archives.html index 1520943..20fcd87 100644 --- a/tuxlite_tbs/templates/archives.html +++ b/tuxlite_tbs/templates/archives.html @@ -9,7 +9,7 @@ {% for article in dates %} <tr> <td>{{ article.date.strftime("%d %b %Y") }}</td> - <td><a href='{{ article.url }}'>{{ article.title }}</a></td> + <td><a href='{{ SITEURL }}/{{ article.url }}'>{{ article.title }}</a></td> </tr> {% endfor %} </tbody> diff --git a/tuxlite_tbs/templates/base.html b/tuxlite_tbs/templates/base.html index 59cfae7..2c18586 100644 --- a/tuxlite_tbs/templates/base.html +++ b/tuxlite_tbs/templates/base.html @@ -68,7 +68,7 @@ Site </li> - <li><a href="{{ SITEURL }}/archives.html">Archives</a> + <li><a href="{{ SITEURL }}/{{ ARCHIVES_URL }}">Archives</a> <li><a href="{{ SITEURL }}/tags.html">Tags</a> <li><a href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" rel="alternate">Atom feed</a></li> {% if FEED_RSS %} |