1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-11 23:54:06 +02:00

Flextype Core: Default Theme - templates fixes

This commit is contained in:
Awilum
2019-02-15 22:05:00 +03:00
parent badedb71cf
commit f99a769ee5
2 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
<?php namespace Flextype ?>
<?php Themes::view('partials/head')->display() ?>
<h1><?= $entry['title'] ?></h1>
<?php foreach (Entries::getEntries('blog') as $entry): ?>
<?php foreach (Entries::fetchAll('blog') as $entry): ?>
<a href="<?= $entry['url'] ?>" class="blog-post">
<h3><?= $entry['title'] ?></h3>
<p><?= $entry['summary'] ?></p>

View File

@@ -1,8 +1,8 @@
<?php namespace Flextype ?>
<?php Themes::view('partials/head')->display() ?>
<?= $entry['content'] ?>
<?php foreach (Entries::getEntries('blog', 'date', 'DESC', 0, 3) as $entry): ?>
<a href="<?= $entry['url'] ?>" class="blog-post">
<?php foreach (Entries::fetchAll('blog', 'date', 'DESC', 0, 3) as $entry): ?>
<a href="<?= $entry['slug'] ?>" class="blog-post">
<h3><?= $entry['title'] ?></h3>
<p><?= $entry['summary'] ?></p>
<div><?= $entry['date'] ?></div>