From 2deb5440fc701f1b3d3987a588f7f91138e1abd3 Mon Sep 17 00:00:00 2001 From: Vortex Date: Fri, 11 Jun 2021 12:53:44 +0530 Subject: [PATCH 1/3] modify ad column position & increase section column size --- layouts/_default/baseof.html | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index ef74318..064f014 100755 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -62,26 +62,22 @@ {{ else if eq $left_sidebar true }}
-
-
- {{ block "sidebar" . }}{{ end }} - {{ partial "layout/sidebar" }} -
-
- {{ block "main" . }}{{ end }} -
+
+ {{ block "main" . }}{{ end }} +
+
+ {{ block "sidebar" . }}{{ end }} + {{ partial "layout/sidebar" }}
{{ else }}
-
-
- {{ block "main" . }}{{ end }} -
-
- {{ block "sidebar" . }}{{ end }} - {{ partial "layout/sidebar" }} -
+
+ {{ block "main" . }}{{ end }} +
+
+ {{ block "sidebar" . }}{{ end }} + {{ partial "layout/sidebar" }}
{{ end }} From a1691442d2c804b8e0f238c2ad958e8b837d49e2 Mon Sep 17 00:00:00 2001 From: Vortex Date: Fri, 11 Jun 2021 13:52:04 +0530 Subject: [PATCH 2/3] center the columns --- layouts/_default/baseof.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 064f014..d5b9e25 100755 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -62,8 +62,10 @@
{{ else if eq $left_sidebar true }}
-
- {{ block "main" . }}{{ end }} +
+
+ {{ block "main" . }}{{ end }} +
{{ block "sidebar" . }}{{ end }} @@ -72,8 +74,10 @@
{{ else }}
-
- {{ block "main" . }}{{ end }} +
+
+ {{ block "main" . }}{{ end }} +
{{ block "sidebar" . }}{{ end }} From 5f0a06b1a26fc7236743b2f5d8cf1e754c63e53d Mon Sep 17 00:00:00 2001 From: Vortex Date: Sat, 12 Jun 2021 03:18:18 +0530 Subject: [PATCH 3/3] new table shortcode --- layouts/shortcodes/table.html | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 layouts/shortcodes/table.html diff --git a/layouts/shortcodes/table.html b/layouts/shortcodes/table.html new file mode 100644 index 0000000..c1991d9 --- /dev/null +++ b/layouts/shortcodes/table.html @@ -0,0 +1,6 @@ +{{ $htmlTable := .Inner | markdownify }} +{{ $class := .Get 0 }} +{{ $old := "" }} +{{ $new := printf "
" $class }} +{{ $htmlTable := replace $htmlTable $old $new }} +{{ $htmlTable | safeHTML }} \ No newline at end of file