Fix if "edit_on_github" parameter isn't set
This commit is contained in:
parent
e9cd1e3c27
commit
5a1324be7d
@ -8,7 +8,7 @@
|
|||||||
<?= date("l, F j, Y g:i A", $page['modified_time']); ?>
|
<?= date("l, F j, Y g:i A", $page['modified_time']); ?>
|
||||||
</span>
|
</span>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php if ($params['html']['edit_on_github']) { ?>
|
<?php if (array_key_exists('edit_on_github', $params['html']) && $params['html']['edit_on_github']) { ?>
|
||||||
<span style="float: right; font-size: 10px; color: gray;">
|
<span style="float: right; font-size: 10px; color: gray;">
|
||||||
<a href="https://github.com/<?= $params['html']['edit_on_github'] ?>/<?= $page['relative_path'] ?>" target="_blank">Edit on GitHub</a>
|
<a href="https://github.com/<?= $params['html']['edit_on_github'] ?>/<?= $page['relative_path'] ?>" target="_blank">Edit on GitHub</a>
|
||||||
</span>
|
</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user