mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-03-10 05:28:20 +00:00
Reorder OpenGraph search. (#265)
The previous ordering prevented the visitors from finding a description or image.
This commit is contained in:
parent
d679eb4661
commit
da84a76e79
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user