Hannu Hartikainen
6708f7637c
Implement get_file_hash ( #1044 )
...
* Fix get_url(cachebust=true)
The previous implementation looked for static files in the wrong place.
Look in static_path, output_path and content_path. If file can't be
found in any of them, print a warning to stderr and fall back to using
a timestamp.
Add a test to ensure it also works in practice, not just in theory.
* Implement get_file_hash
2020-06-09 22:38:29 +02:00
Bob
4aa2ba84fc
Let toc is visable through Page & Section variables in templates ( #818 )
...
* Let toc is visable through Page & Section variables in templates
* Removed the current toc variable from page & section
2020-02-02 17:44:38 -08:00
Vincent Prouillet
705a30aa8d
Move toc to be a rendering page/section variable level
2019-02-09 20:49:18 +01:00
Vincent Prouillet
b3004c69ef
Fix broken taxonomies pagination
...
Closes #533
2018-11-29 20:24:46 +01:00
Vincent Prouillet
59f3e54e4e
Add test for nested page_template
2018-11-07 20:48:39 +01:00
Vincent Prouillet
56af4ca7f9
Add page_template to sections
...
To override all child pages
Closes #397
Tests from PR #434
2018-11-07 19:42:23 +01:00
Vincent Prouillet
f84ae7c93b
Rename all occurrences of gutenberg to zola in code
2018-10-18 22:50:06 +02:00
Vincent Prouillet
83b04a561c
Expose relative path of pages & sections
...
Closes #485
2018-10-18 18:00:40 +02:00
Vincent Prouillet
f14dbcbdf4
section.subsections is now an array of paths
...
Close #446
Close #260
Close #478
Close #284
Close #480
2018-10-15 22:28:27 +02:00
Greizgh
fec58054b4
Inject config in robots.txt context
...
This allow to use base_url in robots.txt, to reference a sitemap for
example.
2018-10-02 08:15:26 +02:00
Vincent Prouillet
2cf99c3cfc
Fix robots.txt template for real this time
2018-10-01 17:50:42 +02:00
Vincent Prouillet
e1aaed3c04
Remove paginator.pagers
2018-09-30 23:49:32 +02:00
Vincent Prouillet
a11f8232de
Fix robots.txt not being loaded in Tera
...
Closes #443
2018-09-30 19:05:59 +02:00
Vincent Prouillet
a6adbabb3d
Fix benches
2018-09-03 19:05:24 +02:00
Tim DuBois
e99bdd07ac
Update pagination for test_site posts
2018-08-27 21:37:50 +02:00
Vincent Prouillet
1ae0702494
Custom taxonomies ( #330 )
2018-07-16 10:54:05 +02:00
Vincent Prouillet
16f658c70c
Move test_site and turn rebuild.rs into a component
2018-01-29 18:40:12 +01:00
Vincent Prouillet
c3b525745e
Convert project to a workspace
2017-07-01 16:47:41 +09:00
Vincent Prouillet
1f1fc3f454
Remove section from page context
2017-06-29 22:19:54 +09:00
Vincent Prouillet
e76ee7ae4a
Pass section in context when rendering a page if there is one
2017-06-16 21:53:54 +09:00
Vincent Prouillet
be784bbaa3
Refactor taxonomies
...
Fix #66
2017-05-16 13:39:42 +09:00
Vincent Prouillet
2d4cba5b2d
Make index a section like any other
2017-05-08 19:43:31 +09:00
Vincent Prouillet
a3318d4b56
Pagination
2017-05-03 20:00:50 +09:00
Vincent Prouillet
6e9a9eaa1f
Fix prev/next
2017-05-01 17:10:22 +09:00
Vincent Prouillet
6036927c19
Add more sublime syntaxes
...
Also fix gutenberg serve that has been broken (not
re-rendering content) for quite some time now.
2017-04-21 16:24:09 +09:00
Vincent Prouillet
7aeebcc981
Add current_url and current_path
...
To every templates, useful when doing
navigation to know which link is currently
active
2017-04-06 14:40:46 +09:00
Vincent Prouillet
7e496878e5
Sections
...
Parse _index.md files as sections and render them
2017-03-19 19:20:24 +09:00