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
b6972b8fa9
Formatting
2023-12-15 10:41:37 +01:00
squidfunk
adad8238c6
Fixed config types for blog plugin slugify functions
2023-12-10 15:19:11 +01:00
squidfunk
0d72b5f57e
Formatting
2023-12-07 21:50:13 +01:00
squidfunk
5b70a0cfcb
Fixe time being dropped from blog post dates
2023-12-07 21:46:36 +01: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
6be485c38f
Documentation
2023-11-26 15:22:43 +01:00
squidfunk
28ebcbfb59
Added support for linking authors in blog posts
...
Co-authored-by: alexvoss <4134224+alexvoss@users.noreply.github.com>
2023-11-26 14:29:38 +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
d43626a838
Switched blog plugin to generate Unicode-aware slugs
2023-11-24 09:06:36 +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
7bdd03a794
Fixed missing titles in views when blog posts have no h1 headings
2023-09-03 11:00:13 +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
64350569c9
Moved parser to own module
2023-08-31 11:31:15 +02:00
squidfunk
0d3cd8a433
Removed readtime and lxml dependencies
2023-08-31 11:13:06 +02:00
squidfunk
f2512ded4a
Fixed blog plugin compatibility with Python < 3.9
2023-08-30 16:06:27 +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
1b2ba4bcef
Formatting
2023-08-23 15:39:49 +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
6ee9df6e1a
Fixed rendering in blog plugin with markdown.extensions.toc
2023-08-22 15:20:10 +02:00
squidfunk
0704046536
Fixed compatibility with Python < 3.10
2023-08-22 11:22:56 +02:00
squidfunk
9f3efb8a59
Documentation
2023-08-22 07:59:36 +02:00