mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-06-05 20:34:05 +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 {
|
if err == nil {
|
||||||
ctx, _ := mycocontext.ContextFromStringInput(string(fileContentsT), mycoopts.MarkupOptions(hyphaName))
|
ctx, _ := mycocontext.ContextFromStringInput(string(fileContentsT), mycoopts.MarkupOptions(hyphaName))
|
||||||
getOpenGraph, descVisitor, imgVisitor := tools.OpenGraphVisitors(ctx)
|
getOpenGraph, descVisitor, imgVisitor := tools.OpenGraphVisitors(ctx)
|
||||||
openGraph = template.HTML(getOpenGraph())
|
|
||||||
ast := mycomarkup.BlockTree(ctx, descVisitor, imgVisitor)
|
ast := mycomarkup.BlockTree(ctx, descVisitor, imgVisitor)
|
||||||
|
openGraph = template.HTML(getOpenGraph())
|
||||||
contents = template.HTML(mycomarkup.BlocksToHTML(ctx, ast))
|
contents = template.HTML(mycomarkup.BlocksToHTML(ctx, ast))
|
||||||
}
|
}
|
||||||
switch h := h.(type) {
|
switch h := h.(type) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user