Commit Graph

12 Commits

Author SHA1 Message Date
Ana Gelez
5f8d6b8e0e Rust 2018! () 2020-01-21 07:02:03 +01:00
Violet White
e53574970c Fix issue ()
* Fix issue 

* Add canonical links to blogs too
2019-12-16 22:55:02 +01:00
fdb-hiroshima
773fbfe7c8 cache local instance ()
* cache local instance

fix 

* don't use local instance cache for plm

* use instance cache for plm, but initialize it

* cargo fmt
2019-05-10 21:59:34 +01:00
fdb-hiroshima
c19c094e0c
add diverse links and meta to head () 2019-04-09 15:33:34 +02:00
Baptiste Gelez
d7de09ab81 Fix Atom feed link on user page () 2019-04-07 05:53:38 +02:00
Baptiste Gelez
fe6e69d7c4
Add a fqn field to blogs and users ()
Fixes 
2019-03-06 18:28:10 +01:00
Baptiste Gelez
e28371bbe4
Add a page listing people someone follows ()
Nothing exceptional, the layout is the same as the followers page.

Fixes 
2019-02-26 13:13:00 +01:00
Baptiste Gelez
7eef4643c8
Update rocket_i18n and add gettext_macros ()
Internationalization now uses proc-macros that generate the .pot file
automatically.
2019-02-02 15:23:50 +01:00
Baptiste Gelez
b0089e59b7
Remove useless pagination routes ()
Rocket 0.4 let us have routes with optional query parameter
2018-12-13 22:20:19 +01:00
fdb-hiroshima
e9f2f769be Add microformat tags ()
Close  
Adding `<div>` might have broken the layout in some places. I've tried to fix it, tell me if I missed it somewhere
2018-12-08 21:52:46 +01:00
Trinity Pointard
b4e4b497ee Works on template
Use uri! to generate links instead of hardcoded urls
Fix 
Fix invalid links needing to be POST forms
Translate login message for boost and like directly from template
Put js for search in its own file
2018-12-07 12:10:03 +01:00
Baptiste Gelez
70af57c6e1
Use Ructe ()
All the template are now compiled at compile-time with the `ructe` crate.

I preferred to use it instead of askama because it allows more complex Rust expressions, where askama only supports a small subset of expressions and doesn't allow them everywhere (for instance, `{{ macro!() | filter }}` would result in a parsing error).

The diff is quite huge, but there is normally no changes in functionality.

Fixes  and unblocks  and 
2018-12-06 18:54:16 +01:00