Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Quach committed Jan 1, 2014
0 parents commit d4f27b0
Show file tree
Hide file tree
Showing 9 changed files with 174 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
out
.docpad.db
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2014 Alan Quach

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
alanquach.com
=============
46 changes: 46 additions & 0 deletions docpad.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# DocPad Configuration File
# http://docpad.org/docs/config

# Define the DocPad Configuration
docpadConfig = {
templateData:
# Specify some site properties
site:
# The production url of our website
url: "http://alanquach.com"

# The default title of our website
title: "alanquach.com"

# The website author's name
author: "Alan Quach"

# The website author's email
email: "alanquach@me.com"


# -----------------------------
# Helper Functions

# Get the prepared site/document title
# Often we would like to specify particular formatting to our page's title
# we can apply that formatting here
getPreparedTitle: ->
# if we have a document title, then we should use that and suffix the site's title onto it
if @document.title
"#{@document.title} | #{@site.title}"
# if our document does not have it's own title, then we should just use the site's title
else
@site.title

plugins:
dateurls:
cleanurl: true
trailingSlashes: true
cleanurls:
trailingSlashes: true

}

# Export the DocPad Configuration
module.exports = docpadConfig
33 changes: 33 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "alanquach.com",
"version": "0.1.0",
"description": "Personal website of Alan Quach",
"engines": {
"node": "0.10",
"npm": "1.3"
},
"dependencies": {
"docpad": "~6.59.6"
},
"main": "node_modules/docpad/bin/docpad-server",
"scripts": {
"start": "node_modules/docpad/bin/docpad-server"
},
"devDependencies": {
"docpad-plugin-eco": "~2.0.3",
"docpad-plugin-marked": "~2.1.2",
"docpad-plugin-livereload": "~2.5.4",
"docpad-plugin-dateurls": "~2.3.2",
"docpad-plugin-cleanurls": "~2.6.1"
},
"repository": {
"type": "git",
"url": "https://github.com/integsrtite/alanquach.com.git"
},
"author": "Alan Quach",
"license": "MIT",
"bugs": {
"url": "https://github.com/integsrtite/alanquach.com/issues"
},
"homepage": "https://github.com/integsrtite/alanquach.com"
}
7 changes: 7 additions & 0 deletions src/documents/index.html.eco
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: default
---
<% for post in @getCollection("html").findAll({layout:"post"}).toJSON(): %>
<h1><a href="<%= post.url %>"><%= post.title %></a></h1>
<%- post.contentRenderedWithoutLayouts %>
<% end %>
34 changes: 34 additions & 0 deletions src/documents/posts/2014-01-01-new-year-new-blog.html.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
layout: post
title: New year, new blog.
date: 2014-01-01 18:00
comments: true
---

For someone who has been so deeply interested in web design and "cutting edge" web technologies since before I can remember, it has certainly taken me far too long to finally build my personal website.

Perhaps that was a bit unfair, as I'd previous had a living, breathing blog when I was a teenager where I would blog about, well, things that teenagers blog about. And prior to that, who could forget the [geocities](http://geocities.com) sites that we all started with. **But I don't really count those.**

For the better half of the decade and then some, I've been wanting to get more serious about building a proper personal website. Partly to (professionally, I suppose) showcase my work, partly so to have an online place to call home, but mostly just because I need a canvas to channel my curiousity about all these new web technologies, techniques, and frameworks; and work or building examples for the purpose of learning can only really get you so far.

### Plot twist

So here we are today, when I've finally started (and hopefully finish) writing the first real content of [alanquach.com](/). And I can attribute this small step to my stark realization that all these years, I've simply been guilty of one of my biggest pet peeves: *attempting to build some complete masterpiece, refusing to go live with anything less than that grand vision and failing to achieve even a sliver of something useful*.

Allow me to elaborate.

Every step along the way, I had wanted to:
* Build some crazy extravagant Flash project, because Flash was cool
* Come up with my own PHP/MySQL blogging system with comments and stuff, because I could
* Or build from scratch a Node.js framework to [*see above bullet*]

I was doing [waterfall](http://en.wikipedia.org/wiki/Waterfall_model)!!! Once I had realized that, the solution was simple. And it was I'd been preaching all along anyways:
* Plan well (but don't go overboard)
* Divide into SMART chunks and prioritize
* **Ship. Ship fast.**

So while I have some grand plans for what will become of this website or blog, I was still able to go live with something in less than a day's time. And now that I've gotten the ball rolling, I can't wait to pack some real fun stuff into it.

It's highly unlikely that you'll be reading this post in it's original incarnation (unless you checkout my initial commit), so just use your imagination as I describe it to you... it's pure HTML markup, no CSS, no fonts, rendered in Times New Roman.

It's going to be a great year.
23 changes: 23 additions & 0 deletions src/layouts/default.html.eco
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>

<title><%= @getPreparedTitle() %></title>
<meta name="author" content="<%= @site.author %>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/favicon.png" rel="shortcut icon">

<%- @getBlock('meta').toHTML() %>
<!-- Bootstrap? -->

</head>
<body>

<%- @content %>

<%- @getBlock('scripts').toHTML() %>
</body>
</html>
6 changes: 6 additions & 0 deletions src/layouts/post.html.eco
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
layout: default
---

<h1><%= @document.title %></h1>
<%- @content %>

0 comments on commit d4f27b0

Please sign in to comment.