From f7201778099bf80fc9249f160b4acf6b081057a1 Mon Sep 17 00:00:00 2001 From: Bud Parr Date: Fri, 14 Apr 2017 23:08:11 -0400 Subject: [PATCH] add some readme and annotations --- layouts/_default/baseof.html | 4 +-- layouts/_default/single.html | 2 +- layouts/post/single.html | 10 ++++-- layouts/post/summary.html | 1 - layouts/shortcodes/form-contact.html | 20 ------------ readme.md | 46 +++++++++++++++------------- sitemap.xml | 10 ------ 7 files changed, 35 insertions(+), 58 deletions(-) delete mode 100755 sitemap.xml diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 285e3b3..f9b74ee 100755 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -7,7 +7,7 @@ {{ block "title" . }}{{ .Site.Title }} {{ with .Title }} | {{ . }}{{ end }}{{ end }} - + {{ .Hugo.Generator }} {{/* NOTE: For Production make sure you add `HUGO_ENV="production"` before your build command */}} @@ -16,7 +16,7 @@ {{ else }} {{ end }} - + {{/* By formatting your URL with absURL you will get the full URL of your site */}} {{/* NOTE: These Hugo Internal Templates can be found starting at https://github.com/spf13/hugo/blob/master/tpl/tplimpl/template_embedded.go#L158 */}} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9f7d553..14229c8 100755 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -9,7 +9,7 @@ {{ .Title }}
diff --git a/layouts/post/single.html b/layouts/post/single.html index 8e9f3c1..324c743 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -1,19 +1,25 @@ -{{ define "header" }}{{ partial "page-header.html" . }}{{ end }} +{{ define "header" }} + {{/* We can overide any block in the baseof file be defining it in the template */}} + {{ partial "page-header.html" . }} +{{ end }} + {{ define "main" }}

+ {{/* Humanize removes hyphens and capitalizes the first word */}} {{ humanize .Section | upper }}

{{ .Title }}

{{/* TODO: Add Hugo author */}} + {{/* Hugo uses Go's date formatting is set by example. Here are two formats */}} {{ partial "tags.html" . }}
diff --git a/layouts/post/summary.html b/layouts/post/summary.html index 4bde92e..e60ef18 100644 --- a/layouts/post/summary.html +++ b/layouts/post/summary.html @@ -1,4 +1,3 @@ -
{{ if .Date }} diff --git a/layouts/shortcodes/form-contact.html b/layouts/shortcodes/form-contact.html index b820a16..ea732b5 100644 --- a/layouts/shortcodes/form-contact.html +++ b/layouts/shortcodes/form-contact.html @@ -1,18 +1,3 @@ -{{/*
-
- - - Helper text for the form control. - - - - Helper text for the form control. - - - - Helper text for the form control. -
-
*/}} {{ $.Scratch.Add "labelClasses" "f6 b db mb1 mt3 sans-serif mid-gray" }} {{ $.Scratch.Add "inputClasses" "w-100 f5 pv3 ph3 bg-light-gray bn" }} @@ -21,20 +6,15 @@ - - - -
Must be a valid email address.
- diff --git a/readme.md b/readme.md index fff9af7..e2d8201 100644 --- a/readme.md +++ b/readme.md @@ -1,33 +1,35 @@ -HUGO Default theme readme +### A Base theme for [Hugo](http://gohugo.io/), a framework for building websites. - -### [wip] A Base theme for [Hugo](http://gohugo.io/), a framework for building websites. +[DEMO](http://gohugo-default-theme.surge.sh/) The intent of this theme is to provide a solid starting place for Hugo sites and include best practices for performance, accessibility, and rapid development. Features +- Responsive +- Accessible -- Automated Robots.txt (changes values based on environment) - -includes examples of - -- internal templates for meta data and google analytics -- pagination (internal template) -- with -- HUGO_ENV -- first -- after -- sort -- site LanguageCode -- where +Includes examples of +- Custom Robots.txt (changes values based on environment) +- Internal templates for meta data and google analytics +- Pagination (internal template) +- Archetypes +- Custom shortcode +- Hugo built-in menu +- `with` +- `HUGO_ENV` +- `first` +- `after` +- `sort` +- Site LanguageCode +- `where` - Content Views -- partials -- template layouts (type "article" uses a special list template, single template, and a content view) -- tags -- len -- conditionals -- ge (greater than or equal to) +- Partials +- Template layouts (type "article" uses a special list template, single template, and a content view) +- Tags +- `len` +- Conditionals +- `ge` (greater than or equal to) This theme uses the "Tachyons" CSS library. This will allow you to manipulate the design of the theme by changing class names in HTML without touching the original CSS files. For more information see the [Tachyons website](http://tachyons.io/). diff --git a/sitemap.xml b/sitemap.xml deleted file mode 100755 index 64a6613..0000000 --- a/sitemap.xml +++ /dev/null @@ -1,10 +0,0 @@ - - {{ range .Data.Pages }} - - {{ .Permalink }} - {{ safeHTML ( .Date.Format "2006-01-02T15:04:05-07:00" ) }}{{ with .Sitemap.ChangeFreq }} - {{ . }}{{ end }}{{ if ge .Sitemap.Priority 0.0 }} - {{ .Sitemap.Priority }}{{ end }} - - {{ end }} -