Commit Graph

259 Commits

Author SHA1 Message Date
fiatjaf
8cd313572f adjust templateMapping. 2023-10-21 08:25:58 -03:00
fiatjaf
b6225e027d tmpl migration: homepage.html 2023-10-21 08:25:04 -03:00
fiatjaf
a04f82764a rename variable CanonicalHost to Domain. 2023-10-21 07:47:37 -03:00
fiatjaf
6aa1440b05 tmpl migration: note.html 2023-10-21 07:45:44 -03:00
fiatjaf
493ee21465 DISK_CACHE_PATH as an environment variable. 2023-10-21 07:45:03 -03:00
fiatjaf
bc947e29d8 mass tmpl migration: partials, other.html and archive.html. 2023-10-21 00:47:19 -03:00
fiatjaf
4b1dddebae make robots.txt rendering a simple string thing. 2023-10-19 21:11:26 -03:00
fiatjaf
7293103fc7 first step in the migration to templ. 2023-10-19 21:11:26 -03:00
fiatjaf
8c7333e49f add arabic, hebrew, chinese and others stuff. 2023-10-19 21:10:58 -03:00
fiatjaf
3e762a8eea use NotoSans for all text except when hiragana or katakana is detected, then use NotoSansJP -- and break japanese characters even without whitespace. 2023-10-19 15:01:14 -03:00
0xtr
9882be5cb6 Add Dockerfile (#8)
Co-authored-by: fiatjaf_ <fiatjaf@gmail.com>
2023-10-19 08:43:16 -03:00
fiatjaf
9037b60663 rename CANONICAL_HOST variable to DOMAIN (with backwards-compatible fallback). 2023-10-19 08:35:38 -03:00
Daniele Tonon
3771ac2ef6 Update README 2023-10-17 20:51:43 +02:00
Daniele Tonon
ab6b7628e6 Update homepage with Twitter and Telegram share 2023-10-17 20:51:32 +02:00
Daniele Tonon
c70baa7918 Add html to prettier and prettify the templates 2023-10-17 19:05:11 +02:00
fiatjaf
95d348ef07 revert "strip image and video urls from text if they are at the end of content."
this reverts commit 93c40648c0.

we need saner code before we can do these kinds of tweaks, I don't know if this would break something.
2023-10-17 07:10:57 -03:00
fiatjaf
93c40648c0 strip image and video urls from text if they are at the end of content. 2023-10-16 07:54:23 -03:00
Daniele Tonon
908aa165c2 Add favicon(s) 2023-10-14 09:46:17 +02:00
fiatjaf
6f9d9f2267 trim spaces from titleized descriptions. 2023-10-13 21:56:27 -03:00
fiatjaf
8f007bbe04 fix image and url matching by reusing the utils.go regexes. 2023-10-13 21:56:14 -03:00
fiatjaf
fe51c2c5ff rename LICENCE=>LICENSE 2023-10-10 13:53:05 -03:00
fiatjaf
fe646af02c encode displayed nevent with seen-on relays.
fixes https://github.com/fiatjaf/njump/issues/7
2023-10-10 13:52:16 -03:00
fiatjaf
c7b7351d5b replace "wrote" with "on Nostr" 2023-10-10 11:35:28 -03:00
fiatjaf
ada25605f9 add nostter and nosotros, remove agora. 2023-10-10 11:30:18 -03:00
fiatjaf
121faa0798 trim twitter images so they fit better in the new twitter preview image boxes. 2023-10-10 09:36:08 -03:00
fiatjaf
75189d8bec querystring helper for debugging image generation. 2023-10-10 09:35:47 -03:00
fiatjaf
e5d37ece3c placeholder favicon handler. 2023-10-10 09:35:16 -03:00
fiatjaf
637cfa55e9 make "s" (Settings) a global template function so we don't have to pass it around everywhere. 2023-10-07 08:20:10 -03:00
fiatjaf
f169c01e67 fix .metadata.Website without a leading "https://" 2023-10-07 08:15:52 -03:00
fiatjaf
b6a95e46db fix unwanted chaining of canceled contexts. 2023-10-03 15:40:26 -03:00
fiatjaf
f7f231dfc6 rearrange relays and add public relaying.io 2023-10-03 15:39:45 -03:00
fiatjaf
7088986f21 strip querystring from relays. 2023-10-03 15:33:35 -03:00
Daniele Tonon
6e9bfc7e62 Review the positioning and design of "See on" 2023-10-03 16:24:20 +02:00
Daniele Tonon
a85c5fa479 Remove exluded relays from "Seen on" list 2023-10-03 16:23:38 +02:00
fiatjaf
28e926b21d stop redirecting to clients automatically. 2023-10-02 15:58:39 -03:00
fiatjaf
d8ccd2a342 fix title for non-twitter previews. 2023-10-02 15:23:56 -03:00
fiatjaf
9904686055 display seenOn relays in event pages with clickable links. 2023-10-02 15:21:41 -03:00
fiatjaf
4f3141f66a fetch seenOn relays for individual events. 2023-10-02 15:17:39 -03:00
fiatjaf
08c16d371c update go-nostr to get relay information from pool. 2023-10-02 09:24:07 -03:00
fiatjaf
28ddb1cefd instead of arrows in quotes, use a nicer unicode block character. 2023-10-01 16:11:17 -03:00
fiatjaf
3439864780 fix rendering quotes. 2023-10-01 16:02:33 -03:00
fiatjaf
c20e1db65c move stuff from text.go to render_image.go 2023-10-01 15:57:47 -03:00
fiatjaf
a0a528d073 rename generate => renderImage 2023-10-01 15:56:38 -03:00
fiatjaf
9901c47e46 support .mov videos on normal notes. 2023-10-01 15:56:35 -03:00
Daniele Tonon
abd8102c78 Use NotoSansJP to render OG image 2023-10-01 18:12:23 +02:00
fiatjaf
fd08783edd discriminate iframely. 2023-09-24 15:39:12 -03:00
fiatjaf
208506ff16 move grabData() into a separate file. 2023-09-24 15:39:03 -03:00
fiatjaf
6ce339e242 cors everywhere because why not. 2023-09-24 15:38:45 -03:00
fiatjaf
475b614653 oembed discovery. 2023-09-24 14:12:10 -03:00
fiatjaf
892065339d fix grabData() bug with npub codes being trimmed. 2023-09-24 13:58:03 -03:00