flex/docs/blog/flex-pelican-theme-update-2-1.html

237 lines
10 KiB
HTML
Raw Normal View History

2018-01-13 04:43:11 +01:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="index, follow" />
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro|Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
2018-01-13 04:43:11 +01:00
2019-10-19 22:47:25 +02:00
<link rel="stylesheet/less" type="text/css" href="http://localhost:8000/theme/stylesheet/style.less">
<script src="//cdnjs.cloudflare.com/ajax/libs/less.js/2.5.1/less.min.js" type="text/javascript"></script>
2018-01-13 04:43:11 +01:00
2019-10-19 22:47:25 +02:00
<link rel="stylesheet" type="text/css" href="http://localhost:8000/theme/pygments/monokai.min.css">
<link rel="stylesheet" type="text/css" href="http://localhost:8000/theme/font-awesome/css/fontawesome.css">
<link rel="stylesheet" type="text/css" href="http://localhost:8000/theme/font-awesome/css/brands.css">
<link rel="stylesheet" type="text/css" href="http://localhost:8000/theme/font-awesome/css/solid.css">
2018-01-13 04:43:11 +01:00
2019-10-19 22:47:25 +02:00
<link href="http://localhost:8000/static/custom.css" rel="stylesheet">
2018-01-13 04:43:11 +01:00
2019-10-19 22:47:25 +02:00
<link href="http://localhost:8000/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Flex Atom">
2018-01-13 04:43:11 +01:00
<!-- Chrome, Firefox OS and Opera -->
<meta name="theme-color" content="#333333">
<!-- Windows Phone -->
<meta name="msapplication-navbutton-color" content="#333333">
<!-- iOS Safari -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<!-- Microsoft EDGE -->
<meta name="msapplication-TileColor" content="#333333">
<meta name="author" content="Alexandre Vicenzi" />
2018-06-24 06:07:03 +02:00
<meta name="description" content="Flex theme 2.1.0 comes with features that I was delaying for so long. Flex 2.1.0 adds support for Google AdSense. 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 …" />
2018-01-13 04:43:11 +01:00
<meta name="keywords" content="pelican, python, theme">
<meta property="og:site_name" content="Flex"/>
2018-06-24 06:07:03 +02:00
<meta property="og:title" content="Flex 2.1.0"/>
<meta property="og:description" content="Flex theme 2.1.0 comes with features that I was delaying for so long. Flex 2.1.0 adds support for Google AdSense. 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 …"/>
2018-01-13 04:43:11 +01:00
<meta property="og:locale" content="en_US"/>
2019-10-19 22:47:25 +02:00
<meta property="og:url" content="http://localhost:8000/flex-pelican-theme-update-2-1.html"/>
2018-01-13 04:43:11 +01:00
<meta property="og:type" content="article"/>
<meta property="article:published_time" content="2016-11-16 08:00:00-05:00"/>
<meta property="article:modified_time" content="2016-11-16 08:00:00-05:00"/>
2019-10-19 22:47:25 +02:00
<meta property="article:author" content="http://localhost:8000/author/alexandre-vicenzi.html">
2018-01-13 04:43:11 +01:00
<meta property="article:section" content="News"/>
<meta property="article:tag" content="pelican"/>
<meta property="article:tag" content="python"/>
<meta property="article:tag" content="theme"/>
2019-10-19 22:47:25 +02:00
<meta property="og:image" content="http://localhost:8000/images/flex-screenshot.png">
2018-01-13 04:43:11 +01:00
2018-06-24 06:07:03 +02:00
<title>Flex &ndash; Flex 2.1.0</title>
2018-01-13 04:43:11 +01:00
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-6625957038449899",
enable_page_level_ads: true
});
</script>
</head>
<body>
<aside>
<div>
2019-10-19 22:47:25 +02:00
<a href="http://localhost:8000">
<img src="http://localhost:8000/theme/img/profile.png" alt="Flex" title="Flex">
2018-01-13 04:43:11 +01:00
</a>
2019-10-19 22:47:25 +02:00
<h1><a href="http://localhost:8000">Flex</a></h1>
2018-01-13 04:43:11 +01:00
<p>The minimalist Pelican theme</p>
<nav>
<ul class="list">
2019-10-19 22:47:25 +02:00
<li><a href="http://localhost:8000/pages/about.html#about">About</a></li>
<li><a href="http://localhost:8000/pages/contact.html#contact">Contact</a></li>
2018-01-13 04:43:11 +01:00
</ul>
</nav>
<ul class="social">
2019-10-19 22:47:25 +02:00
<li>
<a class="sc-github" href="https://github.com/alexandrevicenzi/Flex" target="_blank">
<i class="fab fa-github">
</i>
</a></li>
<li>
<a class="sc-rss" href="/blog/feeds/all.atom.xml" target="_blank">
<i class="fas fa-rss">
</i>
</a></li>
2018-01-13 04:43:11 +01:00
</ul>
</div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle ads-aside"
data-ad-client="ca-pub-6625957038449899"
data-ad-slot="8752710348"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</aside>
<main>
<nav>
2019-10-19 22:47:25 +02:00
<a href="http://localhost:8000"> Home
2018-01-13 04:43:11 +01:00
</a>
<a href="/archives.html">Archives</a>
<a href="/categories.html">Categories</a>
<a href="/tags.html">Tags</a>
2019-10-19 22:47:25 +02:00
<a href="http://localhost:8000/feeds/all.atom.xml"> Atom
2018-01-13 04:43:11 +01:00
</a>
</nav>
<article class="single">
<header>
2018-06-24 06:07:03 +02:00
<h1 id="flex-pelican-theme-update-2-1">Flex 2.1.0</h1>
2018-01-13 04:43:11 +01:00
<p>
2019-10-19 22:47:25 +02:00
Posted on November 16, 2016 in <a href="http://localhost:8000/category/news.html">News</a>
2018-01-13 04:43:11 +01:00
</p>
</header>
<div>
2018-06-24 06:07:03 +02:00
<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>
2018-01-13 04:43:11 +01:00
<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>
2018-06-24 06:07:03 +02:00
<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>
2018-01-13 04:43:11 +01:00
<p>Hope you enjoy this version.</p>
</div>
<div class="tag-cloud">
<p>
2019-10-19 22:47:25 +02:00
<a href="http://localhost:8000/tag/pelican.html">pelican</a>
<a href="http://localhost:8000/tag/python.html">python</a>
<a href="http://localhost:8000/tag/theme.html">theme</a>
2018-01-13 04:43:11 +01:00
</p>
</div>
<div class="center social-share">
<p> Like this article? Share it with your friends!
</p>
<div class="addthis_native_toolbox"></div>
<div class="addthis_sharing_toolbox"></div>
<div class="addthis_inline_share_toolbox"></div>
</div>
2018-06-24 03:54:37 +02:00
<div class="addthis_relatedposts_inline"></div>
2018-01-13 04:43:11 +01:00
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle ads-responsive"
data-ad-client="ca-pub-6625957038449899"
data-ad-slot="4843941849"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<!-- Disqus -->
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = 'flex-pelican';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>
Please enable JavaScript to view comments.
</noscript>
<!-- End Disqus -->
</article>
<footer>
<p>
2019-10-19 22:47:25 +02:00
&copy; 2019 - This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>
2018-01-13 04:43:11 +01:00
</p>
2019-10-19 22:47:25 +02:00
<p> Built with <a href="http://getpelican.com" target="_blank">Pelican</a> using <a href="http://bit.ly/flex-pelican" target="_blank">Flex</a> theme
2018-01-13 04:43:11 +01:00
</p><p>
<a rel="license"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank">
<img alt="Creative Commons License"
title="Creative Commons License"
style="border-width:0"
2018-06-24 03:54:37 +02:00
src="https://i.creativecommons.org/l/by-sa/4.0/80x15.png"
2018-01-13 04:43:11 +01:00
width="80"
height="15"/>
</a>
</p> </footer>
</main>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-55adbb025d4f7e55" async="async"></script>
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "Blog",
"name": " Flex ",
2019-10-19 22:47:25 +02:00
"url" : "http://localhost:8000",
2018-01-13 04:43:11 +01:00
"image": "",
"description": "Flex - The minimalist Pelican theme."
}
</script>
</body>
</html>