Single-binary service: push raw markdown via REST/gRPC API, read rendered HTML through mobile-friendly web UI. MCIAS auth on all endpoints, SQLite storage, goldmark rendering with GFM and syntax highlighting. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
27 lines
842 B
HTML
27 lines
842 B
HTML
{{define "layout"}}<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>mcq{{block "title" .}}{{end}}</title>
|
|
<link rel="stylesheet" href="/static/style.css">
|
|
</head>
|
|
<body>
|
|
<nav class="topnav">
|
|
<a href="/" class="topnav-brand">mcq</a>
|
|
{{if .Username}}
|
|
<div class="topnav-right">
|
|
<span class="topnav-user">{{.Username}}</span>
|
|
<form method="POST" action="/logout" style="margin:0">
|
|
{{csrfField}}
|
|
<button type="submit" class="btn-ghost btn">Logout</button>
|
|
</form>
|
|
</div>
|
|
{{end}}
|
|
</nav>
|
|
<div class="{{block "container-class" .}}page-container{{end}}">
|
|
{{template "content" .}}
|
|
</div>
|
|
</body>
|
|
</html>{{end}}
|