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

@ -17,7 +17,7 @@ Image: /images/sardines.jpg
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.
@ -25,3 +25,8 @@ Theme borrowed from atom's editor one dark syntax.
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 %}
{# aside content #}
{% 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>
<nav class="ui fluid secondary menu">
<a href="{{ SITEURL }}/" class="header item"><i class="home icon"></i></a>
@ -43,7 +43,7 @@
{# main content #}
{% 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">
<h1 class="ui header">{{ article.title }}</h1>

View File

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

View File

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

View File

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

View File

@ -30,7 +30,7 @@
<footer class="extra content">
<a href="/{{ article.url }}"><i class="angle double right icon"></i> lire</a>
<!--<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
</a>
</footer>

View File

@ -1,5 +1,5 @@
{# 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 %}
<div class="ui horizontal divider">
<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 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 :
- breadcrumb links items
- pagination links

View File

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

View File

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

View File

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