mirror of
https://github.com/aljazceru/njump.git
synced 2026-02-11 09:04:26 +01:00
42 lines
1.4 KiB
HTML
42 lines
1.4 KiB
HTML
<meta charset="UTF-8" />
|
|
<!-- check https://nikstar.me/post/instant-view/ for more information on how this was set up -->
|
|
|
|
<!-- required stuff so telegram treats us like a medium.com article -->
|
|
<meta property="al:android:app_name" content="Medium" />
|
|
<meta property="article:published_time" content="{{.createdAt}}" />
|
|
|
|
<!-- stuff that goes in the actual telegram message preview -->
|
|
<meta property="og:site_name" content="{{.authorLong | escapeString}}" />
|
|
{{ if .description }}
|
|
<meta property="og:description" content="{{.description | escapeString}}" />
|
|
{{ end }}
|
|
<!---->
|
|
{{ if .image }}
|
|
<meta property="og:image" content="{{.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 }}
|
|
|
|
<!-- stuff that affects the content inside the preview window -->
|
|
<meta name="author" content="{{.metadata.Name}}" />
|
|
<meta name="telegram:channel" content="@nostr_protocol" />
|
|
|
|
<!-- basic content of the preview window -->
|
|
<article>
|
|
<h1>
|
|
{{ if .subject }} {{.subject | escapeString}} {{ else }} {{.metadata.Name |
|
|
escapeString}} on Nostr: {{ end }}
|
|
</h1>
|
|
|
|
{{ if .summary }}
|
|
<h2>{{ .summary }}</h2>
|
|
{{ end }}
|
|
|
|
<!---->
|
|
{{.content}}
|
|
</article>
|