-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent RuntimeException on external templates (Fix #12)
- Loading branch information
1 parent
4755f92
commit 5354003
Showing
3 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{# | ||
# (RuntimeException (400) Template "external.html.twig" is not defined.) | ||
# https://github.com/robbinfellow/haywire-grav/issues/12 | ||
# Prevent grav from throwing RuntimeException when trying to visit a page using the external template. | ||
#} | ||
|
||
{% extends 'partials/base.html.twig' %} | ||
|
||
{% block content %} | ||
<div class="container"> | ||
<div class="notification is-danger"> | ||
<strong> | ||
{{ 'ERROR'|t }} | ||
</strong> | ||
<p> | ||
This page is not available. | ||
</p> | ||
</div> | ||
</div> | ||
{% endblock %} |