diff options
author | ncaq <ncaq@ncaq.net> | 2018-12-20 00:07:52 +0900 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2019-05-09 11:19:46 +0200 |
commit | 5ac95e9b9b62baf417a69557f40078af1a5ad92a (patch) | |
tree | c870967abbc2e0b563793628586a3600651103ec /tests/data/just-meta.html.out | |
parent | 7783ec77e0e42ef849aaf013c9e568a1b47c33eb (diff) | |
download | hakyll-5ac95e9b9b62baf417a69557f40078af1a5ad92a.tar.gz |
fixed: auto complete `published` overwrites user's context
I like following, has written a context to complement from the file name `published`.
[www.ncaq.net/site.hs at d8b7eb3426eae36ee0ea5788f32306b9ffa6f9f2 ยท ncaq/www.ncaq.net](https://github.com/ncaq/www.ncaq.net/blob/d8b7eb3426eae36ee0ea5788f32306b9ffa6f9f2/site.hs#L120)
Looking at feed today, I noticed that time is not reflected in `published`.
This is because `getItemUTC` overwrites my `published`.
Adding a format to `getItemUTC` was not a solution because I live with JST.
Also, it is not realistic to write `published` in the yaml metadata of all files, and I think that you want to be delivered as JST as much as possible.
Since `updated` does not overwrite the context, I tried to rewrite so that `published` does not overwrite the context.
I have confirmed in the local environment that all things work well, is this the intended overwrite?
If not, I think it is natural to prioritize the user's context.
Diffstat (limited to 'tests/data/just-meta.html.out')
0 files changed, 0 insertions, 0 deletions