Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change Tag names? #17

Open
AlfonsoJazz opened this issue Feb 26, 2021 · 1 comment
Open

How to change Tag names? #17

AlfonsoJazz opened this issue Feb 26, 2021 · 1 comment

Comments

@AlfonsoJazz
Copy link

Hello!
I was trying to use this amazing theme, but, I dont want to use tag1,tag2.. instead, iwant to display other names. I tried changing tags yaml file. but nothing happened.
image

@katcaola
Copy link

katcaola commented Aug 19, 2021

To change the tag names there's a few files you need to edit. For all these examples, replace <TAG_NAME> with the tag name you want:

(1) in the tags/ dir add <TAG_NAME>.html to have

---
layout: tag
tag: <TAG_NAME>
permalink: /tag/<TAG_NAME>/
---

(2) in data/tags.yml add your tag

<TAG_NAME>:
  name: <TAG_NAME>

(3) in the post, make sure you add your tag to the tags section so it looks like so:

---
layout: default
title: "A Post Title"
tags: tag1 tag3 <TAG_NAME>
---

Then you should be able to see the changes in tag name.
In the screenshot here, you can see I made a new tag called "idea"
Screen Shot 2021-08-19 at 5 25 03 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants