a bit more style
This commit is contained in:
parent
ec1c18bc54
commit
09a084e5fa
|
@ -10,7 +10,12 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
{{ .Content }}
|
||||
|
||||
<main class="container">
|
||||
{{ .Content }}
|
||||
</main>
|
||||
<footer class="container">
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
</html>
|
2
post.go
2
post.go
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue