Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

Commit d213ebc

Browse files
committed
Merge remote-tracking branch 'origin/master'
# Conflicts: # source/views/pieces/piece.dark.php
2 parents a8d27fc + f50d35c commit d213ebc

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

source/views/pieces/meta.dark.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,15 @@
1616

1717
<meta name="description" content="<?= e($meta->description) #compile ?>">
1818
<meta name="keywords" content="<?= e($meta->keywords) #compile ?>">
19+
1920
<?= $meta->html #compile ?>
2021

2122
<title><?= e($meta->title) #compile ?></title>
2223

2324
<?php if ($environment->getValue('cms.editable')): #compile ?>
24-
<script>
25-
window.metadata = <?= json_encode($meta) #compile ?>;
26-
</script>
27-
<?php endif; #compile ?>
25+
<?php if('${json|true}' == 'true'): #compile ?>
26+
<script>
27+
window.metadata = <?= json_encode($meta) #compile ?>;
28+
</script>
29+
<?php endif; #compile ?>
30+
<?php endif; #compile ?>

0 commit comments

Comments
 (0)