<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>SudoServers (Posts about nikola)</title><link>https://sudoservers.com/</link><description></description><atom:link href="https://sudoservers.com/categories/nikola.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2017 &lt;a href="mailto:willdeberry@gmail.com"&gt;Will DeBerry&lt;/a&gt; </copyright><lastBuildDate>Tue, 08 Aug 2017 00:48:36 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Battles with Nikola Themes</title><link>https://sudoservers.com/posts/battles-with-nikola-themes/</link><dc:creator>Will DeBerry</dc:creator><description>&lt;div&gt;&lt;p&gt;So after spending all day, I finally got my blog themed the way I wanted.&lt;/p&gt;
&lt;p&gt;The goal was to get the blog running using the &lt;a class="reference external" href="https://themes.getnikola.com/v7/zen/"&gt;Zen&lt;/a&gt; theme. However this for one reason or another was not as straight forward as I intended it to be. Maybe this was due to my ignorance with Nikola or just reading too much into things.&lt;/p&gt;
&lt;p&gt;The process started by reading the WARNINGS on the Zen site about the need for the &lt;tt class="docutils literal"&gt;less&lt;/tt&gt; plugin. At this point I installed the &lt;tt class="docutils literal"&gt;less&lt;/tt&gt; plugin via &lt;code&gt;nikola plugin -i less&lt;/code&gt;. I believe this was the start of the errors I faced. From this point on, every time I tried and build my blog, I got the following errors:&lt;/p&gt;
&lt;pre class="code text"&gt;&lt;a name="rest_code_1c81ceca17bb450397b84a348fe3ede1-1"&gt;&lt;/a&gt;Scanning posts......done!
&lt;a name="rest_code_1c81ceca17bb450397b84a348fe3ede1-2"&gt;&lt;/a&gt;ERROR: Two different tasks can't have a common target.'output/assets/css/main.css' is a target for copy_assets:output/assets/css/main.css and build _less:output/assets/css/main.css.
&lt;/pre&gt;&lt;p&gt;So I reached out to the all knowing Google and was led around in circles and basically found nothing that could help me actually build with the theme I wanted. Frustration and giving up started to creep in. So I went back to the WARNINGS that led me down this path in the beginning.&lt;/p&gt;
&lt;blockquote&gt;
WARNING: The zen themes are LESS-powered (not less... because it is more-powered ;-)) If you use webassests (USE_BUNDLES = True in your conf.py), the theme will use compiled css files, so don't worry at all... But, if you want to build the css files from the zen LESS files, you have to use USE_BUNDLES = False, and have installed the lessc (official LESS compiler). Additionaly, you have a LESS plugin available in the Nikola plugins repo to automatically build the LESS files inside nikola build command. You can easily install it just doing: nikola plugin -i less.&lt;/blockquote&gt;
&lt;p&gt;I then dug through &lt;code&gt;conf.py&lt;/code&gt; and realized that &lt;code&gt;USE_BUNDLES&lt;/code&gt; is set to &lt;tt class="docutils literal"&gt;True&lt;/tt&gt; by default. This finally caused a light bulb to go off and thus I attempted to run things without &lt;tt class="docutils literal"&gt;less&lt;/tt&gt;. So I uninstalled the &lt;tt class="docutils literal"&gt;less&lt;/tt&gt; plugin &lt;code&gt;nikola plugin -r less&lt;/code&gt;. This was finally the tipping point and got things working for me. All is good now but that was definitely a frustrating battle I was not ready for.&lt;/p&gt;
&lt;p&gt;TL;DR: If you are getting this error when building, remove the &lt;tt class="docutils literal"&gt;less&lt;/tt&gt; plugin and continue on. I dealt with this for about 2-3 hours and thus wanted to provide a heads up to other fellow bloggers.&lt;/p&gt;&lt;/div&gt;</description><category>nikola</category><category>theme</category><guid>https://sudoservers.com/posts/battles-with-nikola-themes/</guid><pubDate>Mon, 05 Jun 2017 00:12:43 GMT</pubDate></item></channel></rss>