Commit graph

291 commits

Author SHA1 Message Date
Magnus Hoff
2cb80e2bac Add sitemap. This fixes #3 2017-10-13 15:06:16 +02:00
Magnus Hoff
5f93f3d744 Better fix for broken editor styling 2017-10-13 14:46:54 +02:00
Magnus Hoff
7aad6331c7 Fix broken styling of editor 2017-10-12 15:02:02 +02:00
Magnus Hoff
4ed28f99f3 Enable table extension for markdown, for issue #4 2017-10-12 14:56:43 +02:00
Magnus Hoff
eccde9d161 Update styling
Now supports different widths for different elements. Used to make tables have their own width
2017-10-12 14:50:19 +02:00
Magnus Hoff
1aeba7b2e3 Simplify _changes list 2017-10-03 22:31:27 +02:00
Magnus Hoff
f22ffc112a Add basic /_changes page 2017-10-03 10:37:18 +02:00
Magnus Hoff
370cbd0c24 Add default implementations for dispatch methods in Resource trait 2017-10-03 10:36:21 +02:00
Magnus Hoff
f7eada496e Remove temporary table that was accidentally kept around 2017-10-03 10:31:54 +02:00
Magnus Hoff
2a5f98d43e Slightly less mindless copying 2017-10-02 21:47:21 +02:00
Magnus Hoff
b21a7ccda4 Don't try to handle fragment in router.
It is strictly a client-side mechanism
2017-10-02 21:35:52 +02:00
Magnus Hoff
cdcdf8e72f Refactor server-side initiated edit mode.
Implement support for opening articles for editing without javascript
2017-10-02 21:30:31 +02:00
Magnus Hoff
413675e152 Add link to /_new in footer 2017-10-02 17:17:40 +02:00
Magnus Hoff
02dd55df39 Cleanup 2017-10-02 17:11:18 +02:00
Magnus Hoff
1d485798eb Implement /_new, for creating new articles without making up a URL first 2017-10-02 17:08:59 +02:00
Magnus Hoff
ce1bbee22c Sort some lists of things lexicographically 2017-10-01 23:26:57 +02:00
Magnus Hoff
7562961093 Percent decode path segments of URL 2017-10-01 23:24:16 +02:00
Magnus Hoff
804bfa074c Compile release with panic=abort.
Unwinding is never utilized, so no reason to compile it in.

This saves 3% on the binary size, and should also generate slightly faster code
2017-10-01 22:50:44 +02:00
Magnus Hoff
dc4a136336 Cleanup 2017-10-01 22:35:06 +02:00
Magnus Hoff
17e1186fc8 Tweak styling. Add link to Sausagewiki repo 2017-10-01 22:15:34 +02:00
Magnus Hoff
eaba024c3a Style tweaks 2017-09-27 19:46:37 +02:00
Magnus Hoff
f205de053a Allow edit requests to include credentials 2017-09-26 13:39:44 +02:00
Magnus Hoff
3c0186ea1a Fix styling bugs 2017-09-26 09:50:59 +02:00
Magnus Hoff
069ea6daa7 Style tweaks.
Left and right padding. Contain images within block
2017-09-26 09:35:15 +02:00
Magnus Hoff
5b739ff311 Typo 2017-09-25 16:47:13 +02:00
Magnus Hoff
2e088e2e32 Change email-link in README.md 2017-09-25 16:34:21 +02:00
Magnus Hoff
85a4064d4c Flesh out README.md a bit 2017-09-25 15:41:14 +02:00
Magnus Hoff
8d7e1a6bb7 Install required dependencies for travis 2017-09-22 16:45:41 +02:00
Magnus Hoff
86ab55a49b Try configuring travis for musl again 2017-09-22 16:40:49 +02:00
Magnus Hoff
451c7eeb7e Specify target triple for rust versions 2017-09-22 16:19:34 +02:00
Magnus Hoff
daef9786e3 Offer Sausagewiki under GPL3 2017-09-22 16:16:40 +02:00
Magnus Hoff
5c900039d7 Ask Travis to build and publish releases 2017-09-22 16:11:21 +02:00
Magnus Hoff
cf123f40eb Fixes for Chrome 2017-09-21 12:18:09 +02:00
Magnus Hoff
cd784e34c3 Bugletfixes 2017-09-21 12:11:08 +02:00
Magnus Hoff
9d0ca63aa9 When inventing a title from a slug, add some capitalization 2017-09-21 11:42:09 +02:00
Magnus Hoff
ad4addfc8c Implement support for inserting new articles 2017-09-21 11:38:52 +02:00
Magnus Hoff
0a3cb53a66 Add NewArticleResource
Serve placeholder page for non-existing articles.
Redirect user-generated slugs to canonical slugs.
2017-09-21 10:58:54 +02:00
Magnus Hoff
01dafa7d37 Special case front page so it never gets a non-empty slug 2017-09-21 10:23:30 +02:00
Magnus Hoff
338f8346aa Style tweaks 2017-09-21 10:19:03 +02:00
Magnus Hoff
3feed530ff Implement support for editing page title 2017-09-21 10:09:57 +02:00
Magnus Hoff
e82350e499 Ignore working file for SQLite 2017-09-21 10:07:25 +02:00
Magnus Hoff
631e76324b Cleanup. Make use of .first() and .optional() from Diesel 2017-09-20 23:40:07 +02:00
Magnus Hoff
debf44623c Automatically generate slugs for articles based on title 2017-09-20 23:31:25 +02:00
Magnus Hoff
ea28f4f4f7 Fix buggy slugs_index 2017-09-20 23:30:50 +02:00
Magnus Hoff
53bc5b2df1 Add missing autocomplete=off to prevent Firefox from messing things up completely 2017-09-20 11:54:47 +02:00
Magnus Hoff
e1d823d22e Implement lookup and redirect of articles by slugs 2017-09-20 11:54:26 +02:00
Magnus Hoff
ada70b7671 Cleanup 2017-09-17 15:43:31 +02:00
Magnus Hoff
bb334df128 Cleanup based on new version of Diesel 2017-09-17 12:19:48 +02:00
Magnus Hoff
88eda46d95 Remove all usage of futures::BoxFuture, which is deprecated 2017-09-17 12:08:42 +02:00
Magnus Hoff
551cc22383 Remove all calls to Future::boxed(), which is deprecated 2017-09-17 11:45:35 +02:00