Optimize assets

This commit is contained in:
Thomas Miceli
2023-03-23 16:00:48 +01:00
parent 0e0e92b88f
commit 6c981570a1
14 changed files with 6547 additions and 791 deletions

View File

@ -3,14 +3,10 @@
<html lang="en" class="h-full">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="http://localhost:3000/favicon.svg" />
<link rel="icon" type="image/svg+xml" href="{{ asset "favicon.svg" }}" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
html {
background-color: #0d1117;
}
</style>
<script type="module" src="http://localhost:3000/main.js"></script>
<link rel="stylesheet" href="{{ asset "main.css" }}" />
<script type="module" src="{{ asset "main.js" }}"></script>
{{ if .htmlTitle }}
<title>{{ .htmlTitle }} - Opengist</title>

View File

@ -146,9 +146,6 @@
<p class="text-xs font-normal text-gray-400">Clone with Git using an SSH key.</p>
</div>
{{ end }}
<div class="text-slate-300 block px-4 py-2 text-sm hover:bg-gray-700 gist-menu-item" role="menuitem" id="gist-menu-embed" data-link="(soon)"><p>Embed</p>
<p class="text-xs font-normal text-gray-400">Embed this gist in your website. (soon)</p>
</div>
<div class="text-slate-300 block px-4 py-2 text-sm hover:bg-gray-700 gist-menu-item" role="menuitem" id="gist-menu-share" data-link="{{ .httpCopyUrl }}"><p>Share</p>
<p class="text-xs font-normal text-gray-400">Copy shareable link for this gist.</p>
</div>

View File

@ -44,6 +44,6 @@
</main>
</div>
<script type="module" src="http://localhost:3000/editor.js"></script>
<script type="module" src="{{ asset "editor.js" }}"></script>
{{ template "footer" .}}

View File

@ -81,7 +81,6 @@
</main>
</div>
<script type="module" src="http://localhost:3000/editor.js"></script>
<script type="module" src="{{ asset "editor.js" }}"></script>
{{ template "footer" .}}