From d5c1fe2d60e4108d08a8cb6adac9af0a476d4fbf Mon Sep 17 00:00:00 2001 From: gws Date: Thu, 7 Nov 2024 10:16:24 +0100 Subject: [PATCH] sv/en toggle --- content/blog/_index.sv.md | 6 ++++ content/contact.sv.md | 41 +++++++++++++++++++++ content/it.sv.md | 14 ++++++++ content/software.sv.md | 14 ++++++++ templates/_macros.html | 27 ++++++++++---- templates/contact.html | 2 +- templates/index.html | 75 ++++++++++++++++++++++----------------- templates/page.html | 22 ++++++++++++ templates/section.html | 8 ++++- 9 files changed, 168 insertions(+), 41 deletions(-) create mode 100644 content/blog/_index.sv.md create mode 100644 content/contact.sv.md create mode 100644 content/it.sv.md create mode 100644 content/software.sv.md create mode 100644 templates/page.html diff --git a/content/blog/_index.sv.md b/content/blog/_index.sv.md new file mode 100644 index 0000000..59cecaa --- /dev/null +++ b/content/blog/_index.sv.md @@ -0,0 +1,6 @@ ++++ +title = "Blog" +sort_by = "date" +weight = 5 ++++ + diff --git a/content/contact.sv.md b/content/contact.sv.md new file mode 100644 index 0000000..b680fb2 --- /dev/null +++ b/content/contact.sv.md @@ -0,0 +1,41 @@ ++++ +title = "Contact" +description = "How to get in contact" +weight = 10 +template = "contact.html" +[extra] +disable_toc = true ++++ + +
+
+
+
+

Address

+

Mada Center 8th floor, 379 Hudson St, New York, NY 10018 US

+
+
+

Lets Talk

+

+1 800 1236879

+
+
+

General Support

+

contact@example.com

+
+
+
+
+

Send Us A Message

+
+
+
+
+
+
+
+
diff --git a/content/it.sv.md b/content/it.sv.md new file mode 100644 index 0000000..08cde47 --- /dev/null +++ b/content/it.sv.md @@ -0,0 +1,14 @@ ++++ +title = "IT" +description = "IT Services and Consulting" +weight = 3 ++++ + +## TODO + +```rust +fn main() { + println!("Hello, World!"); +} + +``` diff --git a/content/software.sv.md b/content/software.sv.md new file mode 100644 index 0000000..3733233 --- /dev/null +++ b/content/software.sv.md @@ -0,0 +1,14 @@ ++++ +title = "Software" +description = "Software Development Consulting" +weight = 1 ++++ + +## TODO + +```rust +fn main() { + println!("Hello, World!"); +} + +``` diff --git a/templates/_macros.html b/templates/_macros.html index d705800..b51f43f 100644 --- a/templates/_macros.html +++ b/templates/_macros.html @@ -1,6 +1,6 @@ -{% macro render_header() %} -{% set section = get_section(path="_index.md") %} - +{% macro render_header(path) %} +{% set root = get_section(path="_index.md") %} +