hugo-toha.github.io icon indicating copy to clipboard operation
hugo-toha.github.io copied to clipboard

How to make notes contents as list without sub-directory

Open yanboyang713 opened this issue 1 year ago • 5 comments

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

yanboyang713 avatar Apr 09 '23 03:04 yanboyang713

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.

hossainemruz avatar Jul 27 '23 16:07 hossainemruz

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

yanboyang713 avatar Oct 15 '23 03:10 yanboyang713

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
---

hossainemruz avatar Oct 15 '23 05:10 hossainemruz

Thanks for your reply.

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:00categories = ["Editor", "emacs"]draft = false[menu.notes]name = "Variables"identifier = "notes-bash-variables"weight = 1+++1st

On Sun, Oct 15, 2023 at 1:19 AM Emruz Hossain @.***> wrote:

Please try following front-matter.

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

— Reply to this email directly, view it on GitHub https://github.com/hugo-toha/hugo-toha.github.io/issues/239#issuecomment-1763276896, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2ALLAHLAYBBZMVHVK7Z3DX7NW7ZANCNFSM6AAAAAAWX3GEDQ . You are receiving this because you authored the thread.Message ID: @.***>

yanboyang713 avatar Oct 15 '23 19:10 yanboyang713

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

yanboyang713 avatar Oct 16 '23 04:10 yanboyang713