Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove realm_main.html, better format on other templates #552

Merged
merged 1 commit into from
Mar 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.