-
Notifications
You must be signed in to change notification settings - Fork 0
/
atom.xml
225 lines (138 loc) · 10.7 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
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title><![CDATA[Category: Octopress | apa]]></title>
<link href="http://blog.rx836.tw/blog/categories/octopress/atom.xml" rel="self"/>
<link href="http://blog.rx836.tw/"/>
<updated>2013-06-13T18:46:54+08:00</updated>
<id>http://blog.rx836.tw/</id>
<author>
<name><![CDATA[阿帕]]></name>
</author>
<generator uri="http://octopress.org/">Octopress</generator>
<entry>
<title type="html"><![CDATA[[Octopress]如何設定自己的Domain與異地編輯設定]]></title>
<link href="http://blog.rx836.tw/blog/octopress-notes-2/"/>
<updated>2012-05-20T01:35:00+08:00</updated>
<id>http://blog.rx836.tw/blog/octopress-notes-2</id>
<content type="html"><![CDATA[<p>用了將近一個月的Octopress,才慢慢覺得開始步上軌道,好笑的是我竟然誤以為因為Domain沒有設定,才會導致Google搜尋不到我的文章...,更慘的是,匆忙的利用網銀買了一組自己的Domain回來後,才發現原來我淺到連DNS都不會設定...</p>
<!--more-->
<p>能把這麼丟臉的事情都昭告天下,就是我認為人就是要認清自己,不會的東西就是要主動去尋求答案,不懂的事情也不要怕丟臉被別人知道,因為我深信,不可能每個人一出生就什麼事情都會,但唯有不肯面對自己的人....ㄟ!話題偏了</p>
<p>如果你要設定自己的一組Domain,首先必須先去買一組屬於自己的網址,像我因為之前有幫公司在PC HOME買過網址的經驗,所以我就直接挑選PC HOME做為買網址的服務</p>
<p><a href="http://myname.pchome.com.tw/" target="_blank">PC HOME買網址</a></p>
<p>買了網址等到他通知你服務開通,接著就是進去他的管理介面做設定,因為一般來說<strong>DNS的設定大約要24小時</strong>才能好,所以我會先建議這一步先做,但這裡就有血淚史可以講了...因為我不知道我自己的DNS設定的正不正確,所以都要等上一天,抱著滿懷期待的心情輸入網址,看見那404的畫面..,然後再重新設定一次DNS...,等24小時...,再一次的循環...</p>
<h3>好險國父革命11次,我只革命了七天,算是不幸中的大幸</h3>
<p>回到設定網址,參照官網是要使用<strong>CNAME</strong>的方式來設定網址,參照PC HOME 的說明是指CNAME,意思就是<strong>別名 Aliases</strong>,白話的意思就是將你的網域名稱對應到某個網站,所以我DNS的管理設定如下</p>
<pre><code>主機 / 次網域 | 地址 | 類型
blog | rx836.github.com. | CNAME
</code></pre>
<p>接著就是Octopress的設定,一樣在指令模式下輸入</p>
<pre><code>echo 'your-domain.com' >> source/CNAME
</code></pre>
<p><strong>your-domain.com</strong>就是你的Domain,例如我的是blog.rx836.tw</p>
<p>然後妳就會在source看到多了一個名叫CNAME的檔案,用記事本打開還會看到你的Domain已經寫在裡面了,再來就是輸入</p>
<pre><code>rake generate
</code></pre>
<p>接著發佈</p>
<pre><code>rake deploy
</code></pre>
<p>然後好好睡一覺,等明天打開網址大喊</p>
<h3>爽啦!我終於設定好了</h3>
<p>可是設定好後,我還是在Google搜尋不到我的文章,Google Analytics怎麼看都只有我自己的流量,不奢求成為受歡迎的Blog客,但沒人可以一起分享總是覺得孤單,唱獨角戲的感覺很不真實,也就不會有寫文章的動力</p>
<p>所以我打算主動出擊,直接跑去別人的blog問(<a href="http://zespia.tw" target="_blank">http://zespia.tw/</a>),果然社群都是很親切大方的,直接告訴我把<strong>sitemap.xml</strong>檔案這個丟到Google上就可以了!</p>
<p><a href="https://www.google.com/webmasters/tools/" target="_blank">Google 網站管理工具</a></p>
<p>利用網站管理工具先新增一個網站,接著提交sitemap就完成了,一段時間以後,你的網站就曝光在網際網路的茫茫大海之中,但排名或是SEO優化這部分就要看個人造化了</p>
<p>當你開始經營一個Blog時,你一定不會只想在一個地方撰寫Blog,有時候突如其來的想法或是問題分享,會讓你想要立刻打開編輯器做編輯,但Octopress不是一般的Blog,他需要先在本機做產生,再發佈,不像其他的Blog有個後台管理,所以異地編輯就需要花一些功夫</p>
<h3>這裡我是用Octopress+Github當教學</h3>
<p>首先你要有一台已經安裝好Octopress和Github(<a href="http://blog.rx836.tw/blog/first-octopress/" target="_blank">這裡教學</a>)的環境,接著Clone你的Blog到你新的這台電腦裡面</p>
<pre><code>git clone git@github.com:rx836/rx836.github.com.git
</code></pre>
<p>上面是我Github的SSH,你要換成自己的才行</p>
<p>接著要checkout出source</p>
<pre><code>cd rx836.github.com
git checkout source
</code></pre>
<p>然後再重新設置github的設定做連結</p>
<pre><code>rake setup_github_pages
</code></pre>
<p>出現提示以後再輸入你的SSH</p>
<pre><code>git@github.com:rx836/rx836.github.com.git
</code></pre>
<p>接著在更新你的source</p>
<pre><code>git pull origin source
</code></pre>
<p>最後就可以看是要新增文章,還是編輯,產生,發佈,躺著,趴著,跪著,隨便怎麼做都可以了</p>
<p>一樣,在發佈Blog以後,別問了記得更新source到你的Github上,這樣另外一台才可以有最新的source可以用喔</p>
<pre><code>git add .
git commit m 'mycommit'
git push origin source
</code></pre>
<p>參考:<a href="http://shanewfx.github.com/blog/2012/02/16/clone-blog-from-github/" target="_blank">http://shanewfx.github.com/blog/2012/02/16/clone-blog-from-github/</a></p>
<p>以上教學分享,如有疑問或錯誤,歡迎一起討論</p>
]]></content>
</entry>
<entry>
<title type="html"><![CDATA[[Octopress]如何開啟 Disqus與和常見的指令]]></title>
<link href="http://blog.rx836.tw/blog/octopress-notes-1/"/>
<updated>2012-04-27T02:12:00+08:00</updated>
<id>http://blog.rx836.tw/blog/octopress-notes-1</id>
<content type="html"><![CDATA[<p>經營Blog不是一件簡單的事情,尤其是還是自己架Blog的情況下,更是挫折連連,真的是憑藉著一股不知哪來的傻勁,遇到問題就找找資料,土法煉鋼好像也能做出一把堪用的武器出來</p>
<!-- more -->
<h2>為什麼我沒有Comments..</h2>
<p>對呀...,為什麼我沒有Comments,沒想到第一個遇到的問題就是這麼看似平凡,但對於我這個新手來說,卻是不知如何是好的難題,好險網路上還是有很多人願意紀錄這一切</p>
<p><a href="http://gangmax.github.com/blog/2012/01/20/how-to-use-disqus-in-octopress/" target="_blank">Blog of GangMax : How to Use Disqus in Octopress</a></p>
<p>簡單來說就是需先申請<a href="http://www.disqus.com/" target="_blank">disqus</a>帳號,接著將你的disqus_short_name填在<strong>_config.yml</strong>裡面</p>
<pre><code>disqus_short_name: your_disqus_short_name
disqus_show_comment_count: true
</code></pre>
<h2>一些常用的指令</h2>
<p>說來可憐...,我到現在還不會在不同台電腦編寫我的Octopress,最近嘗試一次結果因為不熟git而把檔案搞得亂七八糟,但最近有找到一篇文章,我是還沒有親自嘗試過,但想要在這邊先記錄下來,以方便我回頭來看</p>
<p><a href="http://shanewfx.github.com/blog/2012/02/16/clone-blog-from-github/" target="_blankl">思考的轨迹 : 如何维护Github上博客</a></p>
<p>然後常用的指令有</p>
<p><strong>設置Octopress與Github做連結</strong></p>
<pre><code>rake setup_github_pages
</code></pre>
<p><strong>新增文章</strong></p>
<pre><code>rake new_post["title"]
</code></pre>
<p><strong>產生<em>deploy,也就是將你source裡面的檔案轉換成html放到</em>deploy</strong></p>
<pre><code>rake generate
</code></pre>
<p><strong>發佈_deploy到Github上</strong></p>
<pre><code>rake deploy
</code></pre>
<p><strong>假使用UTF-8編碼,必須先設定這兩行</strong></p>
<pre><code>set LC_ALL=zh_TW.UTF-8
set LANG=zh_TW.UTF-8
</code></pre>
<p><strong>將Octopress原始碼放到Github分支Source上(Master是放_deploy)</strong></p>
<pre><code>git add .
git commit -m "your message"
git push origin source
</code></pre>
<p>這還真是一篇"筆記"的文章...</p>
]]></content>
</entry>
<entry>
<title type="html"><![CDATA[[Octopress]出生以來第一次使用Octopress for windows]]></title>
<link href="http://blog.rx836.tw/blog/first-octopress/"/>
<updated>2012-04-27T01:55:00+08:00</updated>
<id>http://blog.rx836.tw/blog/first-octopress</id>
<content type="html"><![CDATA[<p>終於...</p>
<p>在拼命的鬼打牆之下,我終於架好<a href="http://octopress.org/" target="_blank">Octopress</a>,之前原本就想用過Blogger想要當作工作上的筆記來用,久而久之除了介面不好用再加上懶惰的情況下,沒多久就放棄了,接下來換到點部落,剛好遇到他們貼程式碼的BUG,在等他們修復的情況下,我的耐心也隨著時間而流逝放棄</p>
<!-- more -->
<p>但因為這篇是我第一次用Octopress寫文章,許多設定和細節都還沒掌握,所以我簡單的貼上幾個從google上所找到的教學資源作為筆記與參考</p>
<p>1.因為我是用Octopress+github,所以首先必須先安裝好github</p>
<p><a href="http://itspg.github.com/blog/2012/02/29/github-on-windows-tutorial/" target="_blank">itsPG.org [教學] 在windows上使用github 新手教學 / 初學者指南</a></p>
<p>這是針對windows,至於其他作業系統例如Mac網路上資源頗多的,這裡就不多加闡述</p>
<p>2.再來是安裝Octopress</p>
<p><a href="http://itspg.github.com/blog/2012/02/29/octopress-on-windows-tutorial/" target="_blank">itsPG.org [教學] 在windows上安裝octopress 新手教學 / 初學者指南</a></p>
<p>3.因為Octopress是用Markdown編輯的,所以要了解到甚麼是Markdown</p>
<p><a href="http://markdown.tw/#link" target="_blank">Markdown</a></p>
<p>4.再來就是找一個好編輯Markdown的工具來編輯,當然用記事本也是可以,這邊我選擇的是MarkPad</p>
<p><a href="http://code52.org/DownmarkerWPF/" target="_blank">MarkPad</a></p>
<p>不過要注意的是要先安裝<a href="http://www.microsoft.com/downloads/zh-tw/details.aspx?FamilyID=0a391abd-25c1-4fc0-919f-b21f31ab88b7" target="_blank">Microsoft .NET Framework 4</a></p>
<p>接著就開開心心的使用Octopress</p>
<p>但接下來還有很多東西還要學習與克服,我也會將遭遇到的問題記錄成筆記來當作參考</p>
]]></content>
</entry>
</feed>