From b8e139d1bddb3052c080510e21806e15cf6964b4 Mon Sep 17 00:00:00 2001 From: Kevin Lin Date: Sat, 4 Jan 2025 16:26:56 -0700 Subject: [PATCH 01/14] Scaffold of a better suggestion page with a preview --- assets/css/custom.css | 13 ++++ content/suggest/_index.md | 5 +- layouts/_default/suggest.html | 142 ++++++++++++++++++++++++++++++++++ layouts/_default/term.html | 16 +--- layouts/partials/head.html | 3 + 5 files changed, 162 insertions(+), 17 deletions(-) create mode 100644 layouts/_default/suggest.html diff --git a/assets/css/custom.css b/assets/css/custom.css index eb10b047..b1fcae8b 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -314,3 +314,16 @@ img[alt=diagram] { background-color: rgba(var(--color-primary-600), 1); border-radius: 0.09rem; } + +.p-20 { + padding: 20px; +} + +.rounded-md { + border-radius: 0.375rem; +} + + +.prose :where(ul):not(:where([class~="not-prose"] *)) { + list-style-type: disc; +} \ No newline at end of file diff --git a/content/suggest/_index.md b/content/suggest/_index.md index b4e36478..69bd8025 100644 --- a/content/suggest/_index.md +++ b/content/suggest/_index.md @@ -2,6 +2,7 @@ title: "Suggest" description: "Make a suggestion" --- -
+{{}} + diff --git a/layouts/_default/suggest.html b/layouts/_default/suggest.html new file mode 100644 index 00000000..7a30d41b --- /dev/null +++ b/layouts/_default/suggest.html @@ -0,0 +1,142 @@ +{{ define "main" }} +
+
+

+ Suggest a Formula +

+
+ +
+
+
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+
+
+ + +
+ +{{ end }} \ No newline at end of file diff --git a/layouts/_default/term.html b/layouts/_default/term.html index 09e73237..02a1c184 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -3,21 +3,7 @@ - +
{{ if .Params.showBreadcrumbs | default (.Site.Params.list.showBreadcrumbs | default false) }} {{ partial "breadcrumbs.html" . }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index cd74c4a0..b3a66546 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -141,4 +141,7 @@ {{ partial "extend-head.html" .Site }} {{ end }} + + + From 7806651edf81a85a909d73b4730297ab531583f5 Mon Sep 17 00:00:00 2001 From: Kevin Lin Date: Sat, 4 Jan 2025 16:35:26 -0700 Subject: [PATCH 02/14] I'm a golden god (fixed list items not having dot in preview) --- assets/css/custom.css | 4 ++++ layouts/_default/suggest.html | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/assets/css/custom.css b/assets/css/custom.css index b1fcae8b..effa8df4 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -326,4 +326,8 @@ img[alt=diagram] { .prose :where(ul):not(:where([class~="not-prose"] *)) { list-style-type: disc; +} + +.p-12 { + padding: 3rem; } \ No newline at end of file diff --git a/layouts/_default/suggest.html b/layouts/_default/suggest.html index 7a30d41b..62f44576 100644 --- a/layouts/_default/suggest.html +++ b/layouts/_default/suggest.html @@ -93,7 +93,7 @@

Preview

-
+
@@ -116,7 +116,7 @@

Preview ${title}

-
+
${parsedDescription}
From 1bbfdb70e42f345bc15871a015ca2a2ed0db4737 Mon Sep 17 00:00:00 2001 From: Kevin Lin Date: Sat, 4 Jan 2025 17:38:44 -0700 Subject: [PATCH 03/14] Oops add back term page rendering --- layouts/_default/term.html | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/layouts/_default/term.html b/layouts/_default/term.html index 02a1c184..c61fdb1d 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -3,7 +3,22 @@ - + +
{{ if .Params.showBreadcrumbs | default (.Site.Params.list.showBreadcrumbs | default false) }} {{ partial "breadcrumbs.html" . }} From e5efbf8f3dc8cc81af0caa3fbe5fd093cbe3226e Mon Sep 17 00:00:00 2001 From: Kevin Lin Date: Sat, 4 Jan 2025 17:39:01 -0700 Subject: [PATCH 04/14] Fix tags in preview render --- layouts/_default/suggest.html | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/layouts/_default/suggest.html b/layouts/_default/suggest.html index 62f44576..cb231505 100644 --- a/layouts/_default/suggest.html +++ b/layouts/_default/suggest.html @@ -1,4 +1,7 @@ {{ define "main" }} + +

@@ -43,14 +46,14 @@

@@ -58,13 +61,13 @@