Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds THEME_COLORS, POSTS_CATEGORIES, POSTS_CATEGORY_*, and HUSL color…
… functions Issue #1980
- Loading branch information
Showing
14 changed files
with
266 additions
and
1 deletion.
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
21 changes: 21 additions & 0 deletions
21
nikola/data/themes/base-jinja/templates/categoryindex.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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,21 @@ | |||
{# -*- coding: utf-8 -*- #} | |||
{% extends 'index.tmpl' %} | |||
|
|||
{% block extra_head %} | |||
{{ super() }} | |||
{% if generate_atom %} | |||
<link rel="alternate" type="application/atom+xml" title="Atom for the {{ posts[0].category_name() }} section" href="/FIXME"> | |||
{% endif %} | |||
{% endblock %} | |||
|
|||
{% block content %} | |||
<div class="categoryindex"> | |||
<header style="background: {{ posts[0].category_color() }}"> | |||
<h2><a href="{{ posts[0].category_link() }}">{{ posts[0].category_name() }}</a></h2> | |||
{% if generate_atom %} | |||
<p class="feedlink"><a href="{{ _link('cat_index_atom', posts[0].category_slug()) }}" type="application/atom+xml">{{ messages('updates') }}</a></p> | |||
{% endif %} | |||
</header> | |||
{{ parent.content() }} | |||
</article> | |||
{% endblock %} |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,21 @@ | |||
## -*- coding: utf-8 -*- | |||
<%inherit file="index.tmpl"/> | |||
|
|||
<%block name="extra_head"> | |||
${parent.extra_head()} | |||
% if generate_atom: | |||
<link rel="alternate" type="application/atom+xml" title="Atom for the ${posts[0].category_name()} section" href="/FIXME"> | |||
% endif | |||
</%block> | |||
|
|||
<%block name="content"> | |||
<div class="categoryindex"> | |||
<header style="background: ${posts[0].category_color()}"> | |||
<h2><a href="${posts[0].category_link()}">${posts[0].category_name()}</a></h2> | |||
% if generate_atom: | |||
<p class="feedlink"><a href="${_link('cat_index_atom', posts[0].category_slug())}" type="application/atom+xml">${messages('updates')}</a></p> | |||
% endif | |||
</header> | |||
${parent.content()} | |||
</article> | |||
</%block> |
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
Oops, something went wrong.