Vincent Prouillet
8ba6c1c2a1
Procimage refactor ( #2086 )
...
* Refactor image proc
Closes #2066
* Add colocated_path to shortcodes
Closes #1793
2023-02-16 20:49:03 +01:00
Vincent Prouillet
60d8425470
Errors on empty taxonomies term
...
Closes #2085
2023-02-16 20:49:03 +01:00
Vincent Prouillet
f363ea1ae8
Filter out temp files or with no extensions from colocated assets
2023-02-16 20:49:03 +01:00
Vincent Prouillet
ee4cbb649a
Handle pages named index.md in sections
...
Closes #2082
2023-02-16 20:49:03 +01:00
Vincent Prouillet
608837cddf
Clippy + 1.63
2023-02-16 20:49:03 +01:00
Sosthène Guédon
3430d948f7
Fix needless_borrow warnings
2023-02-16 20:49:03 +01:00
Sosthène Guédon
e290616fad
content: Fix clippy warnings
2023-02-16 20:49:03 +01:00
Sosthène Guédon
0183ea548a
Fix clippy::manual_retain
2023-02-16 20:49:03 +01:00
Sosthène Guédon
faf00d1047
Fix clippy::derive_partial_eq_without_eq
2023-02-16 20:49:03 +01:00
Soso
405dda6722
Cargo fmt ( #2009 )
...
* Run cargo fmt
* Add cargo fmt --check to pipeline
2023-02-16 20:49:03 +01:00
mscherer
da5c4c496a
Filter more than 1 footnote in summary ( #2017 )
...
If the summary contains more than 1 footnote, only the 1st is
removed, and so dangling links exists for all the others.
2023-02-16 20:49:03 +01:00
mscherer
291c93e4ba
Do not overfilter HTML when removing footnotes ( #2008 )
...
If the summary contain HTML using <sup> like "the 1<sup>st</<sup>", it get
filtered as the regexp that remove footnotes is not precise
enough to remove just the footnotes.
2023-02-16 20:49:03 +01:00
Ever
a0f7dfed97
Fix current_url in taxonomy term ( #2000 )
...
* Fix current_url in taxonomy term
* add tests
2023-02-16 20:49:03 +01:00
bemyak
aecbc10c9b
Add sorting by slug ( #1926 )
2023-02-16 20:49:03 +01:00
Vincent Prouillet
ee961056c8
Simplify taxonomy term struct
2023-02-16 20:49:03 +01:00
Eric Scouten
5fb0867b3a
Get term fn ( #1964 )
...
* Add new `get_taxonomy_term` global function
* Update per @Keats feedback to make `page_count` available all the time.
2023-02-16 20:49:03 +01:00
Andrew Browne
7b562fcd2c
Add slugify.paths_keep_dates option. Update docs.
...
Manual testing:
Existing test_site/config.toml
http://127.0.0.1:1111/posts/a-post-with-dates
====
--- a/test_site/config.toml
+++ b/test_site/config.toml
@@ -18,6 +18,7 @@ extra_syntaxes_and_themes = ["syntaxes", "highlight_themes"]
[slugify]
paths = "on"
+paths_keep_dates = true
taxonomies = "on"
anchors = "on"
http://127.0.0.1:1111/posts/2016-10-08-a-post-with-dates
====
--- a/test_site/config.toml
+++ b/test_site/config.toml
@@ -17,7 +17,8 @@ highlight_theme = "custom_gruvbox"
extra_syntaxes_and_themes = ["syntaxes", "highlight_themes"]
[slugify]
-paths = "on"
+paths = "off"
+paths_keep_dates = true
taxonomies = "on"
anchors = "on"
http://127.0.0.1:1111/posts/2016-10-08_a-post-with-dates
====
--- a/test_site/config.toml
+++ b/test_site/config.toml
@@ -17,7 +17,8 @@ highlight_theme = "custom_gruvbox"
extra_syntaxes_and_themes = ["syntaxes", "highlight_themes"]
[slugify]
-paths = "on"
+paths = "safe"
+paths_keep_dates = true
taxonomies = "on"
anchors = "on"
http://127.0.0.1:1111/posts/2016-10-08_a-post-with-dates
2023-02-16 20:49:03 +01:00
Andrew Browne
e4bab1f21c
Cleanup code to generate page slug. ( #1936 )
2022-08-14 16:08:48 +02:00
Vincent Prouillet
5873e0319c
Add title_bytes sorting method
2022-06-13 23:37:39 +02:00
bemyak
49b310764a
Always follow symlinks ( #1883 )
2022-06-09 21:47:52 +02:00
bemyak
8029cf891a
Fix taxonomy current path ( #1882 )
...
* Fix current_path and current_url for taxonomies
* Fix language duplication in get_url fn
2022-06-09 21:47:03 +02:00
bemyak
6989eb73ab
Fix clippy lint warnings ( #1888 )
2022-06-04 20:29:33 +02:00
Vincent Prouillet
76b0b5f5dd
Clippy
2022-05-11 22:34:36 +02:00
Vincent Prouillet
2291c6e9c3
Fix tests
2022-05-10 22:33:57 +02:00
Vincent Prouillet
beb93f2b0a
Expose backlinks
2022-05-08 14:10:29 +02:00
Vincent Prouillet
e0043a7351
Ignore section with render=false when looking for path collisions
...
Closes #1656
2022-05-06 22:45:05 +02:00
Vincent Prouillet
a0630efb76
Rename links utils mod
2022-05-02 22:07:47 +02:00
Vincent Prouillet
e8b04bb11a
Serialize transparent field in section front-matter
...
Closes #1840
2022-05-02 21:55:43 +02:00
Vincent Prouillet
bad0127c9f
Build taxonomies as pages are added ( #1841 )
2022-05-02 16:51:46 +02:00
Vincent Prouillet
3a0800c702
Pass content_path to populate_library
2022-04-27 22:27:19 +02:00
Vincent Prouillet
84951d39e3
Allow taxonomies to not be rendered
...
Closes #1750
2022-04-27 21:11:42 +02:00
Vincent Prouillet
27a200bb4e
Some more refactoring
2022-04-26 23:13:27 +02:00
Vincent Prouillet
c14b1fa746
Remove duplicate code
2022-04-26 22:27:20 +02:00
Vincent Prouillet
9ab1bf2e4e
Re-organise content and remove slotmap indirection level ( #1827 )
2022-04-26 20:51:04 +02:00
Vincent Prouillet
10aba20fe5
Slotmap refactor
2018-10-03 16:29:29 +02:00
Christian Friedrich Coors
85529186e4
Fix some clippy warnings
2018-09-30 21:15:09 +02:00
Vincent Prouillet
9461769bcc
Parse date only once for pages
2018-09-21 09:40:52 +02:00
Vincent Prouillet
14560f224e
No clone when rendering rss feed
2018-09-20 22:47:43 +02:00
Vincent Prouillet
69a9a352a0
Only compute reading analytics once...
2018-09-20 18:27:56 +02:00
Vincent Prouillet
6903975202
Do not copy pages of sections when rendering taxonomies
2018-09-19 09:24:35 +02:00
Vincent Prouillet
38b30eb144
Update deps and fix deprecrations
2018-09-09 19:43:14 +02:00
Vincent Prouillet
a6adbabb3d
Fix benches
2018-09-03 19:05:24 +02:00
Thomas Hurst
c069bfdafa
Rework summary handling.
...
Push summary handling into Markdown parsing, identifying the presence
of one by giving its length in the rendered markup.
Hopefully a better fix for #376 .
2018-08-22 17:34:32 +01:00
Vincent Prouillet
e0291cec65
Add Swift, MiniZinc syntax and update the rest
...
Also fix tests
Close #367 , #372
2018-08-15 15:42:43 +02:00
Nathan Ringo
9df5da4697
Fixes bug with extra syntaxes in non-root section, adds tests.
2018-08-14 02:12:04 -05:00
cmal
31479ff23b
Remove condition that's always true (optimization)
2018-08-09 11:58:09 +02:00
cmal
3b9c8c71b5
Revert "Start implementing _index folder for section content/assets"
...
This reverts commit c7156a84f0
.
2018-08-09 11:51:01 +02:00
cmal
c7156a84f0
Start implementing _index folder for section content/assets
2018-08-08 10:51:40 +02:00
cmal
8473dff23d
Implement assets colocation in section
2018-08-07 12:12:12 +02:00
Vincent Prouillet
60a52fd2cc
Some intellij reformatting
2018-07-31 15:30:49 +02:00