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">
<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>
<ul class="text-center">
{{ range .RegularPages }}
<li class="m-3">
<a
href="{{ .Permalink }}"
class="text-dark dark:text-darkmode-dark block text-xl">
{{ .Title }}
</a>
</li>
{{ end }}
</ul>
</div>
</section>
{{ 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" }}
{{ partial "page-header" . }}
<section class="section">
<div class="container text-center">
<ul>
<div class="container">
<ul class="text-center">
{{/* categories */}}
{{ if eq .Permalink (`categories/` | absLangURL) }}
{{ range site.Taxonomies.categories.ByCount }}

View File

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