188 lines
22 KiB
XML
188 lines
22 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
|||
|
<feed xmlns="http://www.w3.org/2005/Atom"><title>Flex</title><link href="http://flex.alxd.me/blog/" rel="alternate"></link><link href="http://flex.alxd.me/blog/feeds/all.atom.xml" rel="self"></link><id>http://flex.alxd.me/blog/</id><updated>2018-06-24T08:00:00-04:00</updated><entry><title>Flex 2.2.0</title><link href="http://flex.alxd.me/blog/flex-pelican-theme-update-2-2.html" rel="alternate"></link><published>2018-06-24T08:00:00-04:00</published><updated>2018-06-24T08:00:00-04:00</updated><author><name>Alexandre Vicenzi</name></author><id>tag:flex.alxd.me,2018-06-24:/blog/flex-pelican-theme-update-2-2.html</id><summary type="html"><p><a href="https://github.com/alexandrevicenzi/Flex">Flex theme</a> 2.2.0 comes with bug fixes and improvements.</p>
|
|||
|
<p>There are new Pygments templates and also a few code highlight fixes. There's also new social icons.</p>
|
|||
|
<p>Version 2.2.0 also comes with new translations. You can see available translations <a href="https://github.com/alexandrevicenzi/Flex/wiki/Translations">here</a>.</p>
|
|||
|
<p>Hope you enjoy this version.</p></summary><content type="html"><p><a href="https://github.com/alexandrevicenzi/Flex">Flex theme</a> 2.2.0 comes with bug fixes and improvements.</p>
|
|||
|
<p>There are new Pygments templates and also a few code highlight fixes. There's also new social icons.</p>
|
|||
|
<p>Version 2.2.0 also comes with new translations. You can see available translations <a href="https://github.com/alexandrevicenzi/Flex/wiki/Translations">here</a>.</p>
|
|||
|
<p>Hope you enjoy this version.</p></content><category term="pelican"></category><category term="python"></category><category term="theme"></category></entry><entry><title>Flex 2.1.0</title><link href="http://flex.alxd.me/blog/flex-pelican-theme-update-2-1.html" rel="alternate"></link><published>2016-11-16T08:00:00-05:00</published><updated>2016-11-16T08:00:00-05:00</updated><author><name>Alexandre Vicenzi</name></author><id>tag:flex.alxd.me,2016-11-16:/blog/flex-pelican-theme-update-2-1.html</id><summary type="html"><p><a href="https://github.com/alexandrevicenzi/Flex">Flex theme</a> 2.1.0 comes with features that I was delaying for so long.</p>
|
|||
|
<p>Flex 2.1.0 adds support for Google AdSense.</p>
|
|||
|
<p>If you choose wisely, ads are a way to win some money, but if not, you may loose your users due to excessive use of ads …</p></summary><content type="html"><p><a href="https://github.com/alexandrevicenzi/Flex">Flex theme</a> 2.1.0 comes with features that I was delaying for so long.</p>
|
|||
|
<p>Flex 2.1.0 adds support for Google AdSense.</p>
|
|||
|
<p>If you choose wisely, ads are a way to win some money, but if not, you may loose your users due to excessive use of ads.</p>
|
|||
|
<p>Flex has six places for ads. Google recommends up to 3 ads per page. There is ads page only, and banner that appears on all pages.
|
|||
|
Below you can see how to enable ads in your pelican configuration file.</p>
|
|||
|
<div class="highlight"><pre><span></span><span class="n">GOOGLE_ADSENSE</span> <span class="o">=</span> <span class="p">{</span>
|
|||
|
<span class="s1">&#39;ca_id&#39;</span><span class="p">:</span> <span class="s1">&#39;ca-pub-1234567890&#39;</span><span class="p">,</span> <span class="c1"># Your AdSense ID</span>
|
|||
|
<span class="s1">&#39;page_level_ads&#39;</span><span class="p">:</span> <span class="bp">True</span><span class="p">,</span> <span class="c1"># Allow Page Level Ads (mobile)</span>
|
|||
|
<span class="s1">&#39;ads&#39;</span><span class="p">:</span> <span class="p">{</span>
|
|||
|
<span class="s1">&#39;aside&#39;</span><span class="p">:</span> <span class="s1">&#39;1234561&#39;</span><span class="p">,</span> <span class="c1"># Side bar banner (all pages)</span>
|
|||
|
<span class="s1">&#39;main_menu&#39;</span><span class="p">:</span> <span class="s1">&#39;1234562&#39;</span><span class="p">,</span> <span class="c1"># Banner before main menu (all pages)</span>
|
|||
|
<span class="s1">&#39;index_top&#39;</span><span class="p">:</span> <span class="s1">&#39;1234563&#39;</span><span class="p">,</span> <span class="c1"># Banner after main menu (index only)</span>
|
|||
|
<span class="s1">&#39;index_bottom&#39;</span><span class="p">:</span> <span class="s1">&#39;1234564&#39;</span><span class="p">,</span> <span class="c1"># Banner before footer (index only)</span>
|
|||
|
<span class="s1">&#39;article_top&#39;</span><span class="p">:</span> <span class="s1">&#39;1234565&#39;</span><span class="p">,</span> <span class="c1"># Banner after article title (article only)</span>
|
|||
|
<span class="s1">&#39;article_bottom&#39;</span><span class="p">:</span> <span class="s1">&#39;1234566&#39;</span><span class="p">,</span> <span class="c1"># Banner after article content (article only)</span>
|
|||
|
<span class="p">}</span>
|
|||
|
<span class="p">}</span>
|
|||
|
</pre></div>
|
|||
|
|
|||
|
|
|||
|
<p>Version 2.1.0 also comes with new translations. You can see available translations <a href="https://github.com/alexandrevicenzi/Flex/wiki/Translations">here</a>.</p>
|
|||
|
<p>Hope you enjoy this version.</p></content><category term="pelican"></category><category term="python"></category><category term="theme"></category></entry><entry><title>Flex 2.0</title><link href="http://flex.alxd.me/blog/flex-pelican-theme-update-2-0.html" rel="alternate"></link><published>2016-09-13T08:00:00-04:00</published><updated>2016-09-13T08:00:00-04:00</updated><author><name>Alexandre Vicenzi</name></author><id>tag:flex.alxd.me,2016-09-13:/blog/flex-pelican-theme-update-2-0.html</id><summary type="html"><p><a href="https://github.com/alexandrevicenzi/Flex">Flex theme</a> 2.0 comes with new features.
|
|||
|
In fact there are two new features.</p>
|
|||
|
<p>The biggest change is localization support.
|
|||
|
Yes, Flex now can be translated into your language.
|
|||
|
You can read about <a href="https://github.com/alexandrevicenzi/Flex/wiki/Translations">here</a>.</p>
|
|||
|
<p>The biggest challege was to create a way to translate without breaking old versions.
|
|||
|
If …</p></summary><content type="html"><p><a href="https://github.com/alexandrevicenzi/Flex">Flex theme</a> 2.0 comes with new features.
|
|||
|
In fact there are two new features.</p>
|
|||
|
<p>The biggest change is localization support.
|
|||
|
Yes, Flex now can be translated into your language.
|
|||
|
You can read about <a href="https://github.com/alexandrevicenzi/Flex/wiki/Translations">here</a>.</p>
|
|||
|
<p>The biggest challege was to create a way to translate without breaking old versions.
|
|||
|
If you use English it changes nothing for you.
|
|||
|
But if you want to use translation you need to add new lines to your pelican configuration file.</p>
|
|||
|
<p>Here is a small example to use Flex in another language.</p>
|
|||
|
<div class="highlight"><pre><span></span><span class="c1"># Enable i18n plugin, probably you already have some others here.</span>
|
|||
|
<span class="n">PLUGINS</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;i18n_subsites&#39;</span><span class="p">]</span>
|
|||
|
<span class="c1"># Enable Jinja2 i18n extension used to parse translations.</span>
|
|||
|
<span class="n">JINJA_EXTENSIONS</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;jinja2.ext.i18n&#39;</span><span class="p">]</span>
|
|||
|
<span class="c1"># Default theme language.</span>
|
|||
|
<span class="n">I18N_TEMPLATES_LANG</span> <span class="o">=</span> <span class="s1">&#39;en&#39;</span>
|
|||
|
<span class="c1"># Your language.</span>
|
|||
|
<span class="n">DEFAULT_LANG</span> <span class="o">=</span> <span class="s1">&#39;de&#39;</span>
|
|||
|
<span class="n">OG_LOCALE</span> <span class="o">=</span> <span class="s1">&#39;de_DE&#39;</span>
|
|||
|
<span class="n">LOCALE</span> <span class="o">=</span> <span class="s1">&#39;de_DE&#39;</span>
|
|||
|
</pre></div>
|
|||
|
|
|||
|
|
|||
|
<p>Last but not least, Flex supports the feature "X minute read", similar <a href="https://medium.com/">Medium</a>.</p>
|
|||
|
<p>Hope you enjoy this version.</p></content><category term="pelican"></category><category term="python"></category><category term="theme"></category></entry><entry><title>Flex 1.2.0</title><link href="http://flex.alxd.me/blog/flex-pelican-theme-update-1-2-0.html" rel="alternate"></link><published>2016-06-10T08:00:00-04:00</published><updated>2016-06-10T08:00:00-04:00</updated><author><name>Alexandre Vicenzi</name></author><id>tag:flex.alxd.me,2016-06-10:/blog/flex-pelican-theme-update-1-2-0.html</id><summary type="html"><p><a href="https://github.com/alexandrevicenzi/Flex">Flex theme</a> received some new features. Version 1.2.0 include new features and some updates.</p>
|
|||
|
<p>For developers there are new color styles for your code. For general purpose there is RUM support, related posts and browser color configuration.</p>
|
|||
|
<ul>
|
|||
|
<li><a href="https://github.com/alexandrevicenzi/Flex/issues/31">Update font-awesome</a></li>
|
|||
|
<li><a href="https://github.com/alexandrevicenzi/Flex/pull/34">Added browser color configuration</a></li>
|
|||
|
<li><a href="https://github.com/alexandrevicenzi/Flex/pull/27">Related posts</a></li>
|
|||
|
<li><a href="https://github.com/alexandrevicenzi/Flex/issues/38">More Pygments Styles …</a></li></ul></summary><content type="html"><p><a href="https://github.com/alexandrevicenzi/Flex">Flex theme</a> received some new features. Version 1.2.0 include new features and some updates.</p>
|
|||
|
<p>For developers there are new color styles for your code. For general purpose there is RUM support, related posts and browser color configuration.</p>
|
|||
|
<ul>
|
|||
|
<li><a href="https://github.com/alexandrevicenzi/Flex/issues/31">Update font-awesome</a></li>
|
|||
|
<li><a href="https://github.com/alexandrevicenzi/Flex/pull/34">Added browser color configuration</a></li>
|
|||
|
<li><a href="https://github.com/alexandrevicenzi/Flex/pull/27">Related posts</a></li>
|
|||
|
<li><a href="https://github.com/alexandrevicenzi/Flex/issues/38">More Pygments Styles</a></li>
|
|||
|
<li><a href="https://github.com/alexandrevicenzi/Flex/issues/16">Add StatusCake RUM support</a></li>
|
|||
|
</ul>
|
|||
|
<p>If you need help or want to report a bug, please open an <a href="https://github.com/alexandrevicenzi/Flex/issues">issue</a>.</p>
|
|||
|
<p>Hope you enjoy this theme.</p></content><category term="pelican"></category><category term="python"></category><category term="theme"></category></entry><entry><title>Flex 1.1.1</title><link href="http://flex.alxd.me/blog/flex-pelican-theme-update-1-1-1.html" rel="alternate"></link><published>2016-02-27T08:00:00-05:00</published><updated>2016-02-27T08:00:00-05:00</updated><author><name>Alexandre Vicenzi</name></author><id>tag:flex.alxd.me,2016-02-27:/blog/flex-pelican-theme-update-1-1-1.html</id><summary type="html"><p>Today, <a href="https://github.com/alexandrevicenzi/Flex">Flex theme</a> received a small update.</p>
|
|||
|
<p>Some bugs are now fixed. I think the most important fixes are:</p>
|
|||
|
<ul>
|
|||
|
<li><a href="https://github.com/alexandrevicenzi/Flex/issues/21">Bug in CSS with placement of "Newer Posts" button</a></li>
|
|||
|
<li><a href="https://github.com/alexandrevicenzi/Flex/issues/14">Posts preview on main page</a></li>
|
|||
|
</ul>
|
|||
|
<p>Hope you enjoy this theme.</p></summary><content type="html"><p>Today, <a href="https://github.com/alexandrevicenzi/Flex">Flex theme</a> received a small update.</p>
|
|||
|
<p>Some bugs are now fixed. I think the most important fixes are:</p>
|
|||
|
<ul>
|
|||
|
<li><a href="https://github.com/alexandrevicenzi/Flex/issues/21">Bug in CSS with placement of "Newer Posts" button</a></li>
|
|||
|
<li><a href="https://github.com/alexandrevicenzi/Flex/issues/14">Posts preview on main page</a></li>
|
|||
|
</ul>
|
|||
|
<p>Hope you enjoy this theme.</p></content><category term="pelican"></category><category term="python"></category><category term="theme"></category></entry><entry><title>Flex 1.1.0</title><link href="http://flex.alxd.me/blog/flex-pelican-theme-update-1-1.html" rel="alternate"></link><published>2015-10-07T08:00:00-04:00</published><updated>2015-10-07T08:00:00-04:00</updated><author><name>Alexandre Vicenzi</name></author><id>tag:flex.alxd.me,2015-10-07:/blog/flex-pelican-theme-update-1-1.html</id><summary type="html"><p>I've made the <a href="https://github.com/alexandrevicenzi/Flex">Flex theme</a> a time ago. For my surprise, many people are using it. I feel thankful for this.</p>
|
|||
|
<p>So, after some new blogs with this theme, I got issues and PRs on GitHub from these new users. This weekend I had some free time and I release …</p></summary><content type="html"><p>I've made the <a href="https://github.com/alexandrevicenzi/Flex">Flex theme</a> a time ago. For my surprise, many people are using it. I feel thankful for this.</p>
|
|||
|
<p>So, after some new blogs with this theme, I got issues and PRs on GitHub from these new users. This weekend I had some free time and I release the <a href="https://github.com/alexandrevicenzi/Flex/releases/tag/v1.1">second version</a> of Flex (aka v1.1).</p>
|
|||
|
<p>This new version doesn't include nothing so special, just some bug fix and a new setting to allow custom CSS stylesheets.</p>
|
|||
|
<p>The new custom setting can be used like this:</p>
|
|||
|
<div class="highlight"><pre><span></span><span class="n">EXTRA_PATH_METADATA</span> <span class="o">=</span> <span class="p">{</span>
|
|||
|
<span class="s1">&#39;extra/custom.css&#39;</span><span class="p">:</span> <span class="p">{</span><span class="s1">&#39;path&#39;</span><span class="p">:</span> <span class="s1">&#39;static/custom.css&#39;</span><span class="p">},</span>
|
|||
|
<span class="p">}</span>
|
|||
|
<span class="n">CUSTOM_CSS</span> <span class="o">=</span> <span class="s1">&#39;static/custom.css&#39;</span>
|
|||
|
</pre></div>
|
|||
|
|
|||
|
|
|||
|
<p>I would like to thank all who helped in this new version.</p></content><category term="pelican"></category><category term="python"></category><category term="theme"></category></entry><entry><title>Flex: Responsive Pelican theme</title><link href="http://flex.alxd.me/blog/flex-pelican-theme.html" rel="alternate"></link><published>2015-07-22T08:00:00-04:00</published><updated>2015-07-22T08:00:00-04:00</updated><author><name>Alexandre Vicenzi</name></author><id>tag:flex.alxd.me,2015-07-22:/blog/flex-pelican-theme.html</id><summary type="html"><p>I just start a new fresh blog using <a href="http://getpelican.com">Pelican</a>. Sometimes choosing a theme for a new site is something difficult that takes time.</p>
|
|||
|
<p>In the Pelican <a href="http://www.pelicanthemes.com/">theme gallery</a>, I couldn't find anything that I really liked to feet all my needs. So in the first time of the history, I …</p></summary><content type="html"><p>I just start a new fresh blog using <a href="http://getpelican.com">Pelican</a>. Sometimes choosing a theme for a new site is something difficult that takes time.</p>
|
|||
|
<p>In the Pelican <a href="http://www.pelicanthemes.com/">theme gallery</a>, I couldn't find anything that I really liked to feet all my needs. So in the first time of the history, I choose to create my own theme. I never did this before.</p>
|
|||
|
<p>Creating a theme for Pelican is quite easy, unlike Wordpress. You can take a look in the <a href="https://github.com/alexandrevicenzi/Flex">Source Code of Flex</a>.</p>
|
|||
|
<p>But how Flex looks like? Well, you can see <a href="images/flex-screenshot.png">this screenshot</a>, but you already know how it looks like, you're looking at it. :D</p>
|
|||
|
<p>I really care about SEO and integrations with Facebook, Google Plus and other social networks, so this theme offers some features:</p>
|
|||
|
<ul>
|
|||
|
<li>Mobile First</li>
|
|||
|
<li>Responsive</li>
|
|||
|
<li>Semantic</li>
|
|||
|
<li>SEO Best Practices</li>
|
|||
|
<li>Open Graph</li>
|
|||
|
<li>Rich Snippets (JSON-LD)</li>
|
|||
|
</ul>
|
|||
|
<p>Maybe these features are not fully optimized, but I'll improve.</p>
|
|||
|
<p>Flex also offers integrations with multiple services.</p>
|
|||
|
<blockquote>
|
|||
|
<p><strong>Tip:</strong></p>
|
|||
|
<p>You can easyly integrate with:</p>
|
|||
|
<ul>
|
|||
|
<li>AddThis</li>
|
|||
|
<li>Disqus</li>
|
|||
|
<li>Google Analytics</li>
|
|||
|
<li>Google Tag Manager</li>
|
|||
|
<li>StatusCake</li>
|
|||
|
</ul>
|
|||
|
</blockquote>
|
|||
|
<p>Flex is a theme built by a developer for developers, but of course, you can use for any purpose. In this scenario, Flex is able to create good styles for coding, outputs and samples.</p>
|
|||
|
<p>If you need to show some program output you can use <code>samp</code> tag to look like this:</p>
|
|||
|
<p><samp>Done: Processed 4 articles, 0 drafts, 2 pages and 0 hidden pages in 0.22 seconds.</samp></p>
|
|||
|
<p>Or if you want multiple lines:</p>
|
|||
|
<p><samp>
|
|||
|
total used free shared buffers cached
|
|||
|
Mem: 5866 4674 1192 386 0 2404
|
|||
|
-/+ buffers/cache: 2269 3596
|
|||
|
Swap: 20480 1267 19213
|
|||
|
</samp></p>
|
|||
|
<p>If you like to share code snippets, you can take advantage of <a href="http://pygments.org/">Pygments</a> syntax highlighting:</p>
|
|||
|
<div class="highlight"><pre><span></span><span class="c1">// Foo</span>
|
|||
|
<span class="kd">var</span> <span class="nx">bar</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
|
|||
|
</pre></div>
|
|||
|
|
|||
|
|
|||
|
<div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Foo</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
|
|||
|
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">bar</span><span class="p">)</span>
|
|||
|
<span class="bp">self</span><span class="o">.</span><span class="n">bar</span> <span class="o">=</span> <span class="n">bar</span>
|
|||
|
</pre></div>
|
|||
|
|
|||
|
|
|||
|
<div class="highlight"><pre><span></span>ls *.jpg <span class="p">|</span> xargs -n1 -i cp <span class="o">{}</span> /external-hard-drive/directory
|
|||
|
</pre></div>
|
|||
|
|
|||
|
|
|||
|
<p><strong>Note:</strong> The code block looks like GitHub’s colors.</p>
|
|||
|
<p>You can add tables too:</p>
|
|||
|
<table>
|
|||
|
<thead>
|
|||
|
<tr>
|
|||
|
<th>Item</th>
|
|||
|
<th>Value</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody>
|
|||
|
<tr>
|
|||
|
<td>Computer</td>
|
|||
|
<td>$1600</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>Phone</td>
|
|||
|
<td>$12</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>Pipe</td>
|
|||
|
<td>$1</td>
|
|||
|
</tr>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
<p>and how heading looks like?</p>
|
|||
|
<h1>This is heading 1</h1>
|
|||
|
<h2>This is heading 2</h2>
|
|||
|
<h3>This is heading 3</h3>
|
|||
|
<h4>This is heading 4</h4>
|
|||
|
<h5>This is heading 5</h5>
|
|||
|
<h6>This is heading 6</h6>
|
|||
|
<p>This examples are in Markdown. I'm not sure how it will look using reStructuredText. Keep in mind that Markdown allows you to add HTML tags. If you can create the same HTML syntax produced by Markdown using reStructuredText it will work.</p>
|
|||
|
<p>You can take a look in the <a href="https://raw.githubusercontent.com/alexandrevicenzi/blog/master/content/News/flex-pelican-theme.md">source code of this page</a> to know how to create rich examples.</p>
|
|||
|
<p>Flex is my first attempt creating themes and there's no IE testing yet. You can check the <a href="https://github.com/alexandrevicenzi/flex">sources here</a>.</p>
|
|||
|
<p>As soon as possible I will add this project to Pelican gallery.</p>
|
|||
|
<p>Drop a comment if you like this theme, or <a href="https://github.com/alexandrevicenzi/Flex/issues">open an issue</a> if you need a feature or found a bug.</p></content><category term="pelican"></category><category term="python"></category><category term="theme"></category></entry></feed>
|