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">
|
||||
<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
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" }}
|
||||
{{ 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 }}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "hugoplate",
|
||||
"description": "hugo tailwindcss boilerplate",
|
||||
"version": "1.6.2",
|
||||
"version": "1.6.3",
|
||||
"license": "MIT",
|
||||
"author": "zeon.studio",
|
||||
"scripts": {
|
||||
|
Loading…
Reference in New Issue
Block a user