mirror of
https://github.com/aljazceru/njump.git
synced 2026-01-21 23:24:30 +01:00
96 lines
3.0 KiB
HTML
96 lines
3.0 KiB
HTML
<!DOCTYPE html>
|
|
<html class="theme--default">
|
|
<meta charset="UTF-8" />
|
|
<head>
|
|
<title>Nostr Relay {{.Hostname}} - {{.Info.Name}}</title>
|
|
<meta property="og:title" content="{{.Hostname}} - nostr relay" />
|
|
<meta name="twitter:title" content="{{.Hostname}} - nostr relay" />
|
|
<meta property="og:site_name" content="{{.Hostname}} - nostr relay" />
|
|
{{ if not (eq "" .Info.Icon) }}
|
|
<meta property="og:image" content="{{.Info.Icon}}" />
|
|
<meta property="twitter:image" content="{{.Proxy}}{{.Info.Icon}}" />
|
|
{{end}} {{ if not (eq "" .Info.Description) }}
|
|
<meta property="og:description" content="{{.Info.Description}}" />
|
|
<meta name="twitter:description" content="{{.Info.Description}}" />
|
|
{{end}}
|
|
<meta property="twitter:card" content="summary" />
|
|
|
|
<link
|
|
rel="sitemap"
|
|
type="application/xml"
|
|
title="Sitemap for {{.Hostname}}"
|
|
href="/r/{{.Hostname}}.xml"
|
|
/>
|
|
|
|
{{template "head_common" .}}
|
|
</head>
|
|
|
|
<body class="profile">
|
|
{{template "top" .}}
|
|
|
|
<div class="container_wrapper">
|
|
<div class="container">
|
|
<div class="column columnA">
|
|
<div class="info-wrapper">
|
|
{{.Info.Name}}
|
|
<span class="display"> </span>
|
|
</div>
|
|
<div class="pic-wrapper">
|
|
<img class="pic" src="{{.Info.Icon}}" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="column column_content">
|
|
<div class="field info-wrapper">
|
|
<h1 class="name">{{.Info.Name}}</h1>
|
|
</div>
|
|
<div class="field separator long"></div>
|
|
|
|
<div class="field">wss://{{.Hostname}}</div>
|
|
<div class="field about">{{.Info.Description}}</div>
|
|
<div class="field separator long"></div>
|
|
|
|
{{ if not (eq "" .Info.PubKey) }}
|
|
<div class="field">
|
|
<div class="label">Public Key</div>
|
|
{{.Info.PubKey}}
|
|
</div>
|
|
{{ end }}
|
|
<!---->
|
|
{{ if not (eq "" .Info.Contact) }}
|
|
<div class="field">
|
|
<div class="label">Contact</div>
|
|
<a href="{{.Info.Contact}}">{{.Info.Contact}}</a>
|
|
</div>
|
|
{{ end }}
|
|
|
|
<div class="field separator"></div>
|
|
|
|
<div class="field last_notes">
|
|
<h2>Last Notes</h2>
|
|
{{range $i, $ee := .LastNotes}}
|
|
<a href="/{{$ee.Nevent}}" class="note">
|
|
<div class="header">
|
|
<div class="published_at">{{$ee.CreatedAtStr}}</div>
|
|
<br />
|
|
{{if $ee.IsReply}}
|
|
<div class="is_reply">- reply</div>
|
|
{{end}}
|
|
<div class="npub">
|
|
by <span href="/{{$ee.Npub}}">{{$ee.NpubShort}}</span>
|
|
</div>
|
|
</div>
|
|
<div class="content">{{$ee.Preview}}</div>
|
|
</a>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
|
|
{{template "clients" .ClientsPartial}}
|
|
</div>
|
|
</div>
|
|
|
|
{{template "footer" .}}
|
|
</body>
|
|
</html>
|