Skip to content

Commit

Permalink
chore: remove realm_main.html, better format on other templates (gnol…
Browse files Browse the repository at this point in the history
  • Loading branch information
thehowl authored and harry-hov committed Mar 7, 2023
1 parent 29937ad commit 3fe293f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 48 deletions.
21 changes: 14 additions & 7 deletions gnoland/website/views/funcs.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
</svg>
</a>
</div>
{{ end }} {{define "html_head" }}
{{ end }}
{{ define "html_head" }}
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" href="/static/css/app.css" />
<link rel="stylesheet" href="/static/css/normalize.css" />
Expand Down Expand Up @@ -96,16 +97,21 @@
});
})();
</script>
{{ end }} {{ define "header_logo" }}<a id="logo" href="/"
><img
{{ end }}
{{ define "header_logo" }}
<a id="logo" href="/">
<img
src="/static/img/logo.png"
alt="Gno.land"
title="Gno.land"
height="38"
/> </a
>{{ end }} {{ define "footer" }}
/>
</a>
{{ end }}
{{ define "footer" }}
<hr />
{{ end }} {{ define "js" }}
{{ end }}
{{ define "js" }}
<script type="text/javascript" src="/static/js/marked.min.js"></script>
<script type="text/javascript" src="/static/js/purify.min.js"></script>
<script type="text/javascript">
Expand All @@ -120,7 +126,8 @@
});
}
</script>
{{ end }} {{ define "subscribe" }}
{{ end }}
{{ define "subscribe" }}
<!-- mailchimp -->
<div id="mc_embed_signup">
<form
Expand Down
4 changes: 2 additions & 2 deletions gnoland/website/views/generic.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!DOCTYPE html>
<html>
<head>
<title>Gno.land - {{ .Data.Title }}</title>
<title>Gno.land - {{ .Data.Title }}</title>
{{ template "html_head" }}
</head>
<body onload="main()">
Expand All @@ -13,7 +13,7 @@
</div>
<div id="home">
<pre id="source">
{{ .Data.MainContent }}
{{- .Data.MainContent -}}
</pre>
</div>
{{ template "footer" }}
Expand Down
39 changes: 0 additions & 39 deletions gnoland/website/views/realm_main.html

This file was deleted.

0 comments on commit 3fe293f

Please sign in to comment.