Commit Graph

98 Commits

Author SHA1 Message Date
fiatjaf
5882462547 hlSkip and stop using @ prefix on names. 2024-01-02 10:06:44 -03:00
Daniele Tonon
6a2ff72985 Load profiles last notes asynchronously 2023-12-20 07:50:17 +01:00
Daniele Tonon
3e82d7c567 Remove style param from generateClientList 2023-12-15 23:46:57 +01:00
Daniele Tonon
e4cd448c4c Add an option to mdToHTML to strip links 2023-11-28 20:15:38 +01:00
Daniele Tonon
8a99017259 Add an option to basicFormatting to skip links
SQUASH
2023-11-28 20:14:22 +01:00
Daniele Tonon
35d053fc87 Support embedding profiles in external web pages
prifile design SQUASH
2023-11-28 20:14:22 +01:00
Daniele Tonon
0f6d6fa226 Support embedding notes in external web pages
SQASH
2023-11-27 12:20:49 +01:00
fiatjaf
6574fc3493 fix nip-05 links again. 2023-11-23 21:20:41 -03:00
fiatjaf
fb21b3cec3 smarter redirects: fill in nevent hints and also support hex ids directly. 2023-11-23 15:54:51 -03:00
fiatjaf
fb66025667 use nevent/nprofile codes with relay hints on client links. 2023-11-16 13:02:19 -03:00
fiatjaf
3732277241 render as telegram instant view in more cases. 2023-11-15 14:43:29 -03:00
fiatjaf
550739d8b1 have a link to the parent in telegram instant view. 2023-11-15 14:08:02 -03:00
fiatjaf
2350aa05a1 always use text-image on twitter.
nostr:note1j8kk28f6czmgfr2cxw4xrup2dl9ewxhwwqgw04k7wrg4psxa9tkq4h0emk
2023-11-11 22:02:15 -03:00
Daniele Tonon
a9e0c101fb Set 404 status for errors 2023-11-11 08:34:39 +01:00
Daniele Tonon
fa61e7394e Manage /<hex-id> paths
Fix 211628b6
2023-11-10 23:14:00 +01:00
Daniele Tonon
bf182d1a68 Show basic errors in a nice format 2023-11-10 22:54:48 +01:00
fiatjaf
dee60d4721 prevent telegram instant view when we could fit stuff in the big image card. 2023-11-08 19:30:43 -03:00
fiatjaf
2237c3e73a if a note is mostly about an image, render that image as a big image and remove the URL. 2023-11-08 18:52:37 -03:00
Daniele Tonon
12c1bebf99 Add support for live chat message, kind:1311 2023-11-07 15:13:05 +01:00
fiatjaf
9f0b3fa4af use naddr as code in client urls when param-replaceable and fix relay filtering for nip19.
fixes https://github.com/fiatjaf/njump/issues/14
2023-11-07 09:14:45 -03:00
Daniele Tonon
b5a4cfdfdb Add support for live events, kind:30311 2023-11-06 23:28:20 +01:00
fiatjaf
6d6defa419 default error when trying to render an unsupported templateId. 2023-11-06 18:01:13 -03:00
fiatjaf
274a6da19b improve error messages and fix wrong error being returned. 2023-11-06 11:17:45 -03:00
fiatjaf
604be14407 modularizing opengraph headers and fixing a bunch of small things on there. 2023-11-06 11:07:20 -03:00
fiatjaf
f349bd2d1d fix opengraph description missing due to wrongly assigned variable. 2023-11-06 10:14:22 -03:00
Daniele Tonon
4d72de0757 Increase the maximum length of titleizedContent and shorten it without splitting words 2023-11-05 19:30:06 +01:00
Daniele Tonon
af18eb1cf8 Remove image/video urls from titleizedContent 2023-11-05 19:27:52 +01:00
Daniele Tonon
d4740396cc Remove apex from the titleizedContent 2023-11-05 19:00:49 +01:00
Daniele Tonon
2bb637cbfd Revert "Optimize <title> for indexing"
This reverts commit f94ea2f7c2.
2023-11-05 19:00:49 +01:00
fiatjaf
59eae28ed3 NIP-31: display "alt" tag in Other template if available. 2023-11-05 08:56:17 -03:00
fiatjaf
2cacdc84e7 always open details for unknown (Other) events. 2023-11-05 07:58:28 -03:00
fiatjaf
aa50fb47b3 fix titleizedContent. 2023-11-04 18:57:05 -03:00
Daniele Tonon
f94ea2f7c2 Optimize <title> for indexing 2023-11-04 17:46:39 +01:00
fiatjaf
f9b4f03999 expose Kind1063Metadata fields and use that struct directly in templates. 2023-10-31 10:57:34 -03:00
fiatjaf
1301f38443 move opengraph head metadata stuff into its own template partial. 2023-10-30 22:51:13 -03:00
fiatjaf
2fecd4e5f2 turn kind1063Metadata into a struct. 2023-10-30 22:28:33 -03:00
fiatjaf
68e3722bbd turn user-agent style possibilities into constants. 2023-10-30 19:35:59 -03:00
Daniele Tonon
ad91d3b96b Add basic support for NIP-94 - File Metadata 2023-10-30 23:29:23 +01:00
Daniele Tonon
7aa229cebf Fix NIP-05 profiles rendering 2023-10-28 18:41:09 +02:00
fiatjaf
1c36a379fd use naked (no relay hints) nip19 codes for canonical URLs and move them to head_common. 2023-10-28 13:17:53 -03:00
fiatjaf
b6a3e8aaef use naked host when x-forwarded-host isn't present. 2023-10-27 11:19:33 -03:00
fiatjaf
f9e099c840 tailwind debug mode and build mode for prod and other adjustments. 2023-10-26 16:02:18 -03:00
fiatjaf
e7d1b37ca7 display nprofile in profile pages and hidden in event details. 2023-10-26 08:25:53 -03:00
fiatjaf
660952a338 syntax-highlight event JSON on the server. 2023-10-24 21:09:01 -03:00
fiatjaf
48137b0b1f tailwind stuff in the headers of each page template. 2023-10-23 23:32:18 -03:00
fiatjaf
c96cc28c33 fix ParentLink that was showing up all the time when it shouldn't. 2023-10-22 23:36:18 -03:00
fiatjaf
617cd5882a reorder some calls on renderEvent. 2023-10-21 14:38:52 -03:00
fiatjaf
d459769915 rename render -> render_event.go 2023-10-21 14:10:31 -03:00