a bit more style
This commit is contained in:
parent
ec1c18bc54
commit
09a084e5fa
|
@ -10,7 +10,12 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
<main class="container">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
</main>
|
||||||
|
<footer class="container">
|
||||||
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
2
post.go
2
post.go
|
@ -7,6 +7,7 @@ import (
|
||||||
|
|
||||||
"github.com/yuin/goldmark"
|
"github.com/yuin/goldmark"
|
||||||
meta "github.com/yuin/goldmark-meta"
|
meta "github.com/yuin/goldmark-meta"
|
||||||
|
"github.com/yuin/goldmark/extension"
|
||||||
"github.com/yuin/goldmark/parser"
|
"github.com/yuin/goldmark/parser"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -43,6 +44,7 @@ func (post Post) MarkdownData() (bytes.Buffer, map[string]interface{}) {
|
||||||
markdown := goldmark.New(
|
markdown := goldmark.New(
|
||||||
goldmark.WithExtensions(
|
goldmark.WithExtensions(
|
||||||
meta.Meta,
|
meta.Meta,
|
||||||
|
extension.GFM,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
var buf bytes.Buffer
|
var buf bytes.Buffer
|
||||||
|
|
Loading…
Reference in New Issue