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

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Firdaus Zahari committed Apr 17, 2017
0 parents commit 0591641
Show file tree
Hide file tree
Showing 46 changed files with 8,559 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"extends": "eslint:recommended",
"env":{
"browser": true
},
"globals": {
"jQuery": false
},
"rules": {
"camelcase": "warn",
"curly": "warn",
"eqeqeq": "warn",
"no-alert": "warn",
"no-console": "off",
"no-empty": "warn",
"no-eval": "warn",
"no-unused-vars": "off",
"strict": "warn"
}
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://git-scm.com/docs/gitignore

node_modules/
20 changes: 20 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2017 Firdaus Zahari

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.
4 changes: 4 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
+++
title = ""
description = ""
+++
21 changes: 21 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"autoprefixer": [
"last 2 versions",
"> 1%",
"ie >= 9",
"android >= 4.4"
],
"clean": ["static"],
"css": {
"src": "src/scss/**/*.scss",
"dest": "static/css"
},
"img": {
"src": "src/img/*.{gif,jpg,png}",
"dest": "static/img"
},
"js": {
"src": "src/js/**/*.js",
"dest": "static/js"
}
}
47 changes: 47 additions & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
languageCode = "en-us"
title = "Harvey"
baseURL = "http://example.org/"
theme = "harvey"

[params]
author = "Harvey"
tagline = "Some fancy tagline about my blog"
description = "My blog description"
dateFormat = "Jan 2, 2006"
themeColor = "#222"
recentPostsCount = 7
recentPostsText = 'Recent Posts'
footerText = "© 2017 All rights reserved."
googleSiteVerification = "XXXXXXXXXXXXXX"

# Main menu at top left
[[menu.main]]
name = "Blog"
identifier = "blog"
url = "/blog/"
weight = 1

[[menu.main]]
name = "Github"
identifier = "github"
url = "https://github.com/example"
weight = 2

# Footer menu
[[menu.footer]]
name = "Github"
identifier = "github"
url = "https://github.com/example"
weight = 1

[[menu.footer]]
name = "Twitter"
identifier = "twitter"
url = "https://twitter.com/example"
weight = 2

[[menu.footer]]
name = "RSS"
identifier = "rss"
url = "/index.xml"
weight = 3
5 changes: 5 additions & 0 deletions exampleSite/content/404.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
+++
title = 404
+++

**Sorry!** The page that you're looking for cannot be found. [Back to homepage](/)
1 change: 1 addition & 0 deletions exampleSite/content/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
You can put some content here, and it will appear above the recent post list (if you have any). This section is perfect for introductory text to your blog visitor. See `exampleSite` folder in theme directory on how to manage content with this theme.
11 changes: 11 additions & 0 deletions exampleSite/content/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
+++
title = "About"
siteHeader = true
[menu]
[menu.main]
name = "About"
identifier = "about"
weight = 2
+++

This is a special page that can be used to write anything about yourself. Please take note that the menu needs to be defined directly in this page TOML front matter, in order for Hugo menu to correctly highlight this page.
5 changes: 5 additions & 0 deletions exampleSite/content/blog/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
+++
title = "Archive"
+++

Archive can also have introductory text, before yearly based post list appears at the bottom. Date format is customizable in `config.toml`.
50 changes: 50 additions & 0 deletions exampleSite/content/blog/another-post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
+++
title = "Another Hugo Post"
date = "2014-09-02"
+++

TOML, YAML, JSON --- Oh my!
-------------------------

One of the nifty Hugo features we should cover: flexible configuration and front matter formats! This entry has front
matter in `toml`, unlike the last one which used `yaml`, and `json` is also available if that's your preference.

<!--more-->

The `toml` front matter used on this entry:

```
+++
title = "Another Hugo Post"
description = "Nothing special, but one post is boring."
date = "2014-09-02"
categories = [ "example", "configuration" ]
tags = [
"example",
"hugo",
"toml"
]
+++
```

This flexibility also extends to your site's global configuration file. You're free to use any format you prefer::simply
name the file `config.yaml`, `config.toml` or `config.json`, and go on your merry way.

JSON Example
------------

How would this entry's front matter look in `json`? That's easy enough to demonstrate:

```
{
"title": "Another Hugo Post",
"description": "Nothing special, but one post is boring.",
"date": "2014-09-02",
"categories": [ "example", "configuration" ],
"tags": [
"example",
"hugo",
"toml"
],
}
```
Loading

0 comments on commit 0591641

Please sign in to comment.