mirror of
https://github.com/aljazceru/njump.git
synced 2026-01-14 20:14:26 +01:00
112 lines
3.7 KiB
HTML
112 lines
3.7 KiB
HTML
<!DOCTYPE html>
|
|
<html class="theme--default">
|
|
<meta charset="UTF-8" />
|
|
<head>
|
|
|
|
<title>Nostr Event {{.nevent}}</title>
|
|
<meta property="og:title" content="Nostr Event {{.nevent | escapeString}} by {{.metadata.Name | escapeString}}" />
|
|
<meta name="twitter:title" content="Nostr Event {{.nevent | escapeString}} by {{.metadata.Name | escapeString}}" />
|
|
<meta property="og:site_name" content="{{.metadata.Name | escapeString}} nostr homepage" />
|
|
{{ if .textImageURL }}
|
|
<meta property="og:image" content="{{.textImageURL | escapeString}}" />
|
|
<meta property="twitter:image" content="{{.proxy}}{{.textImageURL | escapeString}}" />
|
|
{{ else }}
|
|
<!---->
|
|
<meta property="twitter:card" content="summary" />
|
|
{{ if .image }}
|
|
<meta property="og:image" content="{{.image | escapeString}}" />
|
|
<meta name="twitter:image" content="{{.proxy}}{{.image | escapeString}}" />
|
|
{{end}} {{ if .video }}
|
|
<meta property="og:video" content="{{.video | escapeString}}" />
|
|
<meta property="og:video:secure_url" content="{{.video | escapeString}}" />
|
|
<meta property="og:video:type" content="video/{{.videoType | escapeString}}" />
|
|
{{end}}
|
|
{{end}}
|
|
{{ if .description }}
|
|
<meta property="og:description" content="{{.description | escapeString}}" />
|
|
<meta name="twitter:description" content="{{.description | escapeString}}" />
|
|
{{end}}
|
|
|
|
<link rel="canonical" href="https://nostr.com/{{.nevent | escapeString }}" />
|
|
|
|
{{template "head_common.html" }}
|
|
</head>
|
|
|
|
<body class="note">
|
|
{{template "top.html" .}}
|
|
|
|
<div class="container_wrapper">
|
|
<div class="container">
|
|
<div class="column column_content">
|
|
<div class="profile_intro">
|
|
<a href="/{{.npub | escapeString}}">
|
|
<div class="pic-wrapper">
|
|
<img class="pic" src="{{.metadata.Picture | escapeString}}" />
|
|
</div>
|
|
<div class="info-wrapper">
|
|
<div class="name">
|
|
{{.metadata.Name | escapeString}}
|
|
<span class="display"
|
|
>{{.metadata.DisplayName | escapeString}}</span
|
|
>
|
|
</div>
|
|
<div class="npub">{{.npubShort | escapeString}}</div>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
<div class="published_at">{{.createdAt | escapeString}}</div>
|
|
|
|
{{ if .parentNevent }}
|
|
<div class="reply_of">
|
|
In reply to {{ printf "%s%s" "nostr:" .parentNevent | escapeString |
|
|
basicFormatting }}
|
|
</div>
|
|
{{ end }}
|
|
|
|
<div class="field separator"></div>
|
|
|
|
<div class="field content">
|
|
{{ if (not (eq .subject ""))}}
|
|
<h1>{{.subject | escapeString}}</h1>
|
|
{{ end }}
|
|
{{ if (or (eq .kindID 30023) (eq .kindID 30024))}}
|
|
{{.content | mdToHTML }}
|
|
{{ else }}
|
|
{{.content | escapeString | basicFormatting }}
|
|
{{ end }}
|
|
</div>
|
|
|
|
<div class="field separator"></div>
|
|
|
|
<div class="field">
|
|
<div class="label">Author Public key</div>
|
|
{{.npub | escapeString}}
|
|
</div>
|
|
|
|
<div class="field advanced-switch-wrapper">
|
|
<input
|
|
type="checkbox"
|
|
id="advanced-switch"
|
|
class="advanced-switch"
|
|
/>
|
|
<label for="advanced-switch">X</label>
|
|
<label for="advanced-switch">Show more details</label>
|
|
</div>
|
|
|
|
{{template "details.html" .}}
|
|
|
|
<div class="field separator"></div>
|
|
</div>
|
|
|
|
{{template "column_clients.html" .}}
|
|
</div>
|
|
</div>
|
|
|
|
{{template "footer.html"}}
|
|
|
|
<script>
|
|
{{template "scripts.js"}}
|
|
</script>
|
|
</body>
|
|
</html>
|