Clarification: How to convert frontmatter tags #48
-
Hello! This is probably a stupid question, but I'm unable to figure out the answer, so in some way I guess I consider it a bug in the documentation.
(However, the relevant setting is not called "Convert frontmatter/inline field into tags", it's called "Convert frontmatter/dataview field to tags". That should probably be fixed.) The way I interpret this option, my file in Obsidian can have the following frontmatter:
And then, if I set "Convert frontmatter/dataview field to tags" to "jekyll-tags", the resulting file on GitHub should get the following frontmatter:
But that doesn't happen, so I'm clearly misunderstanding what this option does. Can I make it do what I want, or if not, what does this option actually do? (Background: The reason I want to do this is that I'm trying to publish from Obsidian to GitHub Pages with this plugin, and Jekyll allows spaces in tags while Obsidian does not, so I want to separate Obsidian tags from Jekyll tags in Obsidian but use only Jekyll tags for GitHub Pages.) Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I see now that the plugin has a "Text replacer" option, so what I want to do is probably just to use that to replace "jekyll-tags" with "tags". That seems the simpler option. Still, it doesn't really clear up for me what the "Convert frontmatter/dataview field to tags" option does! |
Beta Was this translation helpful? Give feedback.
-
Hello! For example, you have in a dataview inline with this : ---
tags: [Roleplay, TTRPG]
title: Another idea for NPC
---
type:: NPC The ---
tags: [Roleplay, TTRPG, NPC]
---
type:: NPC Same for a frontmatter entry like that : ---
type: NPC
--- That will turn into : ---
tags: [NPC]
type: NPC
--- This function can be really usefull in this example : ---
tags: [Tutorial]
---
linked:: [[wordmap]] → ---
tags: [Tutorial, worldmap]
---
linked:: [[worldmap]] |
Beta Was this translation helpful? Give feedback.
-
Aha! Thank you. I've never used Dataview, so it was a bit confusing to me that the option was called "Convert frontmatter/dataview field to tags"; the slash makes it seem like it's for either frontmatter or dataview, but it sounds like it's actually for either dataview frontmatter or inline dataview? |
Beta Was this translation helpful? Give feedback.
Hello!
This option allow you to convert a dataview entry to a tag.
For example, you have in a dataview inline with this :
The
PNJ
value will be added in the tags, as that :Same for a frontmatter entry like that :
That will turn into :
This function can be really usefull in this example :
→