Commit 3ef66a04 authored by Artemis's avatar Artemis

Fixed HTML documents, normalized

parent 74f2bd21
{{define "header"}}
<head>
<meta charset="UTF-8">
<title>Paste</title>
<link rel="stylesheet" href="https://res.axdn.fr/paste/style.min.css" />
</head>
{{end}}
{{define "homepage"}}
<!DOCTYPE html>
<html lang="en">
{{template "header"}}
<head>
{{template "header"}}
</head>
<body>
<h1>Paste</h1>
......@@ -12,6 +14,8 @@
{{end}}
<section>
<h2>Enter your document below (approximate maximum of 1MB)</h2>
<form method="post">
<fieldset>
<label for="paste">Your document</label>
......
{{define "show"}}
<!DOCTYPE html>
<html lang="en">
{{template "header"}}
<head>
{{template "header"}}
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/monokai-sublime.min.css">
</head>
<body>
<h1>Paste</h1>
<nav>
<a href="/">Create a paste</a>
<a href="{{.Raw}}" target="_blank">Raw version</a>
</nav>
<section>
<nav>
<a href="/">Create a paste</a>
<a href="{{.Raw}}" target="_blank">Raw version</a>
</nav>
<h1>Your paste</h1>
<h2>Your paste</h2>
<pre><code>{{.Value}}</code></pre>
</section>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment