flex-pelican-theme-update-2-1.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <meta name="HandheldFriendly" content="True" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  8. <meta name="robots" content="index, follow" />
  9. <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro|Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
  10. <link rel="stylesheet" type="text/css" href="http://flex.alxd.me/blog/theme/stylesheet/style.min.css">
  11. <link rel="stylesheet" type="text/css" href="http://flex.alxd.me/blog/theme/pygments/monokai.min.css">
  12. <link rel="stylesheet" type="text/css" href="http://flex.alxd.me/blog/theme/font-awesome/css/font-awesome.min.css">
  13. <link href="http://flex.alxd.me/blog/static/custom.css" rel="stylesheet">
  14. <link href="http://flex.alxd.me/blog/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Flex Atom">
  15. <!-- Google Analytics -->
  16. <script type="text/javascript">
  17. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  18. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  19. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  20. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  21. ga('create', 'UA-55543164-6', 'auto');
  22. ga('send', 'pageview');
  23. </script>
  24. <!-- End Google Analytics -->
  25. <!-- Chrome, Firefox OS and Opera -->
  26. <meta name="theme-color" content="#333333">
  27. <!-- Windows Phone -->
  28. <meta name="msapplication-navbutton-color" content="#333333">
  29. <!-- iOS Safari -->
  30. <meta name="apple-mobile-web-app-capable" content="yes">
  31. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  32. <!-- Microsoft EDGE -->
  33. <meta name="msapplication-TileColor" content="#333333">
  34. <meta name="author" content="Alexandre Vicenzi" />
  35. <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 …" />
  36. <meta name="keywords" content="pelican, python, theme">
  37. <meta property="og:site_name" content="Flex"/>
  38. <meta property="og:title" content="Flex 2.1.0"/>
  39. <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 …"/>
  40. <meta property="og:locale" content="en_US"/>
  41. <meta property="og:url" content="http://flex.alxd.me/blog/flex-pelican-theme-update-2-1.html"/>
  42. <meta property="og:type" content="article"/>
  43. <meta property="article:published_time" content="2016-11-16 08:00:00-05:00"/>
  44. <meta property="article:modified_time" content="2016-11-16 08:00:00-05:00"/>
  45. <meta property="article:author" content="http://flex.alxd.me/blog/author/alexandre-vicenzi.html">
  46. <meta property="article:section" content="News"/>
  47. <meta property="article:tag" content="pelican"/>
  48. <meta property="article:tag" content="python"/>
  49. <meta property="article:tag" content="theme"/>
  50. <meta property="og:image" content="http://flex.alxd.me/blog/images/flex-screenshot.png">
  51. <title>Flex &ndash; Flex 2.1.0</title>
  52. <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  53. <script>
  54. (adsbygoogle = window.adsbygoogle || []).push({
  55. google_ad_client: "ca-pub-6625957038449899",
  56. enable_page_level_ads: true
  57. });
  58. </script>
  59. </head>
  60. <body>
  61. <aside>
  62. <div>
  63. <a href="http://flex.alxd.me/blog">
  64. <img src="http://flex.alxd.me/blog/theme/img/profile.png" alt="Flex" title="Flex">
  65. </a>
  66. <h1><a href="http://flex.alxd.me/blog">Flex</a></h1>
  67. <p>The minimalist Pelican theme</p>
  68. <nav>
  69. <ul class="list">
  70. <li><a href="http://flex.alxd.me/blog/pages/about.html#about">About</a></li>
  71. <li><a href="http://flex.alxd.me/blog/pages/contact.html#contact">Contact</a></li>
  72. </ul>
  73. </nav>
  74. <ul class="social">
  75. <li><a class="sc-github" href="https://github.com/alexandrevicenzi/Flex" target="_blank"><i class="fa fa-github"></i></a></li>
  76. <li><a class="sc-rss" href="/blog/feeds/all.atom.xml" target="_blank"><i class="fa fa-rss"></i></a></li>
  77. </ul>
  78. </div>
  79. <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  80. <ins class="adsbygoogle ads-aside"
  81. data-ad-client="ca-pub-6625957038449899"
  82. data-ad-slot="8752710348"></ins>
  83. <script>
  84. (adsbygoogle = window.adsbygoogle || []).push({});
  85. </script>
  86. </aside>
  87. <main>
  88. <nav>
  89. <a href="http://flex.alxd.me/blog"> Home
  90. </a>
  91. <a href="/archives.html">Archives</a>
  92. <a href="/categories.html">Categories</a>
  93. <a href="/tags.html">Tags</a>
  94. <a href="http://flex.alxd.me/blog/feeds/all.atom.xml"> Atom
  95. </a>
  96. </nav>
  97. <article class="single">
  98. <header>
  99. <h1 id="flex-pelican-theme-update-2-1">Flex 2.1.0</h1>
  100. <p>
  101. Posted on November 16, 2016 in <a href="http://flex.alxd.me/blog/category/news.html">News</a>
  102. </p>
  103. </header>
  104. <div>
  105. <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>
  106. <p>Flex 2.1.0 adds support for Google AdSense.</p>
  107. <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>
  108. <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.
  109. Below you can see how to enable ads in your pelican configuration file.</p>
  110. <div class="highlight"><pre><span></span><span class="n">GOOGLE_ADSENSE</span> <span class="o">=</span> <span class="p">{</span>
  111. <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>
  112. <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>
  113. <span class="s1">&#39;ads&#39;</span><span class="p">:</span> <span class="p">{</span>
  114. <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>
  115. <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>
  116. <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>
  117. <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>
  118. <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>
  119. <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>
  120. <span class="p">}</span>
  121. <span class="p">}</span>
  122. </pre></div>
  123. <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>
  124. <p>Hope you enjoy this version.</p>
  125. </div>
  126. <div class="tag-cloud">
  127. <p>
  128. <a href="http://flex.alxd.me/blog/tag/pelican.html">pelican</a>
  129. <a href="http://flex.alxd.me/blog/tag/python.html">python</a>
  130. <a href="http://flex.alxd.me/blog/tag/theme.html">theme</a>
  131. </p>
  132. </div>
  133. <div class="center social-share">
  134. <p> Like this article? Share it with your friends!
  135. </p>
  136. <div class="addthis_native_toolbox"></div>
  137. <div class="addthis_sharing_toolbox"></div>
  138. <div class="addthis_inline_share_toolbox"></div>
  139. </div>
  140. <div class="addthis_relatedposts_inline"></div>
  141. <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  142. <ins class="adsbygoogle ads-responsive"
  143. data-ad-client="ca-pub-6625957038449899"
  144. data-ad-slot="4843941849"></ins>
  145. <script>
  146. (adsbygoogle = window.adsbygoogle || []).push({});
  147. </script>
  148. <!-- Disqus -->
  149. <div id="disqus_thread"></div>
  150. <script type="text/javascript">
  151. var disqus_shortname = 'flex-pelican';
  152. (function() {
  153. var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
  154. dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
  155. (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  156. })();
  157. </script>
  158. <noscript>
  159. Please enable JavaScript to view comments.
  160. </noscript>
  161. <!-- End Disqus -->
  162. </article>
  163. <footer>
  164. <p>
  165. &copy; 2018 - 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>
  166. </p>
  167. <p> Powered by <a href="http://getpelican.com" target="_blank">Pelican</a> - <a href="https://github.com/alexandrevicenzi/flex" target="_blank">Flex</a> theme by <a href="http://alexandrevicenzi.com" target="_blank">Alexandre Vicenzi</a>
  168. </p><p>
  169. <a rel="license"
  170. href="http://creativecommons.org/licenses/by-sa/4.0/"
  171. target="_blank">
  172. <img alt="Creative Commons License"
  173. title="Creative Commons License"
  174. style="border-width:0"
  175. src="https://i.creativecommons.org/l/by-sa/4.0/80x15.png"
  176. width="80"
  177. height="15"/>
  178. </a>
  179. </p> </footer>
  180. </main>
  181. <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-55adbb025d4f7e55" async="async"></script>
  182. <script type="application/ld+json">
  183. {
  184. "@context" : "http://schema.org",
  185. "@type" : "Blog",
  186. "name": " Flex ",
  187. "url" : "http://flex.alxd.me/blog",
  188. "image": "",
  189. "description": "Flex - The minimalist Pelican theme."
  190. }
  191. </script>
  192. </body>
  193. </html>