From f9828c98acd1394a4d5dea28e72f99f2a3fa5f13 Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Sat, 29 Jun 2019 14:21:21 -0400 Subject: generators/hugo: Add hugo source files --- generators/hugo/config.toml | 43 +++++++++++++++++++++ .../content/post/does-the-microphone-matter.md | 20 ++++++++++ .../hugo/content/post/voiceover-first-post.md | 23 +++++++++++ .../hugo/themes/edwin/layouts/_default/baseof.html | 26 +++++++++++++ .../themes/edwin/layouts/_default/content.html | 11 ++++++ .../hugo/themes/edwin/layouts/_default/list.html | 16 ++++++++ .../hugo/themes/edwin/layouts/_default/single.html | 33 ++++++++++++++++ .../themes/edwin/layouts/_default/summary.html | 19 +++++++++ generators/hugo/themes/edwin/layouts/index.xml | 27 +++++++++++++ .../hugo/themes/edwin/layouts/partials/brand.html | 1 + .../hugo/themes/edwin/layouts/partials/footer.html | 1 + .../themes/edwin/layouts/partials/head-custom.html | 1 + .../themes/edwin/layouts/partials/head-meta.html | 2 + .../hugo/themes/edwin/layouts/partials/header.html | 11 ++++++ .../themes/edwin/layouts/partials/navigator.html | 1 + .../themes/edwin/layouts/partials/paginator.html | 45 ++++++++++++++++++++++ .../edwin/layouts/partials/post-categories.html | 9 +++++ .../themes/edwin/layouts/partials/post-date.html | 14 +++++++ .../themes/edwin/layouts/partials/post-tags.html | 9 +++++ .../hugo/themes/edwin/layouts/partials/recent.html | 14 +++++++ .../themes/edwin/layouts/partials/related.html | 9 +++++ .../themes/edwin/layouts/partials/sidebar.html | 8 ++++ .../themes/edwin/layouts/partials/taxonomies.html | 12 ++++++ .../hugo/themes/edwin/layouts/partials/title.html | 2 + .../themes/edwin/layouts/shortcodes/quote.html | 4 ++ generators/hugo/themes/edwin/theme.toml | 17 ++++++++ 26 files changed, 378 insertions(+) create mode 100644 generators/hugo/config.toml create mode 100644 generators/hugo/content/post/does-the-microphone-matter.md create mode 100644 generators/hugo/content/post/voiceover-first-post.md create mode 100644 generators/hugo/themes/edwin/layouts/_default/baseof.html create mode 100644 generators/hugo/themes/edwin/layouts/_default/content.html create mode 100644 generators/hugo/themes/edwin/layouts/_default/list.html create mode 100644 generators/hugo/themes/edwin/layouts/_default/single.html create mode 100644 generators/hugo/themes/edwin/layouts/_default/summary.html create mode 100644 generators/hugo/themes/edwin/layouts/index.xml create mode 100644 generators/hugo/themes/edwin/layouts/partials/brand.html create mode 100644 generators/hugo/themes/edwin/layouts/partials/footer.html create mode 100644 generators/hugo/themes/edwin/layouts/partials/head-custom.html create mode 100644 generators/hugo/themes/edwin/layouts/partials/head-meta.html create mode 100644 generators/hugo/themes/edwin/layouts/partials/header.html create mode 100644 generators/hugo/themes/edwin/layouts/partials/navigator.html create mode 100644 generators/hugo/themes/edwin/layouts/partials/paginator.html create mode 100644 generators/hugo/themes/edwin/layouts/partials/post-categories.html create mode 100644 generators/hugo/themes/edwin/layouts/partials/post-date.html create mode 100644 generators/hugo/themes/edwin/layouts/partials/post-tags.html create mode 100644 generators/hugo/themes/edwin/layouts/partials/recent.html create mode 100644 generators/hugo/themes/edwin/layouts/partials/related.html create mode 100644 generators/hugo/themes/edwin/layouts/partials/sidebar.html create mode 100644 generators/hugo/themes/edwin/layouts/partials/taxonomies.html create mode 100644 generators/hugo/themes/edwin/layouts/partials/title.html create mode 100644 generators/hugo/themes/edwin/layouts/shortcodes/quote.html create mode 100644 generators/hugo/themes/edwin/theme.toml diff --git a/generators/hugo/config.toml b/generators/hugo/config.toml new file mode 100644 index 0000000..855fcc0 --- /dev/null +++ b/generators/hugo/config.toml @@ -0,0 +1,43 @@ +baseurl = "/posts/" +title = "Edwin Mattiacci - Posts" +languageCode = "en-us" +disableKinds = ["404"] + +# Pagination +paginate = 3 +paginatePath = "page" + +# Theme to use +theme = "edwin" + +[taxonomies] + tag = "tags" + category = "categories" + +# Links format + +[permalinks] + post = "/:year/:month/:title/" + +[params] + # Main sections (currently used for the recent posts in the sidebar) + mainSections = ["post"] + + # Default author + author = "Edwin Mattiacci" + + # Date format (default: Jan 2, 2006) + # date_format = "Jan 2, 2006" + + # Display post summaries instead of content in list templates (default: true) + # truncate = false + + [params.sidebar] + # Whether to show the recent posts or not (default: true) + # showRecent = false + + # Whether to show the taxonomies or not (default: true) + # showTaxonomy = false + + # How many posts to show on the sidebar (Default: 5) + # num_recent_posts = 5 diff --git a/generators/hugo/content/post/does-the-microphone-matter.md b/generators/hugo/content/post/does-the-microphone-matter.md new file mode 100644 index 0000000..244c59a --- /dev/null +++ b/generators/hugo/content/post/does-the-microphone-matter.md @@ -0,0 +1,20 @@ ++++ +title = "Does the microphone matter?" +description = "Does your microphone matter when doing voice overs or voice acting?" +tags = [ + "voice", + "voiceover", +] +date = "2018-12-10" +categories = [ + "Voiceover", + "Voice", +] +author = "Edwin Mattiacci" ++++ + +The microphone does matter. But consider that [this voiceover](https://www.youtube.com/watch?v=mLc0KfstFH0) was recorded on a microphone that looked something [like this](/images/mic.jpg). + +While recording on a microphone like that should not be the priority, one can appreciate that what does matter; is the quality and ambience of your environment. + +You'll be surprised at what you can get away with as long as the backdrop is pin drop silence. diff --git a/generators/hugo/content/post/voiceover-first-post.md b/generators/hugo/content/post/voiceover-first-post.md new file mode 100644 index 0000000..f0c09f7 --- /dev/null +++ b/generators/hugo/content/post/voiceover-first-post.md @@ -0,0 +1,23 @@ ++++ +title = "The Voice Practitioner" +description = "Edwin Mattiacci Voiceover. Narration, Trailers, Commercials, and More." +tags = [ + "voice", + "voiceover", +] +date = "2018-05-10" +categories = [ + "Voiceover", + "Voice", +] +author = "Edwin Mattiacci" ++++ + +{{< quote >}} +Speech is simply a modified form of singing: the principal difference +being in the fact that in singing the vowel sounds are prolonged and +the intervals are short, whereas in speech the words are uttered in +what may be called "staccato" tones. - William Scheppegrell +{{< /quote >}} + +Welcome to my blog. diff --git a/generators/hugo/themes/edwin/layouts/_default/baseof.html b/generators/hugo/themes/edwin/layouts/_default/baseof.html new file mode 100644 index 0000000..a07a6b7 --- /dev/null +++ b/generators/hugo/themes/edwin/layouts/_default/baseof.html @@ -0,0 +1,26 @@ +{{ block "header" . }} +{{ partial "header" . }} +{{ end }} + + + + + +{{ block "body" . }} + {{ block "main" . }} +{{ end }} + + + + + +{{ block "footer" . }} + {{ partial "footer" . }} +{{ end }} diff --git a/generators/hugo/themes/edwin/layouts/_default/content.html b/generators/hugo/themes/edwin/layouts/_default/content.html new file mode 100644 index 0000000..049fa30 --- /dev/null +++ b/generators/hugo/themes/edwin/layouts/_default/content.html @@ -0,0 +1,11 @@ +
+
+

+ {{ .Title | markdownify }} +

+ {{ partial "post-date" . }} + {{ partial "post-tags" . }} + {{ partial "post-categories" . }} +
+ {{ .Content }} +
\ No newline at end of file diff --git a/generators/hugo/themes/edwin/layouts/_default/list.html b/generators/hugo/themes/edwin/layouts/_default/list.html new file mode 100644 index 0000000..e7b9ef8 --- /dev/null +++ b/generators/hugo/themes/edwin/layouts/_default/list.html @@ -0,0 +1,16 @@ +{{ define "main" }} + +{{ $truncate := default true .Site.Params.truncate }} +{{ range .Paginator.Pages }} + + {{ if $truncate }} + {{ .Render "summary" }} + {{ else }} + {{ .Render "content" }} + {{ end }} + +{{ end }} + +{{ partial "paginator" . }} + +{{ end }} diff --git a/generators/hugo/themes/edwin/layouts/_default/single.html b/generators/hugo/themes/edwin/layouts/_default/single.html new file mode 100644 index 0000000..ae9fe12 --- /dev/null +++ b/generators/hugo/themes/edwin/layouts/_default/single.html @@ -0,0 +1,33 @@ +{{ define "main" }} + + +

{{ .Title | markdownify }}

+ +

{{ partial "post-date" . }}

+ +

{{ partial "post-tags" . }}

+ + +
+ {{ .Content | replaceRE "

" "

" | safeHTML }} + + {{ if .IsTranslated }} +

{{ i18n "translations" }}

+ + {{ end }} + + {{ partial "related" . }} +
+ + + + + + +{{ end }} diff --git a/generators/hugo/themes/edwin/layouts/_default/summary.html b/generators/hugo/themes/edwin/layouts/_default/summary.html new file mode 100644 index 0000000..e00e027 --- /dev/null +++ b/generators/hugo/themes/edwin/layouts/_default/summary.html @@ -0,0 +1,19 @@ +
+ +

+ {{ .Title | markdownify }} +

+ +

+ {{ partial "post-date" . }} +

+ +

+ {{ if gt (len .Summary) 200 }} + {{slicestr .Summary 0 200 | markdownify }}... + {{ end }} +

+ + {{ i18n "readMore" }} + +
diff --git a/generators/hugo/themes/edwin/layouts/index.xml b/generators/hugo/themes/edwin/layouts/index.xml new file mode 100644 index 0000000..bcf8941 --- /dev/null +++ b/generators/hugo/themes/edwin/layouts/index.xml @@ -0,0 +1,27 @@ + + + + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} + {{ .Permalink }} + Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} + Hugo -- gohugo.io{{ with .Site.LanguageCode }} + {{.}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{ with .OutputFormats.Get "RSS" }} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{ end }} + {{ range .Pages }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + {{ .Content | html }} + + {{ end }} + + diff --git a/generators/hugo/themes/edwin/layouts/partials/brand.html b/generators/hugo/themes/edwin/layouts/partials/brand.html new file mode 100644 index 0000000..d6eb5c6 --- /dev/null +++ b/generators/hugo/themes/edwin/layouts/partials/brand.html @@ -0,0 +1 @@ +{{ .Site.Title }} \ No newline at end of file diff --git a/generators/hugo/themes/edwin/layouts/partials/footer.html b/generators/hugo/themes/edwin/layouts/partials/footer.html new file mode 100644 index 0000000..2126899 --- /dev/null +++ b/generators/hugo/themes/edwin/layouts/partials/footer.html @@ -0,0 +1 @@ +{{ safeHTML "" }} diff --git a/generators/hugo/themes/edwin/layouts/partials/head-custom.html b/generators/hugo/themes/edwin/layouts/partials/head-custom.html new file mode 100644 index 0000000..c1ea866 --- /dev/null +++ b/generators/hugo/themes/edwin/layouts/partials/head-custom.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/generators/hugo/themes/edwin/layouts/partials/head-meta.html b/generators/hugo/themes/edwin/layouts/partials/head-meta.html new file mode 100644 index 0000000..0f4705e --- /dev/null +++ b/generators/hugo/themes/edwin/layouts/partials/head-meta.html @@ -0,0 +1,2 @@ + + diff --git a/generators/hugo/themes/edwin/layouts/partials/header.html b/generators/hugo/themes/edwin/layouts/partials/header.html new file mode 100644 index 0000000..8e8a798 --- /dev/null +++ b/generators/hugo/themes/edwin/layouts/partials/header.html @@ -0,0 +1,11 @@ + + + + + + + + + {{- block "title" . }}{{ partial "title.html" . -}}{{- end }} + + {{ safeHTML "" }} diff --git a/generators/hugo/themes/edwin/layouts/partials/navigator.html b/generators/hugo/themes/edwin/layouts/partials/navigator.html new file mode 100644 index 0000000..dfb8d4c --- /dev/null +++ b/generators/hugo/themes/edwin/layouts/partials/navigator.html @@ -0,0 +1 @@ +{{ safeHTML "" }} diff --git a/generators/hugo/themes/edwin/layouts/partials/paginator.html b/generators/hugo/themes/edwin/layouts/partials/paginator.html new file mode 100644 index 0000000..7f1ca0d --- /dev/null +++ b/generators/hugo/themes/edwin/layouts/partials/paginator.html @@ -0,0 +1,45 @@ +{{ $pag := $.Paginator }} +{{ if gt $pag.TotalPages 1 }} + +{{ end }} \ No newline at end of file diff --git a/generators/hugo/themes/edwin/layouts/partials/post-categories.html b/generators/hugo/themes/edwin/layouts/partials/post-categories.html new file mode 100644 index 0000000..f52c1f5 --- /dev/null +++ b/generators/hugo/themes/edwin/layouts/partials/post-categories.html @@ -0,0 +1,9 @@ +{{ if .Params.categories }} + + {{ i18n "categories" }}: + {{ range .Params.categories }} + + {{ . }} + {{ end }} +{{ end }} diff --git a/generators/hugo/themes/edwin/layouts/partials/post-date.html b/generators/hugo/themes/edwin/layouts/partials/post-date.html new file mode 100644 index 0000000..31a8198 --- /dev/null +++ b/generators/hugo/themes/edwin/layouts/partials/post-date.html @@ -0,0 +1,14 @@ +{{ $dateFormat := default "Jan 2, 2006" (index .Site.Params "date_format") }} +{{ $author := .Params.author | default .Site.Params.author }} + + +{{ if not .Date.IsZero }} + {{ .Date.Format $dateFormat }} +{{ end }} + + + diff --git a/generators/hugo/themes/edwin/layouts/partials/post-tags.html b/generators/hugo/themes/edwin/layouts/partials/post-tags.html new file mode 100644 index 0000000..b1f445d --- /dev/null +++ b/generators/hugo/themes/edwin/layouts/partials/post-tags.html @@ -0,0 +1,9 @@ +{{ if .Params.tags }} + + {{ range .Params.tags }} + + {{ . }} + + {{ end }} +{{ end }} diff --git a/generators/hugo/themes/edwin/layouts/partials/recent.html b/generators/hugo/themes/edwin/layouts/partials/recent.html new file mode 100644 index 0000000..a6240be --- /dev/null +++ b/generators/hugo/themes/edwin/layouts/partials/recent.html @@ -0,0 +1,14 @@ +{{ $num_recent_posts := default 5 .Site.Params.sidebar.num_recent_posts }} +{{ $posts := first $num_recent_posts (where .Site.Pages "Section" "in" .Site.Params.mainSections) }} +{{ if gt (len $posts) 0 }} +
+

{{ i18n "recentPosts" }}

+
    + {{ range first 2 $posts }} +
  1. + {{.Title | markdownify }} +
  2. + {{ end }} +
+
+{{ end }} \ No newline at end of file diff --git a/generators/hugo/themes/edwin/layouts/partials/related.html b/generators/hugo/themes/edwin/layouts/partials/related.html new file mode 100644 index 0000000..33f4973 --- /dev/null +++ b/generators/hugo/themes/edwin/layouts/partials/related.html @@ -0,0 +1,9 @@ +{{ $related := .Site.RegularPages.Related . | first 5 }} +{{ with $related }} +

{{ i18n "related" }}

+ +{{ end }} diff --git a/generators/hugo/themes/edwin/layouts/partials/sidebar.html b/generators/hugo/themes/edwin/layouts/partials/sidebar.html new file mode 100644 index 0000000..6d182f8 --- /dev/null +++ b/generators/hugo/themes/edwin/layouts/partials/sidebar.html @@ -0,0 +1,8 @@ + diff --git a/generators/hugo/themes/edwin/layouts/partials/taxonomies.html b/generators/hugo/themes/edwin/layouts/partials/taxonomies.html new file mode 100644 index 0000000..778611b --- /dev/null +++ b/generators/hugo/themes/edwin/layouts/partials/taxonomies.html @@ -0,0 +1,12 @@ +
+ {{ range $taxonomyname, $taxonomy := .Site.Taxonomies }} + {{ if gt (len $taxonomy) 0 }} +

{{ i18n $taxonomyname }}

+

+ {{ range $name, $value := $taxonomy }} + {{ $name }} + {{ end }} +

+ {{ end }} + {{ end }} +
diff --git a/generators/hugo/themes/edwin/layouts/partials/title.html b/generators/hugo/themes/edwin/layouts/partials/title.html new file mode 100644 index 0000000..f7ad714 --- /dev/null +++ b/generators/hugo/themes/edwin/layouts/partials/title.html @@ -0,0 +1,2 @@ +{{ with .Title }}{{ . }}{{ end }} + diff --git a/generators/hugo/themes/edwin/layouts/shortcodes/quote.html b/generators/hugo/themes/edwin/layouts/shortcodes/quote.html new file mode 100644 index 0000000..30a2d53 --- /dev/null +++ b/generators/hugo/themes/edwin/layouts/shortcodes/quote.html @@ -0,0 +1,4 @@ + +

+ {{ .Inner }} +

diff --git a/generators/hugo/themes/edwin/theme.toml b/generators/hugo/themes/edwin/theme.toml new file mode 100644 index 0000000..9b3722a --- /dev/null +++ b/generators/hugo/themes/edwin/theme.toml @@ -0,0 +1,17 @@ +name = "Hugo Bootstrap" +license = "MIT" +licenselink = "https://github.com/Xzya/hugo-bootstrap/blob/master/LICENSE.md" +description = "A simple hugo theme using bootstrap" +homepage = "https://github.com/Xzya/hugo-bootstrap" +tags = ["blog", "multilingual", "bootstrap"] +features = ["blog", "responsive", "Google Analytics", "bootstrap", "multilingual", "i18n"] +min_version = 0.15 + +[author] + name = "Mihail Cristian Dumitru" + homepage = "https://github.com/Xzya" + +[original] + author = "Alan Orth" + homepage = "https://github.com/alanorth/hugo-theme-bootstrap4-blog" + repo = "https://github.com/alanorth/hugo-theme-bootstrap4-blog" \ No newline at end of file -- cgit v1.2.3