Commit 30671c16 authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

debug title og:title et dc:title

parent 912a166b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -351,16 +351,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//(*:h3 | *:h2 | *:h1))[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//(*:h3 | *:h2 | *:h1))[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//(*:h3 | *:h2 | *:h1))[1]//text(), ''))}"/>,
            <meta property="og:type" content="page"/>,
            <meta property="og:url" content="{request:path()}"/>)