squidfunk
1041766d81
Fixed time sneaking into default post format string
2024-04-02 12:02:04 +08:00
Alexander Payne
abfac1a93e
Switched to Babel's format_datetime
to allow for time in formatted dates ( #6981 )
...
* Use Babel's `format_datetime`, not `format_date`
I am using MkDocs-Material 9.5.15 and Babel 2.14.0. When setting the config value `blog.post_date_format: "yyyy-MM-dd hh:mm:ss"`, the blog plugin crashes during compilation with the error "date objects have no hour field".
I believe this is occurring because the plugin provides a `datetime` to `babel.dates.format_date`, which upcasts it to a plain, timeless, `date`. Making this change to use `babel.dates.format_datetime` instead resolved the error and demonstrated expected behavior.
While I recognize that it is likely uncommon for a blog to want to include sub-date timestamps in any of these fields, I believe that the current documentation,
> The format string must adhere to babel's pattern syntax and should not contain whitespace
implies that _any_ of Babel's pattern markers are acceptable here. I would consider
> The format string must adhere to Babel's pattern syntax for calendar dates and should not contain whitespace
to also be a sufficient fix for this case.
----
Thank you for your effort in creating this project; it has been a wonderful benefit to my team, and this is the first minor problem we've had in months of using it.
* Make the change in src/, not material/
2024-03-31 15:45:47 +08:00
Kamil Krzyśków
022f14c0eb
Fixed UTF-8 with BOM encoding support
2024-03-17 12:04:45 +07:00
squidfunk
b7fc7bad5e
Removed continue reading link when there's nothing more to read
2024-02-15 12:07:47 +07:00
squidfunk
7624e78744
Updated copyright year
2024-01-06 09:27:06 +07:00
squidfunk
aa62bcc4f6
Merge latests changes from Insiders
2023-12-07 11:46:44 +01:00
squidfunk
f855a67384
Merged features tied to 'Goat's Horn' funding goal
2023-12-07 10:48:42 +01:00
squidfunk
c2da2d8279
Fixed blog broken pagination links to previous pages
2023-11-26 12:46:32 +01:00
squidfunk
058b32f2d3
Fixed non-deterministic order of categories in blog plugin
2023-11-24 09:42:57 +01:00
squidfunk
ae056297bf
Fixed crash of blog plugin when pagination is disabled
2023-11-23 11:53:43 +01:00
squidfunk
1095a4e523
Updated distribution files
2023-11-17 11:20:53 +01:00
squidfunk
88470b38cd
Added monochrome logo to icons
2023-11-14 09:37:59 +01:00
squidfunk
9c73460e2c
Fixed blog plugin crashing for pt-BR locale
2023-11-14 09:33:48 +01:00
Alexander Voss
1be39328ac
Fixed encoding problem when using blog plugin ( #6103 )
2023-09-29 15:26:32 +02:00
squidfunk
433c137bc1
Fixed blog plugin not generating paginated views as index pages
2023-09-22 18:12:48 +02:00
squidfunk
7d0f759cfb
Removed hack in blog plugin for MkDocs < 1.5.3
2023-09-22 17:58:26 +02:00
squidfunk
50c273cfd4
Fixed blog plugin crashing when blog is not linked in navigation
2023-09-22 17:28:57 +02:00
squidfunk
ef5a04a324
Fixed draft blog posts being included in navigation
2023-09-13 22:05:53 +02:00
squidfunk
fc566cf0e2
Fixed further regression in blog plugin navigation
2023-09-04 14:06:51 +02:00
squidfunk
682d1761e7
Fixed further regression in blog plugin navigation
2023-09-04 09:53:43 +02:00
squidfunk
d2962d9551
Documentation
2023-09-03 12:55:11 +02:00
squidfunk
84cb91b21b
Fixed incorrect URLs when rendering paginated views
2023-09-03 12:48:46 +02:00
squidfunk
3f87fe0f5b
Fixed linking of blog posts in navigation (temporary hack)
2023-09-03 09:29:40 +02:00
squidfunk
a6033d1db6
Formatting
2023-09-02 18:13:55 +02:00
squidfunk
6e1c658a9d
Fixed footer links for blog sibling pages
2023-09-02 16:12:28 +02:00
squidfunk
0d3cd8a433
Removed readtime and lxml dependencies
2023-08-31 11:13:06 +02:00
squidfunk
4c6b004fe4
Refactored blog plugin view generation
2023-08-30 15:27:40 +02:00
squidfunk
acd70cf04a
Fixed dirty rebuilds for blog plugin
2023-08-27 12:56:28 +02:00
squidfunk
568a5c8e1e
Fixed blog title not being consistent in pagination
2023-08-27 12:47:44 +02:00
squidfunk
da21786694
Documentation
2023-08-27 11:44:30 +02:00
squidfunk
fbb7a5e894
Blog plugin pagination breaks when disabling directory URLs
2023-08-27 11:42:11 +02:00
squidfunk
6839f1cd97
Formatting
2023-08-23 16:02:43 +02:00
squidfunk
92fc7f651f
Formatting
2023-08-23 15:15:11 +02:00
squidfunk
06e8ccd979
Formatting
2023-08-23 10:41:44 +02:00
squidfunk
2d716453e0
Fixed generation of entrypoint in blog plugin
2023-08-22 16:47:54 +02:00
squidfunk
382101d8a3
Documentation
2023-08-22 15:41:30 +02:00
squidfunk
9f3efb8a59
Documentation
2023-08-22 07:59:36 +02:00
squidfunk
62d4a16067
Fixed edge cases for standalone case when using blog plugin
2023-08-22 07:56:33 +02:00
squidfunk
817caf0b61
Refactored blog plugin
2023-08-21 23:43:31 +02:00
squidfunk
7099ea60a9
Fixed several errors in blog plugin
2023-08-21 23:01:37 +02:00
squidfunk
4759c7aaaf
Fixed error when using git-revision-date-localized-plugin with blog
2023-08-21 18:23:00 +02:00
squidfunk
38b7282b20
Refactored blog plugin (+ other plugins)
2023-08-21 17:45:32 +02:00
squidfunk
15c024cbbf
Fixed draft blog posts appearing in tags index
2023-08-10 13:31:17 +02:00
squidfunk
04bde62c91
Added support for adding update dates to blog posts
2023-08-01 19:10:11 +02:00
squidfunk
eed928ea42
Merge branch 'master' into merge/piri-piri
2023-07-27 09:33:35 +02:00
squidfunk
ab178b2bc2
Improve plugin inter-op with external tools like mike
2023-07-24 12:29:16 +01:00
squidfunk
1bee037713
Merge of features tied to 'Piri Piri' funding goal'
2023-07-05 17:39:33 +02:00