-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelican-on-windows.html
151 lines (111 loc) · 5.53 KB
/
pelican-on-windows.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE html>
<html lang="english">
<head>
<meta charset="utf-8">
<title>Just a blog - Pelican on Windows</title>
<meta name="description" content="">
<meta name="author" content="Torfinn Ingolfsen">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="https://tingox.github.io/theme/html5.js"></script>
<![endif]-->
<!-- Le styles -->
<link href="https://tingox.github.io/theme/bootstrap.min.css" rel="stylesheet">
<link href="https://tingox.github.io/theme/bootstrap.min.responsive.css" rel="stylesheet">
<link href="https://tingox.github.io/theme/local.css" rel="stylesheet">
<link href="https://tingox.github.io/theme/pygments.css" rel="stylesheet">
<!-- So Firefox can bookmark->"abo this site" -->
<link href="https://tingox.github.io/feeds/all.atom.xml" rel="alternate" title="Just a blog" type="application/atom+xml">
</head>
<body>
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<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://tingox.github.io">Just a blog</a>
<div class="nav-collapse">
<ul class="nav">
</ul>
</div>
</div>
</div>
</div>
<div class="container">
<div class="content">
<div class="row">
<div class="span9">
<div class='article'>
<div class="content-title">
<h1>Pelican on Windows</h1>
Mon 12 February 2018
by <a class="url fn" href="https://tingox.github.io/author/torfinn-ingolfsen.html">Torfinn Ingolfsen</a>
</div>
<div><p>Installing Pelican on Windows is quite easy. You need <a href="https://www.python.org/">Python</a> of course, then it is just 'pip install pelican' followed
by 'pip install MarkDown' and Pelican is installed. All this from <a href="https://en.wikipedia.org/wiki/PowerShell">PowerShell</a>.</p>
<p>Unfortunately, my setup uses a Makefile (originally I set up this under Linux). So I need make, the Makefile needs sed and tr
and perhaps date. <a href="http://gnuwin32.sourceforge.net/">GnuWin</a> to the rescue, it has packages for <a href="http://gnuwin32.sourceforge.net/packages/make.htm">make</a>, <a href="http://gnuwin32.sourceforge.net/packages/sed.htm">sed</a> and <a href="http://gnuwin32.sourceforge.net/packages/coreutils.htm">coreutils</a> (which contains tr).</p>
<p>There are some things I haven't got working, like date. The date command from GnuWin coreutils package is installed, when I run
it from a powershell (the same command as in my Makefile, it works. If I enable it in the Makefile, make hangs.
Another issue is that make generates content filenames with prefixed and postfixed with dashes ('-'), even if the Makefile code
to generate a slug works. If the slug is 'this-is-a-test", the filename will be '-this-is-a-test-.md' and I don't know why yet.</p></div>
<hr>
</div>
</div>
<div class="span3">
<div class="well" style="padding: 8px 0; background-color: #FBFBFB;">
<ul class="nav nav-list">
<li class="nav-header">
Site
</li>
<li><a href="https://tingox.github.io/archives.html">Archives</a>
<li><a href="https://tingox.github.io/tags.html">Tags</a>
<li><a href="https://tingox.github.io/feeds/all.atom.xml" rel="alternate">Atom feed</a></li>
</ul>
</div>
<div class="well" style="padding: 8px 0; background-color: #FBFBFB;">
<ul class="nav nav-list">
<li class="nav-header">
Categories
</li>
<li><a href="https://tingox.github.io/category/blog.html">blog</a></li>
<li><a href="https://tingox.github.io/category/misc.html">misc</a></li>
</ul>
</div>
<div class="well" style="padding: 8px 0; background-color: #FBFBFB;">
<ul class="nav nav-list">
<li class="nav-header">
Links
</li>
<li><a href="http://getpelican.com/">Pelican</a></li>
<li><a href="http://python.org/">Python.org</a></li>
<li><a href="http://jinja.pocoo.org/">Jinja2</a></li>
<li><a href="http://heim.bitraf.no/tingo/">Torfinn @heim</a></li>
</ul>
</div>
<div class="social">
<div class="well" style="padding: 8px 0; background-color: #FBFBFB;">
<ul class="nav nav-list">
<li class="nav-header">
Social
</li>
<li><a href="https://www.linkedin.com/in/torfinn-ingolfsen-9816a93/">LinkedIn profile</a></li>
<li><a href="#">Another social link</a></li>
</ul>
</div>
</div>
</div>
</div> </div>
<footer>
<br />
<p><a href="https://tingox.github.io">Just a blog</a> © Torfinn Ingolfsen 2020</p>
</footer>
</div> <!-- /container -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="https://tingox.github.io/theme/bootstrap-collapse.js"></script>
</body>
</html>