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

feat: support extracting datetime from post filename #32

Merged
merged 2 commits into from
Mar 26, 2019

Conversation

chawyehsu
Copy link
Contributor

@chawyehsu chawyehsu commented Mar 26, 2019

I don't know how to add test case, so I put it here.

saber-config.yml

permalinks:
  post: /:year/:month/:day/:slug.html

./pages/_posts/2019-03-24-hello-saber.md

---
title: Hello Saber
date: 2019-03-25
layout: post
---

Hello Saber!

Permalink should be /2019/03/25/hello-saber.html

./pages/_posts/2019-03-26-saber-post.md

---
title: Saber Post
layout: post
---

Eos eu docendi tractatos sapientem, brute option menandri in vix, quando vivendo accommodare te ius. Nec melius fastidii constituam id, viderer theophrastus ad sit, hinc semper periculis cum id. Noluisse postulant assentior est in, no choro sadipscing repudiandae vix. Vis in euismod delenit dignissim. Ex quod nostrum sit, suas decore animal id ius, nobis solet detracto quo te.

Permalink should be /2019/03/26/saber-post.html

Should close #31

@netlify
Copy link

netlify bot commented Mar 26, 2019

Deploy preview for saberjs ready!

Built with commit 5c296db

https://deploy-preview-32--saberjs.netlify.com

@chawyehsu chawyehsu marked this pull request as ready for review March 26, 2019 13:53
@egoist
Copy link
Collaborator

egoist commented Mar 26, 2019

that should work, I will figure out a way to add unit/e2e tests later when api gets more stable.

@egoist egoist merged commit 3334bce into saberland:master Mar 26, 2019
@chawyehsu chawyehsu deleted the patch-1 branch March 26, 2019 14:49
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

Successfully merging this pull request may close these issues.

Parse permalinks placeholders from markdown files name
3 participants