1
0

fixes + readme

* correctif liens pocket
* nommage des endblocks
* réadmet + ajout capture
This commit is contained in:
Jérémie Ducastel
2015-08-10 13:37:36 +02:00
parent dfe668a992
commit 90d68a9a4b
13 changed files with 56 additions and 60 deletions

View File

@ -8,7 +8,7 @@ A theme for [pelican](http://getpelican.com/).
* share links in article view. * share links in article view.
### post illustration ### post illustration
supports article's Image metadata, will be shown in cards and as main illustration. supports article's Image metadata, will be shown in cards and as main illustration.
```markdown ```markdown
Title: Sardines Title: Sardines
@ -17,7 +17,7 @@ Image: /images/sardines.jpg
Same syntax used by Representative Image plugin, however this plugin is not required. Same syntax used by Representative Image plugin, however this plugin is not required.
### syntax hihglighting ### syntax highlighting
Theme borrowed from atom's editor one dark syntax. Theme borrowed from atom's editor one dark syntax.
@ -25,3 +25,8 @@ Theme borrowed from atom's editor one dark syntax.
Based on [semantic-ui](https://github.com/Semantic-Org/Semantic-UI). Based on [semantic-ui](https://github.com/Semantic-Org/Semantic-UI).
## previews
### index views
![capture of sardines pelican theme's index page](/index.png?raw=true)

BIN
index.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 KiB

View File

@ -5,7 +5,7 @@
{% block local %} {% block local %}
{# aside content #} {# aside content #}
{% block local_aside %} {% block local_aside %}
<aside id="local-aside" class="six wide computer four wide tablet column"> <aside id="local-aside" class="six wide computer twelve wide tablet column">
{#}<span class="ui horizontal divider"><i class="location arrow icon"></i></span> {#}<span class="ui horizontal divider"><i class="location arrow icon"></i></span>
<nav class="ui fluid secondary menu"> <nav class="ui fluid secondary menu">
<a href="{{ SITEURL }}/" class="header item"><i class="home icon"></i></a> <a href="{{ SITEURL }}/" class="header item"><i class="home icon"></i></a>
@ -43,7 +43,7 @@
{# main content #} {# main content #}
{% block main %} {% block main %}
<main id="main" class="ui eight wide computer ten wide tablet column"> <main id="main" class="ui eight wide computer twelve wide tablet column">
<article id="article" class="ui top attached segment"> <article id="article" class="ui top attached segment">
<h1 class="ui header">{{ article.title }}</h1> <h1 class="ui header">{{ article.title }}</h1>

View File

@ -1,11 +1,11 @@
{% extends "index.html" %} {% extends "index.html" %}
{% block title %}{{ author }} | {{ SITENAME }}{% endblock %} {% block title %}{{ author }} | {{ SITENAME }}{% endblock title %}
{% block breadcrumb %} {% block breadcrumb %}
<a href="/" class="item"><i class="home icon"></i></a> <a href="/" class="item"><i class="home icon"></i></a>
<span class="active item" data-content="{{ tag }}"><i class="user icon"></i> {{ author }}</span> <span class="active item" data-content="{{ tag }}"><i class="user icon"></i> {{ author }}</span>
{% endblock %} {% endblock breadcrumb %}
{% block feeds %} {% block feeds %}
{% if AUTHOR_FEED_ATOM %}{# TO DO : formatage ur categorie #} {% if AUTHOR_FEED_ATOM %}{# TO DO : formatage ur categorie #}
@ -17,4 +17,4 @@
<i class="user icon"></i><i class="feed icon"></i> <i class="user icon"></i><i class="feed icon"></i>
</a> </a>
{% endif %} {% endif %}
{% endblock %} {% endblock feeds %}

View File

@ -22,29 +22,30 @@
</head> </head>
{# TODO indentation, commentaires #} {# TODO indentation, commentaires #}
{# FIXME appels javascript ko ? #}
<body>{% block body %} <body>{% block body %}
<div id="grid" class="ui stackable grid"> <div id="grid" class="ui stackable grid">
{% block header %}<header id="header" class="sixteen wide column"> {% block header %}<header id="header" class="sixteen wide column">
<a href="/" class="ui header title"> <a href="/" class="ui header title">
{{ SITENAME }} {{ SITENAME }}
{% if SITESUBTITLE %}<small class="subtitle">{{ SITESUBTITLE }}</small>{% endif %} {% if SITESUBTITLE %}<small class="subtitle">{{ SITESUBTITLE }}</small>{% endif %}
</a> </a>
</header> </header>
{% endblock %} {% endblock header %}
{# pages (changing) content #} {# pages (changing) content #}
{% block local %}<div id="local" class="fourteen wide computer column"> {% block local %}<div id="local" class="fourteen wide computer twelve wide tablet column">
<article class="ui segment"> <article class="ui segment">
<p>hello content</p> <p>hello content</p>
</article> </article>
</div>{% endblock %} </div>{% endblock local %}
{# global / fixed content #} {# global / fixed content #}
{% block global %} {% block global %}
{% include "inc/global-navs.aside.html" %} {% include "inc/global-navs.aside.html" %}
{% endblock %} {% endblock global %}
{% endblock %}</div>{# end grid #} </div>{% endblock body %}
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/jquery/jquery.min.js"></script>
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/semantic-ui/semantic.min.js"></script> {# FIXME appels javascript ko ? #}
{#}<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/jquery/jquery.min.js"></script>
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/semantic-ui/semantic.min.js"></script>#}
</body> </body>
</html> </html>

View File

@ -1,11 +1,11 @@
{% extends "index.html" %} {% extends "index.html" %}
{% block title %}{{ category }} | {{ SITENAME }}{% endblock %} {% block title %}{{ category }} | {{ SITENAME }}{% endblock title %}
{% block breadcrumb %} {% block breadcrumb %}
<a href="/" class="item"><i class="home icon"></i></a> <a href="/" class="item"><i class="home icon"></i></a>
<span class="active item" data-content="{{ category }}"><i class="folder icon"></i> {{ category }}</span> <span class="active item" data-content="{{ category }}"><i class="folder icon"></i> {{ category }}</span>
{% endblock %} {% endblock breadcrumb %}
{% block feeds %} {% block feeds %}
{% if CATEGORY_FEED_ATOM %}{# TO DO : formatage ur categorie #} {% if CATEGORY_FEED_ATOM %}{# TO DO : formatage ur categorie #}
@ -17,4 +17,4 @@
<i class="folder icon"></i><i class="feed icon"></i> <i class="folder icon"></i><i class="feed icon"></i>
</a> </a>
{% endif %} {% endif %}
{% endblock %} {% endblock feeds %}

View File

@ -30,7 +30,7 @@
<footer class="extra content"> <footer class="extra content">
<a href="/{{ article.url }}"><i class="angle double right icon"></i> lire</a> <a href="/{{ article.url }}"><i class="angle double right icon"></i> lire</a>
<!--<span class="right floated">{{ article.locale_date }}</span>--> <!--<span class="right floated">{{ article.locale_date }}</span>-->
<a href="https://getpocket.com/save?url={{ SITEURL }}/{{ article.category.url }}" title="Save to pocket" class="right floated"> <a href="https://getpocket.com/save?url={{ SITEURL }}/{{ article.url }}" title="Save to pocket" class="right floated">
<i class="cloud upload icon"></i> pocket <i class="cloud upload icon"></i> pocket
</a> </a>
</footer> </footer>

View File

@ -1,5 +1,5 @@
{# navigation globale #} {# navigation globale #}
<aside id="global" class="two wide computer column"> <aside id="global" class="two wide computer four wide tablet column">
{% if DISPLAY_CATEGORIES_ON_MENU %} {% if DISPLAY_CATEGORIES_ON_MENU %}
<div class="ui horizontal divider"> <div class="ui horizontal divider">
<i class="folder icon"></i> <i class="folder icon"></i>

View File

@ -1,10 +0,0 @@
<div class="ui horizontal divider"><i class="file icon"></i></div>
<nav class="ui large vertical fluid secondary menu">{% for p in PAGES %}
{% if page and p.slug == page.slug %}
<a href="{{ SITEURL }}/{{ p.url }}" class="active item">{{ p.title }}</a>
{% else %}
<a href="{{ SITEURL }}/{{ p.url }}" class="item">{{ p.title }}</a>
{% endif %}
{% endfor %}
</nav>

View File

@ -2,7 +2,7 @@
{% block title %}{% if category %}{% elif tag %}{{ tag }} | {{ SITENAME }}{% else %}{{ SITENAME }}{% endif %}{% endblock %} {% block title %}{% if category %}{% elif tag %}{{ tag }} | {{ SITENAME }}{% else %}{{ SITENAME }}{% endif %}{% endblock %}
{% block local %}<div id="local" class="fourteen wide computer column"> {% block local %}<div id="local" class="fourteen wide computer twelve wide tablet column">
{# local navigation : 1 semantic-ui menu, three jinja blocks : {# local navigation : 1 semantic-ui menu, three jinja blocks :
- breadcrumb links items - breadcrumb links items
- pagination links - pagination links

View File

@ -1,6 +1,6 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block title %}{{ page.title }} | {{ SITENAME }}{% endblock %} {% block title %}{{ page.title }} | {{ SITENAME }}{% endblock title %}
{% block local %} {% block local %}
@ -13,16 +13,16 @@
</nav> </nav>
{#}{% include "inc/pages.nav.html" %}#} {#}{% include "inc/pages.nav.html" %}#}
</aside> </aside>
{% endblock %} {% endblock local_aside %}
{% block main %}<main class="nine wide column"> {% block main %}<main class="nine wide column">
<article class="ui segment"> <article class="ui segment">
<h1 class="entry-title">{{ page.title }}</h1> <h1 class="entry-title">{{ page.title }}</h1>
{% import 'translations.html' as translations with context %} {% import 'translations.html' as translations with context %}
{{ translations.translations_for(page) }} {{ translations.translations_for(page) }}
{{ page.content }} {{ page.content }}
</article> </article>
</main> </main>
{% endblock %} {% endblock main %}
{% endblock %} {% endblock local %}

View File

@ -24,4 +24,4 @@
</article> </article>
</main> </main>
{% endif %} {% endif %}
{% endblock %} {% endblock local_content %}

View File

@ -1,11 +1,11 @@
{% extends "index.html" %} {% extends "index.html" %}
{% block title %}{{ tag }} | {{ SITENAME }}{% endblock %} {% block title %}{{ tag }} | {{ SITENAME }}{% endblock title %}
{% block breadcrumb %} {% block breadcrumb %}
<a href="/" class="item"><i class="home icon"></i></a> <a href="/" class="item"><i class="home icon"></i></a>
<span class="active item" data-content="{{ tag }}"><i class="tag icon"></i> {{ tag }}</span> <span class="active item" data-content="{{ tag }}"><i class="tag icon"></i> {{ tag }}</span>
{% endblock %} {% endblock breadcrumb %}
{% block feeds %} {% block feeds %}
{% if TAG_FEED_ATOM %}{# TO DO : formatage ur categorie #} {% if TAG_FEED_ATOM %}{# TO DO : formatage ur categorie #}
@ -17,4 +17,4 @@
<i class="tag icon"></i><i class="feed icon"></i> <i class="tag icon"></i><i class="feed icon"></i>
</a> </a>
{% endif %} {% endif %}
{% endblock %} {% endblock feeds %}