-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathatom.xml
304 lines (228 loc) · 9.74 KB
/
atom.xml
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Script Ahead, Code Behind</title>
<link href="http://rednaxelafx.github.com/atom.xml" rel="self"/>
<link href="http://rednaxelafx.github.com/"/>
<updated>2011-09-05T01:06:57+08:00</updated>
<id>http://rednaxelafx.github.com/</id>
<author>
<name>Krystal Mok</name>
</author>
<entry>
<title>Test Page</title>
<link href="http://rednaxelafx.github.com/blog/2011/09/04/test-page/"/>
<updated>2011-09-04T17:28:00+08:00</updated>
<id>http://rednaxelafx.github.com/blog/2011/09/04/test-page</id>
<content type="html"><p>This is a test page for my new blog on Github.</p>
<p>I&rsquo;ll be gradually moving from my old blog to this one, since my old blog is
mostly in Chinese, but it&rsquo;s likely for me to be writing more English posts in
the future.</p>
<p>Anyway, here&rsquo;s the link to my old blog: <a href="http://rednaxelafx.iteye.com">http://rednaxelafx.iteye.com</a></p>
<p><a id="setup"></a></p>
<h2>Setting up this blog</h2>
<p>Apparently I&rsquo;m using <a href="http://octopress.org/">Octopress</a> to power this blog. Many
thanks for the nice framework that save me a lot of time to get up to speed.
I probably wouldn&rsquo;t have decided to move my blog here in the first place if
there weren&rsquo;t ready-to-use solutions for lazy people like me.</p>
<p>Just to remind myself of the steps I took to set it up:</p>
<p>I followed <a href="http://yavaeye.com/p/show/hello-octopress">a guide</a> by
<a href="http://luikore.github.com/">Zete Lui</a>(<a href="https://twitter.com/night_song">@night_song</a>)
for the initial setup. Nice and easy.</p>
<p>It&rsquo;ll take some more time to customizing everything. Let&rsquo;s see how it goes.</p>
<p>So far, the customizations I&rsquo;ve made to the default Octopress blog are in:</p>
<ul>
<li>modified <code>Rakefile</code></li>
</ul>
<p>These two lines will have to be modified for me to get deploy working right:</p>
<p>``` ruby</p>
<pre><code>deploy_default = "push"
deploy_branch = "master"
</code></pre>
<p>```</p>
<ul>
<li>modified <code>_config.yml</code></li>
</ul>
<p>``` yaml</p>
<pre><code># ----------------------- #
# Main Configs #
# ----------------------- #
url: http://rednaxelafx.github.com
title: Script Ahead, Code Behind
subtitle: Krystal Mok's Weblog
author: Krystal Mok
simple_search: http://google.com/search
# RSS / Email (optional) subscription links (change if using something like Feedburner)
subscribe_rss: /atom.xml
subscribe_email:
# RSS feeds can list your email address if you like
email:
# ----------------------- #
# Jekyll &amp; Plugins #
# ----------------------- #
# If publishing to a subdirectory as in http://site.com/project set 'root: /project'
root: /
permalink: /blog/:year/:month/:day/:title/
source: source
destination: public
plugins: plugins
code_dir: downloads/code
category_dir: blog/categories
markdown: rdiscount
rdiscount:
extensions: [smart, autolink]
pygments: false # default python pygments have been replaced by pygments.rb
paginate: 10 # Posts per page on the blog index
pagination_dir: blog # Directory base for pagination URLs eg. /blog/page/2/
recent_posts: 6 # Posts in the sidebar Recent Posts section
excerpt_link: "Read on &amp;rarr;" # "Continue reading" link text at the bottom of excerpted articles
# list each of the sidebar modules you want to include, in the order you want them to appear.
# To add custom asides, create files in /source/_includes/custom/asides/ and add them to the list like 'custom/asides/custom_aside_name.html'
default_asides: [custom/asides/about.html, asides/recent_posts.html, custom/asides/tags.html, custom/asides/blogroll.html, asides/twitter.html]
# Each layout uses the default asides, but they can have their own asides instead. Simply uncomment the lines below
# and add an array with the asides you want to use.
# blog_index_asides:
# post_asides:
# page_asides:
# ----------------------- #
# 3rd Party Settings #
# ----------------------- #
# Twitter
twitter_user: rednaxelafx
twitter_tweet_count: 6
twitter_show_replies: false
twitter_follow_button: true
twitter_show_follower_count: false
twitter_tweet_button: true
# Google Plus
google_plus_one: true
google_plus_one_size: medium
# Pinboard
pinboard_user:
pinboard_count: 3
# Delicious
delicious_user:
delicious_count: 3
# Disqus Comments
disqus_short_name:
# Google Analytics
google_analytics_tracking_id: UA-25520242-1
</code></pre>
<p>```</p>
<ul>
<li>modified <code>sass/partials/sidebar/_base.scss</code></li>
</ul>
<p>Copied the style for the search box from <code>sass/partials/_navigation.scss</code> for
the tag filter box:</p>
<p>``` scss</p>
<pre><code> .search {
padding: .3em .5em 0;
font-size: .85em;
@extend .sans;
line-height: 1.1em;
width: 95%;
@include border-radius(.5em);
@include background-clip(padding-box);
@include box-shadow(lighten($nav-bg, 2) 0 1px);
background-color: lighten($nav-bg, 15);
border: 1px solid $nav-border;
color: #888;
&amp;:focus {
color: #444;
border-color: #80b1df;
@include box-shadow(#80b1df 0 0 4px, #80b1df 0 0 3px inset);
background-color: #fff;
outline: none;
}
}
</code></pre>
<p>```</p>
<p>And, changed the style for <code>&lt;li&gt;</code> tags so that the blogroll hierarchy can be
shown:</p>
<p>``` scss</p>
<pre><code> li {
// list-style: none;
padding: .5em 0;
margin: 0;
margin-left: 20px;
border-bottom: 1px solid $sidebar-border;
@extend .side-shadow-border;
p:last-child {
margin-bottom: 0;
}
}
</code></pre>
<p>```</p>
<ul>
<li>modified <code>sass/screen.scss</code></li>
</ul>
<p>Added the following to make lists indent right. Otherwise they stick out to the
left and look weird.</p>
<p>``` scss</p>
<pre><code>.entry-content li {
margin-left: 20px;
}
</code></pre>
<p>```</p>
<ul>
<li>added <code>source/_includes/custom/asides/tags.html</code></li>
</ul>
<p>``` html</p>
<pre><code>&lt;section&gt;
&lt;h1&gt;Tags&lt;/h1&gt;
&lt;input class="search" type="text" name="filter_tags" results="0" placeholder="Filter Tags ..."/&gt;
&lt;script type="text/javascript"&gt;
$('input[name=filter_tags]').keyup(function(e){
var val = $(this).val();
if (/^\s*$/.test(val) || e.keyCode == 27) { // 27 is 'esc'
$('#tags li').show();
$(this).val('');
return;
}
var pattern = new RegExp(val, 'i');
$('#tags li').each(function(){
$(this)[pattern.test($(this).find('a').text()) ? 'show' : 'hide']();
});
});
&lt;/script&gt;
&lt;ul id="tags"&gt;
{% for cat in site.categories %}
&lt;li class="post"&gt;
&lt;a href="http://rednaxelafx.github.com/blog/categories/"&gt;&lt;/a&gt;
&lt;/li&gt;
{% endfor %}
&lt;/ul&gt;
&lt;/section&gt;
</code></pre>
<p>```</p>
<ul>
<li>modified <code>source/_includes/custom/navigation.html</code></li>
</ul>
<p>``` html</p>
<pre><code>&lt;ul role=main-navigation&gt;
&lt;li&gt;&lt;a href="http://rednaxelafx.github.com/"&gt;Blog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://rednaxelafx.github.com/blog/archives"&gt;Archives&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/rednaxelafx"&gt;Github&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</code></pre>
<p>```</p>
<ul>
<li>modified <code>source/_includes/custom/asides/about.html</code></li>
<li>added <code>source/_includes/custom/asides/blogroll.html</code></li>
</ul>
<p>That&rsquo;s probably &hellip; about it? I&rsquo;ve got lost track of what else I modified.
Anyway, this reminder should be enough if I should ever need to do it again.</p>
<p>Oh, right, I need to update the <code>source/favicon.png</code> file.</p>
<p><a id="misc"></a></p>
<h2>Miscellaneous</h2>
<p>I&rsquo;ve learned that <a href="http://octopress.org/docs/blogging/code/">embedding a Gist</a>
can be done with:</p>
<p>``` django</p>
<pre><code>{% gist &lt;gist_id&gt; [display file name] %}
</code></pre>
<p>```</p>
<p>To make life easier when editing Markdown files on my Ubuntu box with GEdit,
I&rsquo;ve installed <a href="http://www.jpfleury.net/en/software/gedit-markdown.php">gedit-markdown</a>
plugin.</p>
</content>
</entry>
</feed>