From da84a76e792a2fb3fb187d9cb857223d8c365ad8 Mon Sep 17 00:00:00 2001 From: Chris Sexton <3216719+chrissexton@users.noreply.github.com> Date: Wed, 19 Feb 2025 18:02:07 -0500 Subject: [PATCH] Reorder OpenGraph search. (#265) The previous ordering prevented the visitors from finding a description or image. --- web/readers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/readers.go b/web/readers.go index 480c874..e99ce59 100644 --- a/web/readers.go +++ b/web/readers.go @@ -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) {