-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmy-super-blog.html
More file actions
161 lines (144 loc) · 6.06 KB
/
my-super-blog.html
File metadata and controls
161 lines (144 loc) · 6.06 KB
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
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>LifeDebuger stuff | Hot to create blog in Pelican, hosted on github pages</title>
<link rel="shortcut icon" type="image/png" href="/favicon.png">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<link href="/feeds/all.rss.xml" type="application/rss+xml" rel="alternate" title="LifeDebuger stuff Full RSS Feed" />
<link href="/feeds/python.rss.xml" type="application/rss+xml" rel="alternate" title="LifeDebuger stuff Categories RSS Feed" />
<link rel="stylesheet" href="/theme/css/screen.css" type="text/css" />
<link rel="stylesheet" href="/theme/css/pygments.css" type="text/css" />
<link rel="stylesheet" href="/theme/css/print.css" type="text/css" media="print" />
<meta name="generator" content="Pelican" />
<meta name="keywords" content="python,pelican,github" />
</head>
<body>
<header>
<nav>
<ul>
<li><a href="">Home</a></li>
</ul>
</nav>
<div class="header_box">
<h1><a href="">LifeDebuger stuff</a></h1>
</div>
</header>
<div id="wrapper">
<div id="content"> <h4 class="date">бер 28, 2017</h4>
<article class="post">
<h2 class="title">
<a href="/my-super-blog.html" rel="bookmark" title="Permanent Link to "Hot to create blog in Pelican, hosted on github pages"">Hot to create blog in Pelican, hosted on github pages</a>
</h2>
<div class="section" id="create-repo">
<h2>Create repo</h2>
<p>Firstly, create a github page by creating a github repository and name it USERNAME.github.io</p>
<pre class="code bash literal-block">
git clone https://github.com/USERNAME/USERNAME.github.io.git
<span class="pygments-nb">cd</span> USERNAME.github.io.git
python -m virtualenv --no-site-packages -p /usr/bin/python .env
<span class="pygments-nb">source</span> .env/bin/activate
git checkout -b <span class="pygments-nb">source</span>
pip install pelican
pip install Markdown
pip install ghp-import
git clone --recursive https://github.com/getpelican/pelican-plugins
git clone --recursive https://github.com/getpelican/pelican-themes
pelican-quickstart
</pre>
<p>Answer some questions ....
> Where do you want to create your new web site? [.]
> What will be the title of this web site? Buttermilch
> Who will be the author of this web site? Tony Stark
> What will be the default language of this web site? [en]
> Do you want to specify a URL prefix? e.g., <a class="reference external" href="http://example.com">http://example.com</a> (Y/n) n
> Do you want to enable article pagination? (Y/n)
> How many articles per page do you want? [10]
> Do you want to generate a Fabfile/Makefile ... and publishing? (Y/n)
> Do you want an auto-reload & simpleHTTP ... and site development? (Y/n)
> Do you want to upload your website using FTP? (y/N)
> Do you want to upload your website using SSH? (y/N)
> Do you want to upload your website using Dropbox? (y/N)
> Do you want to upload your website using S3? (y/N)
> Do you want to upload your website using Rackspace Cloud Files? (y/N)</p>
</div>
<div class="section" id="edit-pelicanconf-py">
<h2>Edit pelicanconf.py</h2>
<p>configure plugins ...
setup nessesary python packages ...</p>
</div>
<div class="section" id="create-a-markdown-post">
<h2>Create a Markdown Post</h2>
<pre class="code bash literal-block">
vi content/test.md
</pre>
<pre class="code markdown literal-block">
Title: Buttermilch is awesome
Date: 2013-08-22 16:08
Category: Python
Tags: python
Author: Tony Stark
Summary: Buttermilch is super cool.
Buttermilch is super cool.
</pre>
</div>
<div class="section" id="create-a-rst-post">
<h2>Create a rst Post</h2>
<pre class="code bash literal-block">
vi content/test1.rst
</pre>
<pre class="code rst literal-block">
<span class="pygments-gh">My super title</span>
<span class="pygments-gh">##############</span>
<span class="pygments-nc">:date:</span> <span class="pygments-nf">2010-10-03 10:20</span>
<span class="pygments-nc">:modified:</span> <span class="pygments-nf">2010-10-04 18:40</span>
<span class="pygments-nc">:tags:</span> <span class="pygments-nf">thats, awesome</span>
<span class="pygments-nc">:category:</span> <span class="pygments-nf">yeah</span>
<span class="pygments-nc">:slug:</span> <span class="pygments-nf">my-super-post</span>
<span class="pygments-nc">:authors:</span> <span class="pygments-nf">Alexis Metaireau, Conan Doyle</span>
<span class="pygments-nc">:summary:</span> <span class="pygments-nf">Short version for index and feeds</span>
Buttermilch is super cool.
</pre>
</div>
<div class="section" id="test-your-localhost-site">
<h2>Test your localhost site</h2>
<pre class="code bash literal-block">
make html
make serve
</pre>
</div>
<div class="section" id="save-and-push-to-github">
<h2>Save and push to github</h2>
<pre class="code bash literal-block">
git branch gh-pages
ghp-import output
git checkout master
git merge gh-pages
git push --all
</pre>
<p>ENJOI!</p>
</div>
<div class="clear"></div>
<div class="info">
<a href="/my-super-blog.html">posted at 15:20</a>
· <a href="/category/python.html" rel="tag">python</a>
·
<a href="/tag/python.html" class="tags">python</a>
<a href="/tag/pelican.html" class="tags">pelican</a>
<a href="/tag/github.html" class="tags">github</a>
</div>
</article>
<div class="clear"></div>
<footer>
<p>
<a href="https://github.com/jody-frankowski/blue-penguin">Blue Penguin</a> Theme
·
Powered by <a href="http://getpelican.com">Pelican</a>
·
<a href="/feeds/all.rss.xml" rel="alternate">Rss Feed</a>
</footer>
</div>
<div class="clear"></div>
</div>
</body>
</html>