From 38485ede265d22e11a316b4d66de1bf0feb945be Mon Sep 17 00:00:00 2001 From: Volpeon <git@volpeon.ink> Date: Sat, 24 Jul 2021 09:46:59 +0200 Subject: Update --- internal/port/tpl/gemini.html | 65 ------------------------------------------- 1 file changed, 65 deletions(-) delete mode 100644 internal/port/tpl/gemini.html (limited to 'internal/port/tpl/gemini.html') diff --git a/internal/port/tpl/gemini.html b/internal/port/tpl/gemini.html deleted file mode 100644 index 8d20da1..0000000 --- a/internal/port/tpl/gemini.html +++ /dev/null @@ -1,65 +0,0 @@ -<!doctype html> -<html> - <head> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1" /> - <title>{{ .Title }} - Gemini proxy</title> - <link rel="stylesheet" href="{{ .Assets.Style }}" /> - {{- template "_fonts.html" . -}} - </head> - <body class="{{ if .IsPlain }}is-plain{{ end }}"> - <header class="header header-base"> - <div class="location"> - <a class="location__prefix">gemini://</a><a class="location__prefix location__prefix--mobile">://</a> - {{- range $i, $item := .Nav -}} - {{- if ne $i 0 -}} - <span class="location__slash">/</span> - {{- end -}} - {{- if .Current -}} - <span class="location__uripart">{{ .Label }}</span> - {{- else -}} - <a href="{{ .URL }}/" class="location__uripart">{{ .Label }}</a> - {{- end -}} - {{- end -}} - </div> - <div class="actions"> - <div class="action"><button class="settings-btn">Settings</button></div> - </div> - </header> - - <main class="wrap"> - <div class="content{{ if not .IsPlain }} content--has-type-annotations{{ end }}"> - {{- range .Sections -}} - {{- if eq .Type "RAW_TEXT" -}} - <div class="section"><span class="section__type">```</span><pre class="section__content">{{- .Text -}}</pre></div> - {{- else if eq .Type "REFLOW_TEXT" -}} - <div class="section"><p class="section__content">{{- .Text -}}</p></div> - {{- else if eq .Type "LINK" -}} - {{- $linkCls := "link" -}} - {{- $url := string .URL -}} - {{- if or (hasSuffix $url ".jpg") (hasSuffix $url ".jpeg") (hasSuffix $url ".png") (hasSuffix $url ".gif") -}} - {{- $linkCls = "link--IMG" -}} - {{- end -}} - <div class="section"><span class="section__type"> =></span><a class="section__content {{ $linkCls }}" href="{{ .URL }}">{{- .Text -}}</a></div> - {{- else if eq .Type "HEADING_1" -}} - <div class="section"><span class="section__type"> #</span><h1 class="section__content">{{- .Text -}}</h1></div> - {{- else if eq .Type "HEADING_2" -}} - <div class="section"><span class="section__type"> ##</span><h2 class="section__content">{{- .Text -}}</h2></div> - {{- else if eq .Type "HEADING_3" -}} - <div class="section"><span class="section__type">###</span><h3 class="section__content">{{- .Text -}}</h3></div> - {{- else if eq .Type "LIST" -}} - <div class="section"><ul class="section__content"> - {{- range .Items -}} - <li>{{- . -}}</li> - {{- end -}} - </ul></div> - {{- end -}} - {{- end -}} - </div> - </main> - - {{- template "_modals.html" . -}} - - <script src="{{ .Assets.JS }}"></script> - </body> -</html> -- cgit v1.2.3-70-g09d2