From 799b7a10e22d9f77a26733b5cd5a7692e5073f51 Mon Sep 17 00:00:00 2001 From: somrat sorkar Date: Sun, 30 Jul 2023 16:57:21 +0600 Subject: [PATCH] added taxonomy page, modified search page --- exampleSite/content/english/pages/search.md | 7 +++++++ exampleSite/content/english/search.md | 4 ---- layouts/_default/list.html | 23 ++++++++++----------- layouts/_default/taxonomy.html | 21 +++++++++++++++++++ layouts/_default/terms.html | 6 ++++-- package.json | 2 +- 6 files changed, 44 insertions(+), 19 deletions(-) create mode 100644 exampleSite/content/english/pages/search.md delete mode 100644 exampleSite/content/english/search.md create mode 100755 layouts/_default/taxonomy.html diff --git a/exampleSite/content/english/pages/search.md b/exampleSite/content/english/pages/search.md new file mode 100644 index 0000000..849320f --- /dev/null +++ b/exampleSite/content/english/pages/search.md @@ -0,0 +1,7 @@ +--- +title: "Search" +meta_title: "" +description: "this is meta description" +layout: "search" +draft: false +--- diff --git a/exampleSite/content/english/search.md b/exampleSite/content/english/search.md deleted file mode 100644 index 1c4b6fd..0000000 --- a/exampleSite/content/english/search.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -title: search -layout: search ---- diff --git a/layouts/_default/list.html b/layouts/_default/list.html index ec083f8..457b96f 100755 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -4,18 +4,17 @@
-
- -
-
- {{ range .Data.Pages }} -
- {{ partial "components/blog-card" . }} -
- {{ end }} -
-
-
+
{{ end }} diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html new file mode 100755 index 0000000..ec083f8 --- /dev/null +++ b/layouts/_default/taxonomy.html @@ -0,0 +1,21 @@ +{{ define "main" }} + {{ partial "page-header" . }} + + +
+
+
+ +
+
+ {{ range .Data.Pages }} +
+ {{ partial "components/blog-card" . }} +
+ {{ end }} +
+
+
+
+
+{{ end }} diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 189b0a6..7e6f648 100755 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -1,8 +1,10 @@ {{ define "main" }} {{ partial "page-header" . }} + +
-
-
    +
    +
      {{/* categories */}} {{ if eq .Permalink (`categories/` | absLangURL) }} {{ range site.Taxonomies.categories.ByCount }} diff --git a/package.json b/package.json index 9712e27..0825086 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hugoplate", "description": "hugo tailwindcss boilerplate", - "version": "1.6.2", + "version": "1.6.3", "license": "MIT", "author": "zeon.studio", "scripts": {