29 lines
No EOL
835 B
HTML
29 lines
No EOL
835 B
HTML
{{$markdownFilePath := printf .OriginalReq.URL.Path}}
|
|
{{$markdownContent := include $markdownFilePath}}
|
|
<!doctype html>
|
|
<html>
|
|
|
|
<head>
|
|
<title>Markdown</title>
|
|
<link rel="stylesheet" href="/assets/template/main.css">
|
|
<!-- <link rel="stylesheet" href="/assets/github-markdown-dark.css"> -->
|
|
<!-- <link rel="stylesheet" href="/assets/github-markdown-light.css"> -->
|
|
<!-- <link rel="stylesheet" href="/assets/github-markdown.css"> -->
|
|
<script>
|
|
function themeToggle() {
|
|
var element = document.body;
|
|
element.classList.toggle("light-mode");
|
|
}
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<div>
|
|
<div class="markdown-body">
|
|
<!-- <button onclick="themeToggle()">Switch Theme</button> -->
|
|
{{markdown $markdownContent}}
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |