Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Make bootblog4 look better (still not finished)
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
- Loading branch information
Showing
25 changed files
with
292 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{# -*- coding: utf-8 -*- #} | ||
{% macro breadcrumbs(crumbs) %} | ||
{% if crumbs %} | ||
<nav class="breadcrumbs"> | ||
<ul class="breadcrumb"> | ||
{% for link, text in crumbs %} | ||
{% if text != index_file %} | ||
{% if link == '#' %} | ||
<li>{{ text.rsplit('.html', 1)[0] }}</li> | ||
{% else %} | ||
<li><a href="{{ link }}">{{ text }}</a></li> | ||
{% endif %} | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
</nav> | ||
{% endif %} | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...la/data/themes/base/templates/crumbs.tmpl → ...data/themes/base/templates/ui_helper.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
## -*- coding: utf-8 -*- | ||
<%namespace name="helper" file="index_helper.tmpl"/> | ||
<%namespace name="math" file="math_helper.tmpl"/> | ||
<%namespace name="comments" file="comments_helper.tmpl"/> | ||
<%namespace name="pagination" file="pagination_helper.tmpl"/> | ||
<%namespace name="feeds_translations" file="feeds_translations_helper.tmpl" import="*"/> | ||
<%inherit file="base.tmpl"/> | ||
|
||
<%block name="extra_head"> | ||
${parent.extra_head()} | ||
% if posts and (permalink == '/' or permalink == '/' + index_file): | ||
<link rel="prefetch" href="${posts[0].permalink()}" type="text/html"> | ||
% endif | ||
${math.math_styles_ifposts(posts)} | ||
</%block> | ||
|
||
<%block name="content"> | ||
<%block name="content_header"> | ||
${feeds_translations.translation_link(kind)} | ||
</%block> | ||
% if 'main_index' in pagekind: | ||
${front_index_header} | ||
% endif | ||
% if page_links: | ||
${pagination.page_navigation(current_page, page_links, prevlink, nextlink, prev_next_links_reversed)} | ||
% endif | ||
<div class="postindex"> | ||
% for post in posts: | ||
<article class="h-entry post-${post.meta('type')}"> | ||
<header> | ||
<h1 class="p-name entry-title"><a href="${post.permalink()}" class="u-url">${post.title()|h}</a></h1> | ||
<div class="metadata"> | ||
<p class="byline author vcard"><span class="byline-name fn" itemprop="author"> | ||
% if author_pages_generated: | ||
<a href="${_link('author', post.author())}">${post.author()|h}</a> | ||
% else: | ||
${post.author()|h} | ||
% endif | ||
</span></p> | ||
<p class="dateline"><a href="${post.permalink()}" rel="bookmark"><time class="published dt-published" datetime="${post.formatted_date('webiso')}" title="${post.formatted_date(date_format)|h}">${post.formatted_date(date_format)|h}</time></a></p> | ||
% if not post.meta('nocomments') and site_has_comments: | ||
<p class="commentline">${comments.comment_link(post.permalink(), post._base_path)} | ||
% endif | ||
</div> | ||
</header> | ||
%if index_teasers: | ||
<div class="p-summary entry-summary"> | ||
${post.text(teaser_only=True)} | ||
%else: | ||
<div class="e-content entry-content"> | ||
${post.text(teaser_only=False)} | ||
%endif | ||
</div> | ||
</article> | ||
% endfor | ||
</div> | ||
${helper.html_pager()} | ||
${comments.comment_link_script()} | ||
${math.math_scripts_ifposts(posts)} | ||
</%block> |
Oops, something went wrong.