forked from projects/fipamo
not fix for template and empty layout for new page creation
This commit is contained in:
parent
d2f02eea50
commit
db385d938c
2 changed files with 6 additions and 2 deletions
|
@ -75,7 +75,11 @@ class Render
|
||||||
$limit = 4;
|
$limit = 4;
|
||||||
foreach ($pages as $page) {
|
foreach ($pages as $page) {
|
||||||
$pageOptions = Sorting::page($page);
|
$pageOptions = Sorting::page($page);
|
||||||
$template = $this->theme . "/" . $page["layout"] . ".twig";
|
|
||||||
|
$layout = $page["layout"];
|
||||||
|
//new pages have no layout, so defautl for now
|
||||||
|
$layout = "page";
|
||||||
|
$template = $this->theme . "/" . $layout . ".twig";
|
||||||
if (str_contains($page["layout"], "index")) {
|
if (str_contains($page["layout"], "index")) {
|
||||||
$location = "../public/index.html";
|
$location = "../public/index.html";
|
||||||
$dir = null;
|
$dir = null;
|
||||||
|
|
|
@ -23,5 +23,5 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block javascripts %}
|
{% block javascripts %}
|
||||||
<script src="./assets/scripts/Start.js" type="text/javascript"></script>
|
<script src="/assets/scripts/Start.js" type="text/javascript"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in a new issue