From f65aadc03c4cbd3968536dec2658c0c09b8fd7da Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Fri, 27 May 2022 12:49:18 +0200 Subject: [PATCH] Add main menu, basic layout --- config.toml | 5 - config.yaml | 14 + content/contact.md | 7 +- content/foundation/_index.md | 5 + tailwind.config.js | 8 +- themes/kosmos-22/layouts/_default/baseof.html | 5 +- .../kosmos-22/layouts/_default/section.html | 12 + themes/kosmos-22/layouts/_default/single.html | 8 +- .../kosmos-22/layouts/foundation/section.html | 10 - themes/kosmos-22/layouts/partials/topnav.html | 22 ++ themes/kosmos-22/static/css/main.css | 242 +++++++++++++++++- 11 files changed, 315 insertions(+), 23 deletions(-) delete mode 100644 config.toml create mode 100644 config.yaml create mode 100644 themes/kosmos-22/layouts/_default/section.html delete mode 100644 themes/kosmos-22/layouts/foundation/section.html create mode 100644 themes/kosmos-22/layouts/partials/topnav.html diff --git a/config.toml b/config.toml deleted file mode 100644 index d4fa61b..0000000 --- a/config.toml +++ /dev/null @@ -1,5 +0,0 @@ -theme = "kosmos-22" -baseURL = 'https://kosmos.org/' -languageCode = 'en-us' -title = 'Kosmos' -disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT"] diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..0c7a798 --- /dev/null +++ b/config.yaml @@ -0,0 +1,14 @@ +theme: kosmos-22 +baseURL: https://kosmos.org/ +languageCode: en-us +title: Kosmos +disableKinds: + - taxonomy + - term + - RSS + - sitemap + - robotsTXT +markup: + goldmark: + renderer: + unsafe: true # Allow HTML in md files diff --git a/content/contact.md b/content/contact.md index e6d706b..c40816d 100644 --- a/content/contact.md +++ b/content/contact.md @@ -1,5 +1,10 @@ --- title: Contact Us +menu: + main: + identifier: contact + name: Contact + weight: 20 --- -Contact us. +Contact content diff --git a/content/foundation/_index.md b/content/foundation/_index.md index 144152e..35a65f5 100644 --- a/content/foundation/_index.md +++ b/content/foundation/_index.md @@ -1,5 +1,10 @@ --- title: Kosmos Infrastructure Foundation +menu: + main: + identifier: foundation + name: Foundation + weight: 10 --- Foundation content diff --git a/tailwind.config.js b/tailwind.config.js index 5e441e1..e2939c0 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,11 +1,15 @@ module.exports = { content: [ - "./content/**/*.{html,js}", + "./content/**/*.{md,html}", "./layouts/**/*.{html,js}", "./themes/**/*.{html,js}" ], theme: { - extend: {}, + extend: { + fontFamily: { + sans: ['Open Sans', 'sans-serif'] + } + }, }, plugins: [], } diff --git a/themes/kosmos-22/layouts/_default/baseof.html b/themes/kosmos-22/layouts/_default/baseof.html index ca5c72f..75e80a7 100644 --- a/themes/kosmos-22/layouts/_default/baseof.html +++ b/themes/kosmos-22/layouts/_default/baseof.html @@ -6,8 +6,9 @@ - -
+ + {{ partial "topnav" . }} +
{{- block "main" . }}{{- end }}