<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Nikola (Posts about authors)</title><link>https://getnikola.com/</link><description></description><atom:link href="https://getnikola.com/categories/authors.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Sat, 17 May 2025 17:58:52 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Author pages in Nikola v7.7.0</title><link>https://getnikola.com/blog/author-pages-in-nikola-v770.html</link><dc:creator>Juanjo Conti</dc:creator><description>&lt;p&gt;Since version 7.7.0 Nikola renders author pages for sites with more than one author.
Let me talk a little about this.&lt;/p&gt;
&lt;p&gt;The first Nikola site I set up was for a group of friend wanting to publish tech
stuff online (for example, how to build a 3D printer with recycled elements).
I noticed that author names in posts weren't linked to any page. And because this is
a very common feature in blogging systems, I implemented it.&lt;/p&gt;
&lt;p&gt;The feature can be enabled in &lt;cite&gt;conf.py&lt;/cite&gt; with:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code python"&gt;&lt;a id="rest_code_acfc12b0003d441b944bc8186ec65732-1" name="rest_code_acfc12b0003d441b944bc8186ec65732-1" href="https://getnikola.com/blog/author-pages-in-nikola-v770.html#rest_code_acfc12b0003d441b944bc8186ec65732-1"&gt;&lt;/a&gt;&lt;span class="n"&gt;ENABLE_AUTHOR_PAGES&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;As with tags, you can configure the pages path and if you want to list links to the posts
or the posts themselves:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code python"&gt;&lt;a id="rest_code_176737c5996b463ab31e55f345ba2c5d-1" name="rest_code_176737c5996b463ab31e55f345ba2c5d-1" href="https://getnikola.com/blog/author-pages-in-nikola-v770.html#rest_code_176737c5996b463ab31e55f345ba2c5d-1"&gt;&lt;/a&gt;&lt;span class="n"&gt;AUTHOR_PATH&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"reporters"&lt;/span&gt;
&lt;a id="rest_code_176737c5996b463ab31e55f345ba2c5d-2" name="rest_code_176737c5996b463ab31e55f345ba2c5d-2" href="https://getnikola.com/blog/author-pages-in-nikola-v770.html#rest_code_176737c5996b463ab31e55f345ba2c5d-2"&gt;&lt;/a&gt;&lt;span class="n"&gt;AUTHOR_PAGES_ARE_INDEXES&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;False&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Additionally, this is not required, you can add a little bio to each (or some) authors
and hide others (this is, don't generate pages for them):&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code python"&gt;&lt;a id="rest_code_0574e094e9dd4013a6dad0a7db025d7c-1" name="rest_code_0574e094e9dd4013a6dad0a7db025d7c-1" href="https://getnikola.com/blog/author-pages-in-nikola-v770.html#rest_code_0574e094e9dd4013a6dad0a7db025d7c-1"&gt;&lt;/a&gt;&lt;span class="n"&gt;AUTHOR_PAGES_DESCRIPTIONS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;a id="rest_code_0574e094e9dd4013a6dad0a7db025d7c-2" name="rest_code_0574e094e9dd4013a6dad0a7db025d7c-2" href="https://getnikola.com/blog/author-pages-in-nikola-v770.html#rest_code_0574e094e9dd4013a6dad0a7db025d7c-2"&gt;&lt;/a&gt;    &lt;span class="n"&gt;DEFAULT_LANG&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;a id="rest_code_0574e094e9dd4013a6dad0a7db025d7c-3" name="rest_code_0574e094e9dd4013a6dad0a7db025d7c-3" href="https://getnikola.com/blog/author-pages-in-nikola-v770.html#rest_code_0574e094e9dd4013a6dad0a7db025d7c-3"&gt;&lt;/a&gt;        &lt;span class="s2"&gt;"Juanjo Conti"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Python coder and writer."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;a id="rest_code_0574e094e9dd4013a6dad0a7db025d7c-4" name="rest_code_0574e094e9dd4013a6dad0a7db025d7c-4" href="https://getnikola.com/blog/author-pages-in-nikola-v770.html#rest_code_0574e094e9dd4013a6dad0a7db025d7c-4"&gt;&lt;/a&gt;        &lt;span class="s2"&gt;"Roberto Alsina"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Nikola father."&lt;/span&gt;
&lt;a id="rest_code_0574e094e9dd4013a6dad0a7db025d7c-5" name="rest_code_0574e094e9dd4013a6dad0a7db025d7c-5" href="https://getnikola.com/blog/author-pages-in-nikola-v770.html#rest_code_0574e094e9dd4013a6dad0a7db025d7c-5"&gt;&lt;/a&gt;    &lt;span class="p"&gt;},&lt;/span&gt;
&lt;a id="rest_code_0574e094e9dd4013a6dad0a7db025d7c-6" name="rest_code_0574e094e9dd4013a6dad0a7db025d7c-6" href="https://getnikola.com/blog/author-pages-in-nikola-v770.html#rest_code_0574e094e9dd4013a6dad0a7db025d7c-6"&gt;&lt;/a&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;a id="rest_code_0574e094e9dd4013a6dad0a7db025d7c-7" name="rest_code_0574e094e9dd4013a6dad0a7db025d7c-7" href="https://getnikola.com/blog/author-pages-in-nikola-v770.html#rest_code_0574e094e9dd4013a6dad0a7db025d7c-7"&gt;&lt;/a&gt;&lt;span class="n"&gt;HIDDEN_AUTHORS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'Guest'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;If you want to link to these pages in your own theme, you can use something like this
(Mako example):&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code mako"&gt;&lt;a id="rest_code_0851c73cb4d0431da3fd0dbe010b1a1d-1" name="rest_code_0851c73cb4d0431da3fd0dbe010b1a1d-1" href="https://getnikola.com/blog/author-pages-in-nikola-v770.html#rest_code_0851c73cb4d0431da3fd0dbe010b1a1d-1"&gt;&lt;/a&gt;&lt;span class="cp"&gt;%&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;author_pages_generated&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;a id="rest_code_0851c73cb4d0431da3fd0dbe010b1a1d-2" name="rest_code_0851c73cb4d0431da3fd0dbe010b1a1d-2" href="https://getnikola.com/blog/author-pages-in-nikola-v770.html#rest_code_0851c73cb4d0431da3fd0dbe010b1a1d-2"&gt;&lt;/a&gt;&lt;span class="x"&gt;    &amp;lt;a href="&lt;/span&gt;&lt;span class="cp"&gt;${&lt;/span&gt;&lt;span class="n"&gt;_link&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'author'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;post&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;author&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;&lt;span class="cp"&gt;}&lt;/span&gt;&lt;span class="x"&gt;"&amp;gt;&lt;/span&gt;&lt;span class="cp"&gt;${&lt;/span&gt;&lt;span class="n"&gt;post&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;author&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="cp"&gt;}&lt;/span&gt;&lt;span class="x"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_0851c73cb4d0431da3fd0dbe010b1a1d-3" name="rest_code_0851c73cb4d0431da3fd0dbe010b1a1d-3" href="https://getnikola.com/blog/author-pages-in-nikola-v770.html#rest_code_0851c73cb4d0431da3fd0dbe010b1a1d-3"&gt;&lt;/a&gt;&lt;span class="cp"&gt;%&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;a id="rest_code_0851c73cb4d0431da3fd0dbe010b1a1d-4" name="rest_code_0851c73cb4d0431da3fd0dbe010b1a1d-4" href="https://getnikola.com/blog/author-pages-in-nikola-v770.html#rest_code_0851c73cb4d0431da3fd0dbe010b1a1d-4"&gt;&lt;/a&gt;&lt;span class="x"&gt;    &lt;/span&gt;&lt;span class="cp"&gt;${&lt;/span&gt;&lt;span class="n"&gt;post&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;author&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="cp"&gt;}&lt;/span&gt;
&lt;a id="rest_code_0851c73cb4d0431da3fd0dbe010b1a1d-5" name="rest_code_0851c73cb4d0431da3fd0dbe010b1a1d-5" href="https://getnikola.com/blog/author-pages-in-nikola-v770.html#rest_code_0851c73cb4d0431da3fd0dbe010b1a1d-5"&gt;&lt;/a&gt;&lt;span class="cp"&gt;%&lt;/span&gt;&lt;span class="k"&gt; endif&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;You can see the feature in action on the &lt;a class="reference external" href="https://getnikola.com/blog/"&gt;Nikola blog&lt;/a&gt;:
&lt;a class="reference external" href="https://getnikola.com/authors/roberto-alsina.html"&gt;author page example&lt;/a&gt;,
&lt;a class="reference external" href="https://getnikola.com/authors/"&gt;all authors page example&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Hope you enjoy it!&lt;/p&gt;
&lt;section id="what-is-nikola"&gt;
&lt;h2&gt;What is Nikola?&lt;/h2&gt;
&lt;p&gt;Nikola is a static site and blog generator, written in Python.
It can use Mako and Jinja2 templates, and input in many popular markup
formats, such as reStructuredText and Markdown — and can even turn
Jupyter (IPython) Notebooks into blog posts! It also supports image
galleries, and is multilingual. Nikola is flexible, and page builds
are extremely fast, courtesy of doit (which is rebuilding only what
has been changed).&lt;/p&gt;
&lt;p&gt;Find out more at the website: &lt;a class="reference external" href="https://getnikola.com/"&gt;https://getnikola.com/&lt;/a&gt;&lt;/p&gt;
&lt;/section&gt;</description><category>authors</category><category>nikola</category><guid>https://getnikola.com/blog/author-pages-in-nikola-v770.html</guid><pubDate>Fri, 04 Sep 2015 15:40:00 GMT</pubDate></item></channel></rss>