fix: wip blog by tag

This commit is contained in:
kmacoders 2021-07-08 15:01:32 +07:00
parent b0f2e5dbb2
commit 3852e0ec03
9 changed files with 32 additions and 19 deletions

View File

@ -98,7 +98,16 @@ export default class TheHeader extends Vue {
{ {
title: 'Blog', title: 'Blog',
link: '/blog', link: '/blog',
subMenu: [] subMenu: [
{
title: 'Tất cả bài viết',
link: '/blog'
},
{
title: 'Bài viết theo chủ đề',
link: '/tags'
}
]
}, },
{ {
title: 'eHandy Teams', title: 'eHandy Teams',

View File

@ -2,7 +2,7 @@
title: How to code title: How to code
description: 'Empower your NuxtJS application with @nuxt/content module: write in a content/ directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB like API, acting as a Git-based Headless CMS.' description: 'Empower your NuxtJS application with @nuxt/content module: write in a content/ directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB like API, acting as a Git-based Headless CMS.'
image: 'http://placekitten.com/g/1920/1080' image: 'http://placekitten.com/g/1920/1080'
tags: ['VueJS', 'Nuxt'] tags: ['VueJS', 'Nuxt', 'Frontend']
published: '2020-02-12' published: '2020-02-12'
--- ---

View File

@ -2,7 +2,7 @@
title: Optimize your website title: Optimize your website
description: 'Empower your NuxtJS application with @nuxt/content module: write in a content/ directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB like API, acting as a Git-based Headless CMS.' description: 'Empower your NuxtJS application with @nuxt/content module: write in a content/ directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB like API, acting as a Git-based Headless CMS.'
image: 'http://placekitten.com/g/1920/1080' image: 'http://placekitten.com/g/1920/1080'
tags: ['VueJS', 'Nuxt'] tags: ['NodeJs', 'Nuxt', 'Optimize']
published: '2020-03-30' published: '2020-03-30'
--- ---

View File

@ -2,7 +2,7 @@
title: Deep folder Vue title: Deep folder Vue
description: 'Empower your NuxtJS application with @nuxt/content module: write in a content/ directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB like API, acting as a Git-based Headless CMS.' description: 'Empower your NuxtJS application with @nuxt/content module: write in a content/ directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB like API, acting as a Git-based Headless CMS.'
image: 'http://placekitten.com/g/1920/1080' image: 'http://placekitten.com/g/1920/1080'
tags: ['VueJS'] tags: ['vuejs']
published: '2020-01-12' published: '2020-01-12'
--- ---

View File

@ -2,7 +2,7 @@
title: Fisrt Blog Post eHandy title: Fisrt Blog Post eHandy
description: 'Empower your NuxtJS application with @nuxt/content module: write in a content/ directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB like API, acting as a Git-based Headless CMS.' description: 'Empower your NuxtJS application with @nuxt/content module: write in a content/ directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB like API, acting as a Git-based Headless CMS.'
image: 'http://placekitten.com/g/1920/1080' image: 'http://placekitten.com/g/1920/1080'
tags: ['VueJS', 'Nuxt'] tags: ['Share', 'Nuxt']
published: '2021-01-30' published: '2021-01-30'
--- ---

View File

@ -2,7 +2,7 @@
title: Fisrt Blog Post eHandy title: Fisrt Blog Post eHandy
description: 'Empower your NuxtJS application with @nuxt/content module: write in a content/ directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB like API, acting as a Git-based Headless CMS.' description: 'Empower your NuxtJS application with @nuxt/content module: write in a content/ directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB like API, acting as a Git-based Headless CMS.'
image: 'http://placekitten.com/g/1920/1080' image: 'http://placekitten.com/g/1920/1080'
tags: ['VueJS', 'Nuxt'] tags: ['Node', 'Nuxt']
published: '2021-03-30' published: '2021-03-30'
--- ---

View File

@ -2,7 +2,7 @@
title: Placeholder image shopify title: Placeholder image shopify
description: 'Empower your NuxtJS application with @nuxt/content module: write in a content/ directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB like API, acting as a Git-based Headless CMS.' description: 'Empower your NuxtJS application with @nuxt/content module: write in a content/ directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB like API, acting as a Git-based Headless CMS.'
image: 'http://placekitten.com/g/1920/1080' image: 'http://placekitten.com/g/1920/1080'
tags: ['VueJS', 'Nuxt'] tags: ['Fun', 'Nuxt']
published: '2021-05-30' published: '2021-05-30'
--- ---

View File

@ -2,7 +2,7 @@
title: Shopify partner title: Shopify partner
description: 'Empower your NuxtJS application with @nuxt/content module: write in a content/ directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB like API, acting as a Git-based Headless CMS.' description: 'Empower your NuxtJS application with @nuxt/content module: write in a content/ directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB like API, acting as a Git-based Headless CMS.'
image: 'http://placekitten.com/g/1920/1080' image: 'http://placekitten.com/g/1920/1080'
tags: ['VueJS', 'Nuxt'] tags: ['VueJS', 'Shopify']
published: '2022-06-30' published: '2022-06-30'
--- ---

View File

@ -1,8 +1,11 @@
<template> <template>
<section> <section>
<h1>All tag</h1> <div class="container">
<ul> <h1 class="title is-3 mt-3 mb-3 is-flex is-justify-content-center is-align-items-center">
<li v-for="tag in tags" :key="tag" class="text-center mb-2"> All Tags
</h1>
<ul class="columns">
<li v-for="tag in tags" :key="tag" class="column">
<nuxt-link <nuxt-link
:to="{ name: 'tags-tag', params: { tag: tag.toLowerCase() } }" :to="{ name: 'tags-tag', params: { tag: tag.toLowerCase() } }"
class="text-4xl hover:underline" class="text-4xl hover:underline"
@ -11,6 +14,7 @@
</nuxt-link> </nuxt-link>
</li> </li>
</ul> </ul>
</div>
</section> </section>
</template> </template>