summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2020-11-15 13:14:37 +0100
committerAlan Pearce2020-11-15 13:15:31 +0100
commit6385a5f78ce2ad7409811927b10fc2b62e427643 (patch)
tree557406eaea728d84f82e852ada8fd97199d1a709
parent78096da0f478a0b11b77f365cedc855e7c680e14 (diff)
downloadwebsite-6385a5f78ce2ad7409811927b10fc2b62e427643.tar.lz
website-6385a5f78ce2ad7409811927b10fc2b62e427643.tar.zst
website-6385a5f78ce2ad7409811927b10fc2b62e427643.zip
Extract theme from templates
-rw-r--r--config.toml2
-rw-r--r--themes/xmin/static/css/style.css (renamed from static/css/style.css)0
-rw-r--r--themes/xmin/templates/base.html (renamed from templates/base.html)0
l---------themes/xmin/templates/categories/list.html (renamed from templates/categories/list.html)0
l---------themes/xmin/templates/categories/single.html (renamed from templates/categories/single.html)0
-rw-r--r--themes/xmin/templates/index.html (renamed from templates/index.html)0
-rw-r--r--themes/xmin/templates/page.html (renamed from templates/page.html)0
-rw-r--r--themes/xmin/templates/section.html (renamed from templates/section.html)0
-rw-r--r--themes/xmin/templates/tags/list.html (renamed from templates/tags/list.html)0
-rw-r--r--themes/xmin/templates/tags/single.html (renamed from templates/tags/single.html)0
-rw-r--r--themes/xmin/theme.toml12
11 files changed, 14 insertions, 0 deletions
diff --git a/config.toml b/config.toml
index b482d0a..6bf8108 100644
--- a/config.toml
+++ b/config.toml
@@ -9,6 +9,8 @@ generate_feed = true
 highlight_code = true
 highlight_theme = "ascetic-white"
 
+theme = "xmin"
+
 [[taxonomies]]
 name = "tags"
 feed = true
diff --git a/static/css/style.css b/themes/xmin/static/css/style.css
index e605297..e605297 100644
--- a/static/css/style.css
+++ b/themes/xmin/static/css/style.css
diff --git a/templates/base.html b/themes/xmin/templates/base.html
index 6b99609..6b99609 100644
--- a/templates/base.html
+++ b/themes/xmin/templates/base.html
diff --git a/templates/categories/list.html b/themes/xmin/templates/categories/list.html
index e0e4e08..e0e4e08 120000
--- a/templates/categories/list.html
+++ b/themes/xmin/templates/categories/list.html
diff --git a/templates/categories/single.html b/themes/xmin/templates/categories/single.html
index 86f5e80..86f5e80 120000
--- a/templates/categories/single.html
+++ b/themes/xmin/templates/categories/single.html
diff --git a/templates/index.html b/themes/xmin/templates/index.html
index 23ec4cd..23ec4cd 100644
--- a/templates/index.html
+++ b/themes/xmin/templates/index.html
diff --git a/templates/page.html b/themes/xmin/templates/page.html
index f32a6fc..f32a6fc 100644
--- a/templates/page.html
+++ b/themes/xmin/templates/page.html
diff --git a/templates/section.html b/themes/xmin/templates/section.html
index e61566f..e61566f 100644
--- a/templates/section.html
+++ b/themes/xmin/templates/section.html
diff --git a/templates/tags/list.html b/themes/xmin/templates/tags/list.html
index ee60c39..ee60c39 100644
--- a/templates/tags/list.html
+++ b/themes/xmin/templates/tags/list.html
diff --git a/templates/tags/single.html b/themes/xmin/templates/tags/single.html
index 25dde54..25dde54 100644
--- a/templates/tags/single.html
+++ b/themes/xmin/templates/tags/single.html
diff --git a/themes/xmin/theme.toml b/themes/xmin/theme.toml
new file mode 100644
index 0000000..99884b9
--- /dev/null
+++ b/themes/xmin/theme.toml
@@ -0,0 +1,12 @@
+name = "xmin"
+description = "XMin is a Hugo theme written by Yihui Xie in about four hours"
+license = "MIT"
+
+[author]
+name = "Alan Pearce"
+homepage = "https://www.alanpearce.eu"
+
+[original]
+author = "yihui"
+homepage = "https://yihui.org"
+repo = "https://github.com/yihui/hugo-xmin"
\ No newline at end of file