Commit 73837ada authored by Jérôme Chauveau's avatar Jérôme Chauveau
Browse files

fixes #85

parent 4a35c0aa
Loading
Loading
Loading
Loading
+3 −3
Changes for rxq/html.xqm: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -357,16 +357,16 @@ declare %private function max.html:buildMetas($projectId, $xmlFragment){
            'content' : $xmlFragment
            })
        else (
            <title>{max.html:cleanValue(string-join(($xmlFragment//(*:h3 | *:h2 | *:h1))[1]//text(), ''))}</title>,
            <title>{max.html:cleanValue(string-join(($xmlFragment//*[@id='text']//(*:h1 | *:h2 | *:h3))[1]//text(), ''))}</title>,
            <meta name="author" content="{max.config:getProjectAuthor($projectId)}"/>,

            <meta property="dc:description" content="{max.config:getProjectDescription($projectId)}"/>,
            <meta property="dc:title" content="{max.html:cleanValue(string-join(($xmlFragment//(*:h3 | *:h2 | *:h1))[1]//text(), ''))}"/>,
            <meta property="dc:title" content="{max.html:cleanValue(string-join(($xmlFragment//*[@id='text']//(*:h1 | *:h2 | *:h13))[1]//text(), ''))}"/>,
            <meta property="dc:type" content="Web page"/>,
            <meta property="dc:relation" content="{request:path()}"/>,

            <meta property="og:description" content="{max.config:getProjectDescription($projectId)}"/>,
            <meta property="og:title" content="{max.html:cleanValue(string-join(($xmlFragment//(*:h3 | *:h2 | *:h1))[1]//text(), ''))}"/>,
            <meta property="og:title" content="{max.html:cleanValue(string-join(($xmlFragment//*[@id='text']//(*:h1 | *:h2 | *:h13))[1]//text(), ''))}"/>,
            <meta property="og:type" content="page"/>,
            <meta property="og:url" content="{request:path()}"/>)