Skip to content
Permalink
Browse files
fix link
  • Loading branch information
ralsina committed Sep 3, 2015
1 parent 5b3b2ea commit 9c2e0edb77db577c54007e037f27b717b27b9696
Showing with 1 addition and 1 deletion.
  1. +1 −1 posts/new-feature-in-nikola-sections.html
@@ -21,5 +21,5 @@
<p>Additionally, each section and every post in that section will be automatically assigned a color created by shifting the hue of the site’s THEME_COLOR option in the <a href="http://www.husl-colors.org/">HUSL color space</a>. This creates a visually similar color that can be used to style the posts and the sections in a uniform way, allowing each section to have a unique style of their own. The color can be called from a theme using <code>post.section_color()</code> and can be used in an inline styles or a style element. The color manipulation functions can also be accessed directly in <a href="https://getnikola.com/creating-a-theme.html#customizing-themes-to-user-color-preference-and-section-colors">theme templates</a>, allowing for shifting hue, saturation, or lightness of a given color. For example, a lighter version of a section’s color can be retrieved using <code>color_hsl_adjust_hex( post.section_color(), adjust_l=0.05 )</code>.</p> <p>The options for controlling the behavior of sections are better documented in <samp>conf.py</samp> and include:</p> <ul>
<li> <code>POSTS_SECTIONS</code> for enabling or disabling sections (on by default)</li> <li> <code>POSTS_SECTION_ARE_INDEXES</code> for making posts lists instead of indexes</li> <li> <code>POSTS_SECTION_COLOR</code> for manually assigning colors to sections rather than auto-generated colors from <code>THEME_COLOR</code> </li> <li> <code>POSTS_SECTION_NAME</code> for naming sections separately from their output folders</li> <li> <code>POSTS_SECTION_TITLE</code> for controlling the title of the section indexes</li> <li> <code>POSTS_SECTION_DESCRIPTION</code> for giving each section a description</li> </ul>
<p>There is currently no way of generating a list of all sections. A site is not expected to need more than three–twelve sections at the most.</p> <p>Sections will be available in Nikola version 7.7.0 due later this week.</p> <p>Drop by the <a href="https://getnikola.com/contact.html#help-and-support">Nikola mailing list or chat room</a>if you’ve built something cool with sections or just need a little help.</p> <hr>
<section><h3>What on Earth is “Nikola,” anyway?</h3> <p>Nikola is a static site generator built in Python. What that means, is that it can turn a collection of text files into a beautiful website using templates and a collection of ready-made themes. This website, even this very page!, was built using Nikola. Learn more at the <a href="https://getnikola.com/">Nikola website</a>.</p> <p>I’ve <a href="/projects/nikola/index.html">contributed to the development of Nikola</a> for the last two years — the new sectioning system only in the last week — and I’m really happy with how Nikola works, the community, and especially how it has helped me build a great website that I’m really proud of.</p> </section>
<section><h3>What on Earth is “Nikola,” anyway?</h3> <p>Nikola is a static site generator built in Python. What that means, is that it can turn a collection of text files into a beautiful website using templates and a collection of ready-made themes. This website, even this very page!, was built using Nikola. Learn more at the <a href="https://getnikola.com/">Nikola website</a>.</p> <p>I’ve <a href="https://www.aeyoun.com/projects/nikola/index.html">contributed to the development of Nikola</a> for the last two years — the new sectioning system only in the last week — and I’m really happy with how Nikola works, the community, and especially how it has helped me build a great website that I’m really proud of.</p> </section>

0 comments on commit 9c2e0ed

Please sign in to comment.