summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Whitlock <adam@adamwhitlock.com>2022-01-01 21:15:57 -0600
committerAdam Whitlock <adam@adamwhitlock.com>2022-01-01 21:19:03 -0600
commit66b55c8e85c6e124eb2935e6488a20a1cd4303a2 (patch)
treeb9d577fdb2885f62d35d772a40a3e48121d00a9a
parent7f8537f23a66600e392a5c90c2f032edbf93fde5 (diff)
Added metadata for theme, minor layout fix
Made screenshots for theme submission, added config.toml, and small changes for layouts.
-rw-r--r--assets/css/base/base.scss10
-rw-r--r--config.toml3
-rw-r--r--images/screenshot.pngbin0 -> 1201263 bytes
-rw-r--r--images/tn.pngbin0 -> 504842 bytes
-rw-r--r--layouts/_default/single.html33
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/pages/archive.html4
-rw-r--r--theme.toml12
8 files changed, 34 insertions, 30 deletions
diff --git a/assets/css/base/base.scss b/assets/css/base/base.scss
index a8190b9..cae7beb 100644
--- a/assets/css/base/base.scss
+++ b/assets/css/base/base.scss
@@ -5,12 +5,12 @@
@import "../bulma/sass/utilities/functions";
// override colors using Hugo parameters for Huey theme
-$scheme-main: {{ .Site.Params.schemeMain | default "#ffffff" }};
-$link: {{ .Site.Params.link | default "$blue" }};
-$link-hover: {{ .Site.Params.linkHover | default "$grey-darker"}};
+$scheme-main: {{ .Site.Params.schemeMain | default "#ffffff" }}; // default scheme, background color
+$link: {{ .Site.Params.link | default "$blue" }}; // link color
+$link-hover: {{ .Site.Params.linkHover | default "$grey-darker"}}; // link hover color
$footer-color: {{ .Site.Params.footerBackground | default "true"}}; // removes background color in footer
$footer-background-color: {{ .Site.Params.footerBackgroundColor | default "#fafafa;"}}; // specifies a footer color
-$navbar-item-hover-color: {{ .Site.Params.navbarItemHoverColor | default "$link;"}};
-$navbar-item-color: {{ .Site.Params.navbarItemColor | default "$text"}};
+$navbar-item-hover-color: {{ .Site.Params.navbarItemHoverColor | default "$link;"}}; // navbar menu color hover
+$navbar-item-color: {{ .Site.Params.navbarItemColor | default "$text"}}; // navbar menu text color
@import "../bulma/"; \ No newline at end of file
diff --git a/config.toml b/config.toml
new file mode 100644
index 0000000..22e4fc9
--- /dev/null
+++ b/config.toml
@@ -0,0 +1,3 @@
+[module]
+ [module.hugoVersion]
+ min = "0.80.0" \ No newline at end of file
diff --git a/images/screenshot.png b/images/screenshot.png
new file mode 100644
index 0000000..748e086
--- /dev/null
+++ b/images/screenshot.png
Binary files differ
diff --git a/images/tn.png b/images/tn.png
new file mode 100644
index 0000000..6e5fe35
--- /dev/null
+++ b/images/tn.png
Binary files differ
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index c5e5c54..c607f00 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,19 +1,24 @@
{{ define "main"}}
<main aria-role="main">
- <div class="content is-normal mx-3">
- <figure class="image ">
- {{ with .Resources.GetMatch "header.jpg" }}
- <img src="data:{{ .MediaType }};base64,{{ .Content | base64Encode }}">
- {{ end }}
- </figure>
-
- <p class="title is-3"><i class="fas fa-file"></i> {{.Page.Title}}</p>
- <p class="subtitle is-4">{{.Page.Description}}</p>
- {{ $dateFormat := .Site.Params.dateFormat | default "January 2, 2006"}}
- <p class="date">Published on {{ .PublishDate.Format $dateFormat }}{{ if ne .Lastmod .PublishDate }}, last updated on {{ .Lastmod.Format $dateFormat }}
- {{ end }}
- </p>
- {{ .Content }}
+ <div class="section">
+ <div class="columns">
+ <div class="column">
+ <div class="content">
+ <figure class="image ">
+ {{ with .Resources.GetMatch "header.jpg" }}
+ <img src="data:{{ .MediaType }};base64,{{ .Content | base64Encode }}">
+ {{ end }}
+ </figure>
+ <p class="title is-3">{{.Page.Title | title }}</p>
+ <p class="subtitle is-4">{{.Page.Description}}</p>
+ {{ $dateFormat := .Site.Params.dateFormat | default "January 2, 2006"}}
+ <p class="date">Published on {{ .PublishDate.Format $dateFormat }}{{ if ne .Lastmod .PublishDate }}, last updated on {{ .Lastmod.Format $dateFormat }}
+ {{ end }}
+ </p>
+ {{ .Content }}
+ </div>
+ </div>
+ </div>
</div>
</main>
{{ end }}
diff --git a/layouts/index.html b/layouts/index.html
index dbe7f21..d191131 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -20,7 +20,7 @@
<div class="columns">
<div class="column">
<div class="content">
- <h1 class="title"><a class="" href="{{ .RelPermalink }}"> {{ .Title }}</a></h1>
+ <h1 class="title"><a class="" href="{{ .RelPermalink }}"> {{ .Title | title }}</a></h1>
<h2 class="subtitle is-5"><time>{{ .Date.Format "Jan 2, 2006" }}</time></h2>
<p>{{ .Summary }}</p>
{{ if .Truncated }}
diff --git a/layouts/pages/archive.html b/layouts/pages/archive.html
index 3dbb849..b741ff2 100644
--- a/layouts/pages/archive.html
+++ b/layouts/pages/archive.html
@@ -5,13 +5,13 @@
<div class="column">
<div class="content">
<p class="title is-3"><i class="fas fa-archive"></i>
- {{.Page.Title}}
+ {{.Page.Title | title}}
</p>
{{ .Content }}
<ul class="fa-ul">
{{ range .Pages.ByLastmod }}
<li>
- <span class="fa-li"><i class="fas fa fa-file"></i></span><a href="{{ .Permalink }}">{{ .Title }}{{ if .Description }}: {{ .Description}}{{ end }}</a>
+ <span class="fa-li"><i class="fas fa fa-file"></i></span><a href="{{ .Permalink }}">{{ .Title | title }}{{ if .Description }}: {{ .Description}}{{ end }}</a>
<p>Posted on <time>{{ .Date.Format "Mon, Jan 2, 2006" }}</time></p>
</li>
{{ end }}
diff --git a/theme.toml b/theme.toml
index e534a9b..9027f8b 100644
--- a/theme.toml
+++ b/theme.toml
@@ -1,16 +1,12 @@
-# theme.toml template for a Hugo theme
-# See https://github.com/gohugoio/hugoThemes#themetoml for an example
-# https://gohugo.io/variables/site/
-
name = "Huey"
license = "MIT"
licenselink = "https://github.com/alloydwhitlock/huey/blob/master/LICENSE"
-description = "Huey is a minimal theme which uses the Bulma CSS framework"
+description = "Huey is a minimal blog theme which uses the Bulma CSS framework"
homepage = "https://www.adamwhitlock.com/"
-tags = ["blog", "personal", "light", "minimal"]
-features = []
+tags = ["blog", "light", "minimalist", "bulma", "blog"]
+features = ["responsive", "blog", "archive", "social"]
min_version = "0.80.0" # Only tested with Hugo 0.80.0
[author]
name = "Adam Whitlock"
- homepage = "https://www.adamwhitlock.com"
+ homepage = "https://www.adamwhitlock.com" \ No newline at end of file