Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pablo Rauzy
cigala
Commits
f1ebb2a5
Commit
f1ebb2a5
authored
Mar 14, 2021
by
Pablo Rauzy
Browse files
fix og:url meta tag for root index.html
parent
847b3e6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
root/cigala.php
View file @
f1ebb2a5
...
...
@@ -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
));
?>
"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment