added taxonomy page, modified search page
This commit is contained in:
parent
b56929bd4d
commit
799b7a10e2
7
exampleSite/content/english/pages/search.md
Normal file
7
exampleSite/content/english/pages/search.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
title: "Search"
|
||||||
|
meta_title: ""
|
||||||
|
description: "this is meta description"
|
||||||
|
layout: "search"
|
||||||
|
draft: false
|
||||||
|
---
|
@ -1,4 +0,0 @@
|
|||||||
---
|
|
||||||
title: search
|
|
||||||
layout: search
|
|
||||||
---
|
|
@ -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
21
layouts/_default/taxonomy.html
Executable 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 }}
|
@ -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 }}
|
||||||
|
@ -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": {
|
||||||
|
Loading…
Reference in New Issue
Block a user