a bit more style

This commit is contained in:
Niko Abeler 2022-07-27 21:26:37 +02:00
parent ec1c18bc54
commit 09a084e5fa
2 changed files with 8 additions and 1 deletions

View File

@ -10,7 +10,12 @@
</head>
<body>
{{ .Content }}
<main class="container">
{{ .Content }}
</main>
<footer class="container">
</footer>
</body>
</html>

View File

@ -7,6 +7,7 @@ import (
"github.com/yuin/goldmark"
meta "github.com/yuin/goldmark-meta"
"github.com/yuin/goldmark/extension"
"github.com/yuin/goldmark/parser"
)
@ -43,6 +44,7 @@ func (post Post) MarkdownData() (bytes.Buffer, map[string]interface{}) {
markdown := goldmark.New(
goldmark.WithExtensions(
meta.Meta,
extension.GFM,
),
)
var buf bytes.Buffer