Skip to content

Commit

Permalink
docs: link to blog
Browse files Browse the repository at this point in the history
  • Loading branch information
gernest committed Feb 13, 2024
1 parent efab3b5 commit 0d69baf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/docs/blog.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ func renderPost(text []byte) (o Post) {
})

ast.Walk(func(node *blackfriday.Node, entering bool) blackfriday.WalkStatus {
if node.Type == blackfriday.Heading && node.HeadingData.Level == 6 {
return blackfriday.SkipChildren
}
return r.RenderNode(w, node, entering)
})
o.Content = template.HTML(w.String())
Expand Down
4 changes: 4 additions & 0 deletions tools/docs/post.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
<body>

<main>
<div class="index">
<h1><a href="/blog">vince</a></h1>
<blockquote>API first high performance self hosted and cost effective privacy friendly web analytics server for organizations of any size</blockquote>
</div>
{{with .Post}}
{{.Content}}
{{end}}
Expand Down

0 comments on commit 0d69baf

Please sign in to comment.