Gunwant Jain
5d45bf8ebf
base.html: format file
...
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-01-07 05:02:57 +05:30
Gunwant Jain
d3106f3fce
index.html: add a frontend for pastes
...
a simple, minimalistic frontend for pasting texts the objectively easy
way for those not comfortable with CLI.
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-01-06 07:08:36 +05:30
Gunwant Jain
ae8bd544de
index: use templates for the index route
...
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-01-06 05:16:28 +05:30
Gunwant Jain
db08f5c8a9
pretty.html: refactor
...
Make actual use of the Tera templating, when youre intending to use it.
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-01-06 05:14:12 +05:30
Gunwant Jain
cfd2fa15b6
pretty.html: corrections for optimum lighthouse results
...
added meta tag for SEO
use font-display: swap (almost) for faster contentful paints
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-01-06 04:10:59 +05:30
Gunwant Jain
7cfe364b8c
pretty.html: fetch stylesheet only if the var is declared
...
otherwise the app will perform an unnecessary 404 request everytime a
theme is not declared
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-01-06 00:58:10 +05:30
Gunwant Jain
5277c60b81
pretty.html: use jsdelivr instead of cloudfare
...
Apparently, Cloudfare took 2X time when fetching content of similar
sizes.
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-01-06 00:50:37 +05:30
Gunwant Jain
13da6056d6
pretty.html: add bg color for selected text
...
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-01-03 09:24:22 +05:30
Gunwant Jain
153aaf2215
pretty.html: add aez, line numbers, default font
...
Should look a lot cleaner now.
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-01-03 05:17:41 +05:30
Gunwant Jain
c138e9ad3e
fix MIME types and add examples
...
cpp files were getting recognised as "text/csrc". checking subtrings is
a better way to compare MIME types.
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2020-12-29 21:37:54 +05:30
Gunwant Jain
855a0faec2
routes: implement syntax highlighting for plaintext files
...
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2020-12-29 19:35:21 +05:30