mirror of
https://github.com/thomiceli/opengist.git
synced 2025-06-13 05:47:12 +02:00
Optimize assets
This commit is contained in:
10
templates/base/base_header.html
vendored
10
templates/base/base_header.html
vendored
@ -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>
|
||||
|
3
templates/base/gist_header.html
vendored
3
templates/base/gist_header.html
vendored
@ -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>
|
||||
|
2
templates/pages/create.html
vendored
2
templates/pages/create.html
vendored
@ -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" .}}
|
||||
|
3
templates/pages/edit.html
vendored
3
templates/pages/edit.html
vendored
@ -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" .}}
|
||||
|
Reference in New Issue
Block a user