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
Tag Hierarchy as defined in #+TAGS #341
Comments
We will need to define a little spec on how we want that to behave when exporting to Hugo tags. Let's take the example from the manual: You can set group tags by using brackets and inserting a colon between the group tag and its related tags—beware that all whitespaces are mandatory so that Org can parse this line correctly:
In this example, ‘GTD’ is the group tag and it is related to two other tags: ‘Control’, ‘Persp’. Defining ‘Control’ and ‘Persp’ as group tags creates a hierarchy of tags:
That can conceptually be seen as a hierarchy of tags:
Given above, if a post is tagged "Vision", should its
As an aside, have you tried out tags inheritance in sub-tree based exports? PS: I am currently bogged down with work stuff, but we can atleast start defining the spec in parallel. |
I like your approach using the org-mode examples. Yes I agree that the front matter tags should look as you have specified given the structure and then tagging a something with This would be an excellent feature because I want to use various tags from different inheritance trees as it were for example, using the example you have laid out I might want to tag with both
I can't do this with sub-tree inheritance even though in my personal approach I do use sub-tree based exports. |
I imagine the spec would maintain the ox-hugo use of |
It could also be possible to mix tags and categories within the definition. So if we changed one of the examples to include the
And then tag with
This is how org-mode can be configured and I think it would be quite a powerful feature |
Is there anything I can do to help spec this further? |
Hi Tom, no, I have enough data to start implementing this feature. I just need time to implement this. |
@tabroughton This is now implemented in #506. It might not be the best algorithm to do the reverse search from each tag to the tag group's head, but it works 😄 . |
I wondered if it would be possible to export tags with hierarchy defined in the org-mode #TAGS
https://orgmode.org/manual/Tag-Hierarchy.html
The text was updated successfully, but these errors were encountered: