From ba408f13aa0f6200a5d30bc02b03de56284aab8c Mon Sep 17 00:00:00 2001 From: roberto Date: Sat, 26 Apr 2025 09:45:23 +0200 Subject: [PATCH] First stesp to create a theme --- config.toml | 2 ++ .../lean/layouts}/_default/baseof.html | 0 .../lean/layouts}/_default/list.html | 0 .../lean/layouts/_default/section.html | 0 themes/lean/layouts/_default/single.html | 0 .../lean/layouts}/shortcodes/columns.html | 0 .../lean/layouts}/shortcodes/rawhtml.html | 0 themes/lean/theme.toml | 14 ++++++++++++++ 8 files changed, 16 insertions(+) rename {layouts => themes/lean/layouts}/_default/baseof.html (100%) rename {layouts => themes/lean/layouts}/_default/list.html (100%) rename layouts/_default/single.html => themes/lean/layouts/_default/section.html (100%) create mode 100644 themes/lean/layouts/_default/single.html rename {layouts => themes/lean/layouts}/shortcodes/columns.html (100%) rename {layouts => themes/lean/layouts}/shortcodes/rawhtml.html (100%) create mode 100644 themes/lean/theme.toml diff --git a/config.toml b/config.toml index 9b9bab0..f3edb19 100644 --- a/config.toml +++ b/config.toml @@ -2,6 +2,8 @@ baseurl = "https://speedtech.it" title = "Information Technology Services" languageCode = "it" defaultContentLanguage = "it" +theme = "lean" +themesDir = "themes" # Define the number of posts per page paginate = 5 diff --git a/layouts/_default/baseof.html b/themes/lean/layouts/_default/baseof.html similarity index 100% rename from layouts/_default/baseof.html rename to themes/lean/layouts/_default/baseof.html diff --git a/layouts/_default/list.html b/themes/lean/layouts/_default/list.html similarity index 100% rename from layouts/_default/list.html rename to themes/lean/layouts/_default/list.html diff --git a/layouts/_default/single.html b/themes/lean/layouts/_default/section.html similarity index 100% rename from layouts/_default/single.html rename to themes/lean/layouts/_default/section.html diff --git a/themes/lean/layouts/_default/single.html b/themes/lean/layouts/_default/single.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/shortcodes/columns.html b/themes/lean/layouts/shortcodes/columns.html similarity index 100% rename from layouts/shortcodes/columns.html rename to themes/lean/layouts/shortcodes/columns.html diff --git a/layouts/shortcodes/rawhtml.html b/themes/lean/layouts/shortcodes/rawhtml.html similarity index 100% rename from layouts/shortcodes/rawhtml.html rename to themes/lean/layouts/shortcodes/rawhtml.html diff --git a/themes/lean/theme.toml b/themes/lean/theme.toml new file mode 100644 index 0000000..fa03ac0 --- /dev/null +++ b/themes/lean/theme.toml @@ -0,0 +1,14 @@ +name = "Lean" +license = "GPL" +licenselink = "https://github.com/devcows/hugo-universal-theme/blob/master/LICENSE" +description = "A lean theme to create static websites with Hugo" +homepage = "https://forgejo.speedtech.it/hugo-lean-theme" +tags = ["blog", "company", "portfolio", "projects", "minimal", "responsive"] +features = ["blog", "themes", "disqus", "minimal", "responsive"] +theme = "lean" +themesDir = "themes" + +[author] + name = "Roberto Gerola" + homepage = "https://speedtech.it" +