added taxonomy page, modified search page

This commit is contained in:
somrat sorkar 2023-07-30 16:57:21 +06:00
parent b56929bd4d
commit 799b7a10e2
6 changed files with 44 additions and 19 deletions

View File

@ -0,0 +1,7 @@
---
title: "Search"
meta_title: ""
description: "this is meta description"
layout: "search"
draft: false
---

View File

@ -1,4 +0,0 @@
---
title: search
layout: search
---

View File

@ -4,18 +4,17 @@
<section class="section"> <section class="section">
<div class="container"> <div class="container">
<div class="row gx-5"> <ul class="text-center">
<!-- blog posts --> {{ range .RegularPages }}
<div class="lg:col-8"> <li class="m-3">
<div class="row"> <a
{{ range .Data.Pages }} href="{{ .Permalink }}"
<div class="md:col-6 mb-14"> class="text-dark dark:text-darkmode-dark block text-xl">
{{ partial "components/blog-card" . }} {{ .Title }}
</div> </a>
</li>
{{ end }} {{ end }}
</div> </ul>
</div>
</div>
</div> </div>
</section> </section>
{{ end }} {{ end }}

21
layouts/_default/taxonomy.html Executable file
View File

@ -0,0 +1,21 @@
{{ define "main" }}
{{ partial "page-header" . }}
<section class="section">
<div class="container">
<div class="row gx-5">
<!-- blog posts -->
<div class="lg:col-8">
<div class="row">
{{ range .Data.Pages }}
<div class="md:col-6 mb-14">
{{ partial "components/blog-card" . }}
</div>
{{ end }}
</div>
</div>
</div>
</div>
</section>
{{ end }}

View File

@ -1,8 +1,10 @@
{{ define "main" }} {{ define "main" }}
{{ partial "page-header" . }} {{ partial "page-header" . }}
<section class="section"> <section class="section">
<div class="container text-center"> <div class="container">
<ul> <ul class="text-center">
{{/* categories */}} {{/* categories */}}
{{ if eq .Permalink (`categories/` | absLangURL) }} {{ if eq .Permalink (`categories/` | absLangURL) }}
{{ range site.Taxonomies.categories.ByCount }} {{ range site.Taxonomies.categories.ByCount }}

View File

@ -1,7 +1,7 @@
{ {
"name": "hugoplate", "name": "hugoplate",
"description": "hugo tailwindcss boilerplate", "description": "hugo tailwindcss boilerplate",
"version": "1.6.2", "version": "1.6.3",
"license": "MIT", "license": "MIT",
"author": "zeon.studio", "author": "zeon.studio",
"scripts": { "scripts": {