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

Add config setting for memo filepath format #7

Open
rafi opened this issue Feb 9, 2017 · 7 comments
Open

Add config setting for memo filepath format #7

rafi opened this issue Feb 9, 2017 · 7 comments

Comments

@rafi
Copy link

rafi commented Feb 9, 2017

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
@mattn
Copy link
Owner

mattn commented Feb 9, 2017

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.

@rafi
Copy link
Author

rafi commented Feb 9, 2017

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.

@thewhitetulip
Copy link

How about using Hugo? So that the app is end to end in Go? @mattn

@mattn
Copy link
Owner

mattn commented Feb 10, 2017

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.

@thewhitetulip
Copy link

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?

@mattn
Copy link
Owner

mattn commented Feb 10, 2017

It's not real point of this issue. And I'm not talking about which generator is faster.

@thewhitetulip
Copy link

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! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants