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 make notes contents as list without sub-directory #239

Open
yanboyang713 opened this issue Apr 9, 2023 · 5 comments
Open

How to make notes contents as list without sub-directory #239

yanboyang713 opened this issue Apr 9, 2023 · 5 comments

Comments

@yanboyang713
Copy link

Hello All,

I found notes contents must within a sub-directory. how could I make notes contents as list without directory? example below

root-content-notes
                   -_index.md
                   -aaa.md
                   -bbb.md
                   -ccc.md

Current default:

root-content-notes
                   - _index.md
                   - a-directory
                                     - _index.md
                                     - aaa.md
                   - b-directory
                                     - _index.md
                                     - bbb.md

Thanks

@hossainemruz
Copy link
Member

Sorry, I was not responsive for few month due to some personal issue. You should be able to write notes without sub-directory. There might be some changes necessary in the front-matter.

@yanboyang713
Copy link
Author

Hello @hossainemruz ,

Thanks for your reply.

Even content/notes DIR only has one .md file. my web could not works.

Could you give me an example of the correct front matter?

yanboyang713@Meta-Scientific-Linux ~/personalblog/content/notes (git)-[main] % ls
one.md
yanboyang713@Meta-Scientific-Linux ~/personalblog/content/notes (git)-[main] % cat one.md
+++
title = "emacs first"
date = 2021-12-21T16:16:00-05:00
categories = ["Editor", "emacs"]
draft = false
+++

1st

@hossainemruz
Copy link
Member

Please try following front-matter.

---
title: "emacs first"
date: 2021-12-21T16:16:00-05:00
categories: ["Editor", "emacs"]
draft: false
menu:
  notes:
    name: "Variables"
    identifier: "notes-bash-variables"
    weight: 1
---

@yanboyang713
Copy link
Author

yanboyang713 commented Oct 15, 2023 via email

@yanboyang713
Copy link
Author

Hello @hossainemruz ,

I tried the example below, which could not work.
I don't want to work on yaml because ox-hugo only supports toml.

+++
title = "emacs first"
date = 2021-12-21T16:16:00-05:00
categories = ["Editor", "emacs"]
draft = false
[menu.notes]
name = "Variables"
identifier = "notes-bash-variables"
weight = 1
+++

1st

Currently, what I do I want to follow this link exporting org roam to Hugo

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