From df90037721abad83ce2bbe45c1a16c7134e1025f Mon Sep 17 00:00:00 2001 From: Tayray Date: Mon, 15 May 2017 07:32:18 +1000 Subject: Fix avatar typo --- exampleSite/config.toml | 10 +++++----- layouts/index.html | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index f18d1f3..92404e9 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -20,16 +20,16 @@ googleAnalytics = "UA-57408564-1" name = "faq" weight = 2 url = "/faq" - + [params] Keywords = "key, 关键字, キーワード" Description = "There are some words to describe your site" - Avater = "img/avatar.jpg" - SelfIntro = "Just a worm, seek for true, live in shadow, no more..." + Avatar = "img/avatar.jpg" + SelfIntro = "Just a worm, seek for true, live in shadow, no more..." Email = "yiichou@gmail.com" - + GithubID = "Your Github ID" TwitterID = "Your Twitter ID" FacebookID = "Your Facebook ID" LinkedInID = "Your LinkedIn ID" - GoogleplusID = "Your Googleplus ID" \ No newline at end of file + GoogleplusID = "Your Googleplus ID" diff --git a/layouts/index.html b/layouts/index.html index 5b2ec46..0b47b4f 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,20 +2,20 @@ {{ .Site.Title }} - + {{ with .Site.Params.Keywords }}{{ end }} {{ with .Site.Params.Description }}{{ end }} - + {{ partial "head.html" . }} - + {{ partial "header.html" . }} - +
- avater + avatar
{{ with .Site.Params.TwitterID }} @@ -32,14 +32,14 @@ {{ with .Site.Params.LinkedInID }} {{ end }} - +

{{ .Site.Params.SelfIntro }}

- + {{ partial "footer.html" . }} {{ partial "analytics.html" . }} - \ No newline at end of file + -- cgit v1.2.3 From 4d6245070d02b80d66e5818f477edc5f0b6c9a0c Mon Sep 17 00:00:00 2001 From: Prashant Khurana Date: Sun, 28 May 2017 17:08:37 -0400 Subject: updated readme with a quick start guide --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index cb4bbd4..087f0bb 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,22 @@ git clone https://github.com/IvanChou/hugo-theme-vec vec See the [official docs](http://gohugo.io/themes/installing) for more information. +## Quickstart Guide + +Make sure you have : + +1. Hugo installed +2. Test poject setup with hugo. Instructions on [hugo quickstart guide](https://gohugo.io/overview/quickstart/). +3. Cloned this repo in the themes folder. + +The [exampleSite](exampleSite) folder contains a sample site to quickly get started. + +Copy over the contents of ```config.toml``` and copy the [content](exampleSite/content) and [static](exampleSite/static) folders to your main folder. + +Build using ```hugo server --buildDrafts``` + +To create a post use ```hugo new post/post-title.md``` + ## Configuration You should config your site's `config.toml` file like: -- cgit v1.2.3 From 812f275bd38f95718c119373dfff47b8ee202474 Mon Sep 17 00:00:00 2001 From: Prashant Khurana Date: Sat, 9 Sep 2017 16:33:19 -0400 Subject: Hugo requires title,date etc in archtype file Hugo's new version (0.24 onwards) requires a few things in the archytpe file otherwise it gives a warning. Warning : WARNING: date and/or title missing from archetype file From Hugo 0.24 this must be provided in the archetype file itself, if needed. Example: title: "{{ replace .TranslationBaseName "-" " " | title }}" date: {{ .Date }} draft: true --- archetypes/default.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/archetypes/default.md b/archetypes/default.md index 9fbecf2..d491519 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -3,4 +3,6 @@ toc = false draft = true comments = false slug = "" +title = "{{ replace .TranslationBaseName "-" " " | title }}" +date = {{ .Date }} +++ \ No newline at end of file -- cgit v1.2.3