Reorder OpenGraph search.

The previous ordering prevented the visitors from finding a description or
image.
This commit is contained in:
Chris Sexton 2025-02-19 17:07:44 -05:00
parent d679eb4661
commit 6aae4124e1

View File

@ -258,8 +258,8 @@ func handlerHypha(w http.ResponseWriter, rq *http.Request) {
if err == nil {
ctx, _ := mycocontext.ContextFromStringInput(string(fileContentsT), mycoopts.MarkupOptions(hyphaName))
getOpenGraph, descVisitor, imgVisitor := tools.OpenGraphVisitors(ctx)
openGraph = template.HTML(getOpenGraph())
ast := mycomarkup.BlockTree(ctx, descVisitor, imgVisitor)
openGraph = template.HTML(getOpenGraph())
contents = template.HTML(mycomarkup.BlocksToHTML(ctx, ast))
}
switch h := h.(type) {