1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-03-10 13:38:20 +00:00

Reorder OpenGraph search. (#265)

The previous ordering prevented the visitors from finding a description or
image.
This commit is contained in:
Chris Sexton 2025-02-19 18:02:07 -05:00 committed by GitHub
parent d679eb4661
commit da84a76e79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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) {