Commit f1ebb2a5 authored by Pablo Rauzy's avatar Pablo Rauzy
Browse files

fix og:url meta tag for root index.html

parent 847b3e6c
......@@ -207,7 +207,7 @@ function render ($file, $mode='edit', $entry_dt='NEW') {
<meta property="og:title" content="<?php echo strip_tags($title_head); ?>" />
<meta property="og:description" content="<?php echo strip_tags($settings['title']); ?>" />
<meta property="og:image" content="<?php echo ((strpos($settings['logo'], '//') === false) ? $settings['url'] : ''),$settings['logo']; ?>" />
<meta property="og:url" content="<?php echo $settings['url'],preg_replace('/\/?index\.html$/', '/', $file); ?>" />
<meta property="og:url" content="<?php echo $settings['url'],preg_replace('/index\.html$/', '', $file); ?>" />
<meta name="twitter:card" content="summary" />
</head>
<body class="<?php echo str_replace('/', ' ', substr($file, 0, -5)); ?>">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment