Skip to content
This repository has been archived by the owner on Oct 31, 2019. It is now read-only.

Commit

Permalink
For blog writing on other devices
Browse files Browse the repository at this point in the history
The source file should be updated with the blog site so that it can be
cloned on other devices.
  • Loading branch information
VincentTam committed Mar 7, 2014
1 parent d156ce2 commit 8c7be99
Show file tree
Hide file tree
Showing 9 changed files with 146 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@ source/_stash
source/stylesheets/screen.css
vendor
node_modules
source/_posts/*
source/about/
source/images/git_status.png
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ default_asides: [asides/recent_posts.html, asides/github.html, asides/delicious.
# ----------------------- #

# Github repositories
github_user:
github_repo_count: 0
github_user: VincentTam
github_repo_count: 5
github_show_profile_link: true
github_skip_forks: true

Expand Down
1 change: 1 addition & 0 deletions source/_includes/custom/navigation.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<ul class="main-navigation">
<li><a href="{{ root_url }}/about">About</a></li>
<li><a href="{{ root_url }}/">Blog</a></li>
<li><a href="{{ root_url }}/blog/archives">Archives</a></li>
</ul>
12 changes: 12 additions & 0 deletions source/_posts/2014-02-16-my-first-octopress-post.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
layout: post
title: "My First Octopress Post"
date: 2014-02-16 20:18:17 +0800
comments: true
categories:
---
[Zerodie](http://zerodie.github.io/blog/2012/01/19/octopress-github-pages/)
has found a mistake in
[*Blogging Basics*](http://octopress.org/docs/blogging/).

<!-- vim:set tw=70 wrap spell: -->
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
layout: post
title: "Git status of my Octopress folder"
date: 2014-03-01 17:32:29 +0800
comments: true
categories:
---
I'd like to include my GitHub repositories here. To do so, it's a
piece of cake to slightly modify `_config.yml`.[^config_octopress]

Once, I curiously typed `git status` in `~/octopress`. The following
screenshot is from my terminal.

{% img /images/git_status.png 'git status' 'git status' %}

Then I blindly followed the "advice" of `git status` and typed

```
$ git add .
```

It seemed that I had made a mistake. Actually, **without adding those
modified and untracked files on the stage for commit**, the following
two commands will do.

```
$ rake generate
$ rake deploy
```

The final step is to view your blog again after going out for a cup
water or some snacks.

How about the `git status`? Simply *forget about it*!

[^config_octopress]: [Configuring Octopress](http://octopress.org/docs/configuring/)

<!-- vim:set tw=70 wrap spell: -->
15 changes: 15 additions & 0 deletions source/_posts/2014-03-02-a-vim-lover-page.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
layout: post
title: "A Vim Lover Page"
date: 2014-03-02 14:39:20 +0800
comments: true
categories:
---
I've found [a useful page](http://wiki.hotoo.me/Vim.html) introducing
a Vim lover. It consists of plenty of links to many useful resources.
Unfortunately, for Vim users who *can't* understand Chinese, I'm not
sure if they can understand the contents of the page. I hope Google
Translation can help. Otherwise, they can also find some hyperlinks
which take them to other English websites.

<!-- vim:set tw=70 wrap spell: -->
30 changes: 30 additions & 0 deletions source/_posts/2014-03-02-creating-a-new-octopress-page.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
layout: post
title: "Creating a New Octopress Page"
date: 2014-03-02 01:30:51 +0800
comments: true
categories:
---
I haven't learn something about Octopress for 2 weeks. I hope that I
can create a GitHub project page using Octopress successfully.

I have seen a comment for a blog post which briefly describes the
procedures for making `gh-pages`. The user who has left the comment
claims that the posts, which should be under the `source/_posts`
directory[^doc], is in the `source` branch of Octopress Git
repository. I'm going to figure it out. No matter it's true or not,
it's something that puzzles some Octopress users.

Creating an ABOUT page
----

I couldn't find the answer for adding new items to the navigation bar
at the top of the posts and under the header in an Octopress blog
because I didn't know the Google search words. This afternoon, I found
that googling "octopress page navigation" help. I managed to find a
blog post on that.[^octopress_about]

[^doc]: [Blogging Basics](http://octopress.org/docs/blogging/)
[^octopress_about]: [為 Octopress 添加新的頁面](http://icodeit.org/2013/01/add-new-page-to-octopress/)

<!-- vim:set tw=70 wrap spell: -->
48 changes: 48 additions & 0 deletions source/about/index.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
layout: page
title: "About Me"
date: 2014-03-01 17:17
comments: true
sharing: true
footer: true
---
## Brief Introduction

To be concise, I use point form.

1. **Not** an IT student or staff.
2. A free software supporter.
3. A GNU/Linux user.
4. Love text editing in Vim.
5. Enjoy writing in Markdown.

## My Videos

I have made only two, and they're on Youtube.

1. [Efficient LaTeX Editing with Vim](http://youtu.be/y67t-05nFD0)
2. [Easy Citing in APA Style with Vim-LaTeX](http://youtu.be/ly8BlePO4ws)

## My Project Pages

Using Octopress to create **both** a blog and a GitHub project page
under the **same** host (http://username.github.io) is **too
difficult** since they share the **same** `source` folder.

Therefore, as *not* being an IT student[^not_it_student], I will get
pretty project page template set up with several clicks on GitHub's
online platform. For details, you may refer to
[*Instantly Beautiful Project Pages*](https://github.com/blog/1081-instantly-beautiful-project-pages)
written by Boxer.

1. [Hello-World](http://vincenttam.github.io/Hello-World/): A testing
repository.
2. [pandoc_slides](http://vincenttam.github.io/pandoc_slides/): A
repository for some of my slides.
3. [i_dont_use_word](http://vincenttam.github.io/i_dont_use_word/):
Another repository for hosting a slide created easily **without** M$
Office.

[^not_it_student]: I reused the words from [my WordPress blog](http://blogueun.wordpress.com/2014/02/03/gnupg-encryption/).

<!-- vim:set tw=70 wrap spell: -->
Binary file added source/images/git_status.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8c7be99

Please sign in to comment.