memo
memo copied to clipboard
Add config setting for memo filepath format
Please allow to configure the memos filename format, and support creation of subdirectories.
For example, create directories for 'year-month/' and filename with 'day-slug.md':
filefmt = "%Y-%m/%d-${SLUG}.md"
💬 Notice the
/
in format.
Example of current default:
filefmt = "%Y-%m-%d-${SLUG}.md"
I keep my memos in this fashion:
├── 2016-10
│  └── 22-ipsum.md
├── 2016-12
│  ├── 11-foo-bar.md
│  ├── 13-bar-baz.md
│  └── 19-lorem.md
├── 2017-01
│  └── 05-foo.md
└── index.md
Thanks. memo is designed for serving files on http server. And the _posts directory can be used to jekyll. If you put _config.yml
on the base directory of _posts, it should work blog entries. So if this directory structure works on jekyll, I will do the improvement.
Hi! I do not use Jekyll. But I keep several notebooks in Markdown format, and I find memo
to be great to manage and write easily. In my honest opinion, your tool memo
should not be tightly-coupled to Jekyll, as it can serve other use-cases as-well. Thank you for building this!
The default file-format can be what Jekyll expects, but user can customize it using config, that can be nice.
How about using Hugo? So that the app is end to end in Go? @mattn
I don't like Hugo because templates are not user friendly. I can use but I can't say that all of users like it. One of the choice will be jedie. https://github.com/mattn/jedie if I decide to use server in memo. But currently I won't.
I do not know the internal issues with Hugo but I feel that it is faster than Node or Ruby based Static site generators, at least I have found it faster than Hexo. We don't really need to use a server in memo, but maybe a config item for hugo?
It's not real point of this issue. And I'm not talking about which generator is faster.
I know that it isn't about the speed of the underlying static site generator, but like @rafi I don't use jekyll! So as long as we are adding a config item, having one for an Hugo would be great! :-)