summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-04-23 20:26:41 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-04-23 20:26:41 +0200
commit5e908ed72fb3cb3936ea5945d37bf4f0ff1c1f77 (patch)
treed5e05f8e97fdaf176b99c3e8491df0f12c39b4af
parente9d34860cb69d49ac3789d53732bbe52d6c9f7d7 (diff)
downloadgohugo-theme-ed-5e908ed72fb3cb3936ea5945d37bf4f0ff1c1f77.tar.gz
Add initial theme layout
-rw-r--r--README.md15
-rw-r--r--layouts/_default/baseof.html7
-rw-r--r--layouts/partials/head.html0
3 files changed, 22 insertions, 0 deletions
diff --git a/README.md b/README.md
index 188cb95..d6ff556 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,17 @@
# Ed
A theme for [Hugo](http://gohugo.io), a framework for building websites.
+
+## Configuration
+
+### `config.toml` example
+
+```toml
+baseURL = 'http://example.org/'
+languageCode = 'en-us'
+title = 'My New Hugo Site'
+theme = "ed"
+
+[Params]
+ # Color scheme. Options: red, orange, magenta, cyan, blue, brown
+ color_scheme = ''
+```
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 0000000..88882e5
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<html lang="{{ .Site.Language.Lang }}">
+ {{- partial "head.html" . -}}
+ <body class="theme-base-{{ .Site.Params.color_scheme }}">
+
+ </body>
+</html>
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/partials/head.html