Skip to content

Commit

Permalink
Generate Pelican site
Browse files Browse the repository at this point in the history
  • Loading branch information
tooh committed Feb 10, 2024
1 parent 33cf67b commit 7b96ba4
Show file tree
Hide file tree
Showing 27 changed files with 688 additions and 198 deletions.
11 changes: 11 additions & 0 deletions archives.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@ <h1><a href="https://blog.florijnconsultancy.nl/archives.html">All Posts</a></h1
<h2 id="2024"><a href="#2024">2024</a></h2>


<div itemscope>

<a href="https://blog.florijnconsultancy.nl/articles/pelican-title_capitalize-plugin.html">
Pelican title_capitalize&nbsp;plugin
</a>
<time itemprop="dateCreated" datetime="2024-02-10T15:54:00+01:00">
Sat 10 February 2024
</time>
</div>


<div itemscope>

<a href="https://blog.florijnconsultancy.nl/articles/no-sound-guitar-rig.html">
Expand Down
262 changes: 262 additions & 0 deletions articles/pelican-title_capitalize-plugin.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,262 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Peter Florijn" />

<meta name="twitter:creator" content="@peterflorijn">
<meta property="og:type" content="article" />
<meta name="twitter:card" content="summary">

<meta name="keywords" content=", Pelican, " />

<meta property="og:title" content="Pelican title_capitalize plugin "/>
<meta property="og:url" content="https://blog.florijnconsultancy.nl/articles/pelican-title_capitalize-plugin.html" />
<meta property="og:description" content="" />
<meta property="og:site_name" content="Daily Scrum" />
<meta property="og:article:author" content="Peter Florijn" />
<meta property="og:article:published_time" content="2024-02-10T15:54:00+01:00" />
<meta property="og:article:modified_time" content="2024-02-10T15:54:00+01:00" />
<meta name="twitter:title" content="Pelican title_capitalize plugin ">
<meta name="twitter:description" content="">
<meta property="og:image" content="/theme/images/apple-touch-icon-152x152.png" />
<meta name="twitter:image" content="/theme/images/apple-touch-icon-152x152.png" >

<title>Pelican title_capitalize plugin · Daily Scrum
</title>
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="https://blog.florijnconsultancy.nl/theme/css/elegant.prod.css" media="screen">
<link rel="stylesheet" type="text/css" href="https://blog.florijnconsultancy.nl/theme/css/custom.css" media="screen">

<link href="https://blog.florijnconsultancy.nl/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Daily Scrum - Full Atom Feed" />
<link href="https://blog.florijnconsultancy.nl/feeds/all.rss.xml" type="application/rss+xml" rel="alternate" title="Daily Scrum - Full RSS Feed" />


</head>
<body>
<div id="content">
<div class="navbar navbar-static-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="https://blog.florijnconsultancy.nl/"><span class=site-name>Daily Scrum</span></a>
<div class="nav-collapse collapse">
<ul class="nav pull-right top-menu">
<li >
<a href=
https://blog.florijnconsultancy.nl
>Home</a>
</li>
<li ><a href="https://blog.florijnconsultancy.nl/categories.html">Categories</a></li>
<li ><a href="https://blog.florijnconsultancy.nl/tags.html">Tags</a></li>
<li ><a href="https://blog.florijnconsultancy.nl/archives.html">Archives</a></li>
<li><form class="navbar-search" action="https://blog.florijnconsultancy.nl/search.html" onsubmit="return validateForm(this.elements['q'].value);"> <input type="text" class="search-query" placeholder="Search" name="q" id="tipue_search_input"></form></li>
</ul>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span1"></div>
<div class="span10">
<article itemscope>
<div class="row-fluid">
<header class="page-header span10 offset2">
<h1>
<a href="https://blog.florijnconsultancy.nl/articles/pelican-title_capitalize-plugin.html">
Pelican title_capitalize&nbsp;plugin
</a>
</h1>
</header>
</div>

<div class="row-fluid">
<div class="span8 offset2 article-content">

<p><span class="dquo">&#8220;</span>`python
&ldquo;&rdquo;&rdquo;
Pelican plugin to replace &ldquo;-&rdquo; with a space in an article&rsquo;s title.&nbsp;&ldquo;&rdquo;&ldquo;</p>
<p>from pelican import&nbsp;signals</p>
<p>def title_capitalize(generator, metadata):
try:
metadata[&ldquo;title&rdquo;] = metadata[&ldquo;title&rdquo;].capitalize()
except KeyError:&nbsp;pass</p>
<div class="highlight"><pre><span></span><code>#<span class="w"> </span><span class="nv">not</span><span class="w"> </span><span class="nv">sure</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="nv">you</span><span class="w"> </span><span class="nv">have</span><span class="w"> </span><span class="nv">to</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nv">metadata</span>,<span class="w"> </span><span class="nv">or</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="nv">it</span><span class="w"> </span><span class="nv">is</span>
#<span class="w"> </span><span class="nv">globally</span><span class="w"> </span><span class="nv">updated</span><span class="w"> </span><span class="nv">as</span><span class="w"> </span><span class="nv">it</span><span class="err">&#39;s a dictionary</span>
<span class="err">return metadata</span>
</code></pre></div>

<p>def register():
&ldquo;&rdquo;&ldquo;Register the plugin pieces with&nbsp;Pelican.&rdquo;&ldquo;&rdquo;</p>
<div class="highlight"><pre><span></span><code><span class="n">signals</span><span class="o">.</span><span class="n">article_generator_context</span><span class="o">.</span><span class="n">connect</span><span class="p">(</span><span class="n">title_capitalize</span><span class="p">)</span>
<span class="n">signals</span><span class="o">.</span><span class="n">page_generator_context</span><span class="o">.</span><span class="n">connect</span><span class="p">(</span><span class="n">title_capitalize</span><span class="p">)</span>
</code></pre></div>

<!-- more -->













<section>
<h6 style="display:none;">Comments</h6>
<p id="comment-message">So what do you think? Did I miss something? Is any part unclear? Leave your comments below. </p>

<div class="accordion" id="accordion2">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle disqus-comment-count comment-count"
data-toggle="collapse"
data-parent="#accordion2"
data-disqus-identifier="https://blog.florijnconsultancy.nl/articles/pelican-title_capitalize-plugin.html"
href="https://blog.florijnconsultancy.nl/articles/pelican-title_capitalize-plugin.html#comment_thread"
id="comment-accordion-toggle">
Comments
</a>
</div>
<div id="comment_thread" class="accordion-body collapse">
<div class="accordion-inner">
<div class="comments">
<div id="disqus_thread"></div>
<script>
var disqus_shortname = 'dailyscrum';
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());

var disqus_identifier = 'https://blog.florijnconsultancy.nl/articles/pelican-title_capitalize-plugin.html';
var disqus_url = 'https://blog.florijnconsultancy.nl/articles/pelican-title_capitalize-plugin.html';

(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 the <a href="//disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>


</div>
</div>
</div>
</div>
</div>
</section>

<hr/>
</div>
<section id="article-sidebar" class="span2">
<h4>Published</h4>
<time itemprop="dateCreated" datetime="2024-02-10T15:54:00+01:00">Feb 10, 2024</time>

<h4>Category</h4>
<a class="category-link" href="https://blog.florijnconsultancy.nl/categories.html#pelican-ref">Pelican</a>
<h4>Stay in Touch</h4>
<div id="sidebar-social-link">
<a href="https://github.com/Pelican-Elegant/" title="Elegant Github Repository" target="_blank" rel="nofollow noopener noreferrer">
<svg xmlns="http://www.w3.org/2000/svg" aria-label="GitHub" role="img" viewBox="0 0 512 512"><rect width="512" height="512" rx="15%" fill="#1B1817"/><path fill="#fff" d="M335 499c14 0 12 17 12 17H165s-2-17 12-17c13 0 16-6 16-12l-1-50c-71 16-86-28-86-28-12-30-28-37-28-37-24-16 1-16 1-16 26 2 40 26 40 26 22 39 59 28 74 22 2-17 9-28 16-35-57-6-116-28-116-126 0-28 10-51 26-69-3-6-11-32 3-67 0 0 21-7 70 26 42-12 86-12 128 0 49-33 70-26 70-26 14 35 6 61 3 67 16 18 26 41 26 69 0 98-60 120-117 126 10 8 18 24 18 48l-1 70c0 6 3 12 16 12z"/></svg>
</a>
<a href="/feeds/all.atom.xml" title="" target="_blank" rel="nofollow noopener noreferrer">
<svg xmlns="http://www.w3.org/2000/svg" aria-label="RSS" role="img" viewBox="0 0 512 512"><rect width="512" height="512" rx="15%" fill="#f80"/><circle cx="145" cy="367" r="35" fill="#fff"/><path fill="none" stroke="#fff" stroke-width="60" d="M109 241c89 0 162 73 162 162M109 127c152 0 276 124 276 276"/></svg>
</a>
<a href="https://github.com/Pelican-Elegant/elegant/milestones" title="Elegant Project Roadmap" target="_blank" rel="nofollow noopener noreferrer">
<svg onload="w()" xmlns="http://www.w3.org/2000/svg" aria-label="Calendar" role="img" viewBox="0 0 512 512" font-family="monospace" text-anchor="middle" fill="#667777"><script type="text/ecmascript"><![CDATA[w=()=>{c=0;for (i in e={weekday:"long",month:"short",day:'numeric'}) document.getElementsByTagName('text')[c++].textContent=(new Date).toLocaleString(undefined,{[i]:e[i]})}]]></script><defs><clipPath id="c"><rect width="512" height="512" rx="15%"/></clipPath></defs><g clip-path="url(#c)"><rect width="512" height="512" fill="#dee"/><rect width="512" height="180" fill="#d34"/></g><g id="b"><circle fill="#eab" cx="384" cy="100" r="14" id="a"/><use x="43"/><use x="86"/></g><use y="43"/><text font-size="64" x="256" y="480" id="w">Sunday</text><text fill="#fff" font-size="140" x="140" y="164" id="m">FEB</text><text font-size="256" x="256" y="400" id="d">29</text></svg>
</a>
</div>












</section>
</div>
</article>
</div>
<div class="span1"></div>
</div>
</div>
</div>
<footer>
<div>

&copy; Copyright 2024 by Peter Florijn and licensed under a <a rel="license"
href="http://creativecommons.org/licenses/by/4.0/">
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/80x15.png" />
Creative Commons Attribution 4.0 International License</a>.

</div>

<div>
<span class="site-name">Daily Scrum</span> - A personal blog
</div>



<div id="fpowered">
Powered by: <a href="http://getpelican.com/" title="Pelican Home Page" target="_blank" rel="nofollow noopener noreferrer">Pelican</a>
Theme: <a href="https://elegant.oncrashreboot.com/" title="Theme Elegant Home Page" target="_blank" rel="nofollow noopener noreferrer">Elegant</a>
</div>
</footer> <script src="//code.jquery.com/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
<script>
function validateForm(query)
{
return (query.length > 0);
}
</script>

<script>
(function () {
if (window.location.hash.match(/^#comment-\d+$/)) {
$('#comment_thread').collapse('show');
}
})();
window.onhashchange=function(){
if (window.location.hash.match(/^#comment-\d+$/))
window.location.reload(true);
}
$('#comment_thread').on('shown', function () {
var link = document.getElementById('comment-accordion-toggle');
var old_innerHTML = link.innerHTML;
$(link).fadeOut(200, function() {
$(this).text('Click here to hide comments').fadeIn(200);
});
$('#comment_thread').on('hidden', function () {
$(link).fadeOut(200, function() {
$(this).text(old_innerHTML).fadeIn(200);
});
})
})
</script>

</body>
<!-- Theme: Elegant built for Pelican
License : MIT -->
</html>
2 changes: 1 addition & 1 deletion articles/plantuml-archimate-example-2.html

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions author/peter-florijn.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,18 @@ <h1 id="my-projects">My Projects</h1>
<h1 id="recent-posts">Recent Posts <a id="allposts" href="https://blog.florijnconsultancy.nl/archives.html">all posts</a></h1>
</header>
<div class="recent-posts">
<div itemscope class="recent-posts-article">
<a href="https://blog.florijnconsultancy.nl/articles/pelican-title_capitalize-plugin.html">
Pelican title_capitalize&nbsp;plugin
</a>
<div class="recent-posts-posted">
posted in
<a href="https://blog.florijnconsultancy.nl/categories.html#pelican-ref">Pelican</a>
<div class="recent-posts-time">
<time itemprop="dateCreated" datetime="2024-02-10T15:54:00+01:00">Sat 10 February 2024</time>
</div>
</div>
</div>
<div itemscope class="recent-posts-article">
<a href="https://blog.florijnconsultancy.nl/articles/no-sound-guitar-rig.html">
No sound guitar&nbsp;rig
Expand Down Expand Up @@ -205,18 +217,6 @@ <h1 id="recent-posts">Recent Posts <a id="allposts" href="https://blog.florijnco
</div>
</div>
</div>
<div itemscope class="recent-posts-article">
<a href="https://blog.florijnconsultancy.nl/articles/open-apps-from-unidentied-developers-on-catalina.html">
Open apps from unidentied developers on&nbsp;catalina
</a>
<div class="recent-posts-posted">
posted in
<a href="https://blog.florijnconsultancy.nl/categories.html#blogging-ref">Blogging</a>
<div class="recent-posts-time">
<time itemprop="dateCreated" datetime="2019-11-25T08:32:00+01:00">Mon 25 November 2019</time>
</div>
</div>
</div>
</div>
</div>
</div>
Expand Down
24 changes: 12 additions & 12 deletions author/peter-florijn2.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,18 @@ <h1 id="my-projects">My Projects</h1>
<h1 id="recent-posts">Recent Posts <a id="allposts" href="https://blog.florijnconsultancy.nl/archives.html">all posts</a></h1>
</header>
<div class="recent-posts">
<div itemscope class="recent-posts-article">
<a href="https://blog.florijnconsultancy.nl/articles/pelican-title_capitalize-plugin.html">
Pelican title_capitalize&nbsp;plugin
</a>
<div class="recent-posts-posted">
posted in
<a href="https://blog.florijnconsultancy.nl/categories.html#pelican-ref">Pelican</a>
<div class="recent-posts-time">
<time itemprop="dateCreated" datetime="2024-02-10T15:54:00+01:00">Sat 10 February 2024</time>
</div>
</div>
</div>
<div itemscope class="recent-posts-article">
<a href="https://blog.florijnconsultancy.nl/articles/no-sound-guitar-rig.html">
No sound guitar&nbsp;rig
Expand Down Expand Up @@ -205,18 +217,6 @@ <h1 id="recent-posts">Recent Posts <a id="allposts" href="https://blog.florijnco
</div>
</div>
</div>
<div itemscope class="recent-posts-article">
<a href="https://blog.florijnconsultancy.nl/articles/open-apps-from-unidentied-developers-on-catalina.html">
Open apps from unidentied developers on&nbsp;catalina
</a>
<div class="recent-posts-posted">
posted in
<a href="https://blog.florijnconsultancy.nl/categories.html#blogging-ref">Blogging</a>
<div class="recent-posts-time">
<time itemprop="dateCreated" datetime="2019-11-25T08:32:00+01:00">Mon 25 November 2019</time>
</div>
</div>
</div>
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit 7b96ba4

Please sign in to comment.