-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from MayMeow/dev/add-now-pages
Added now pages
- Loading branch information
Showing
5 changed files
with
66 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
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 @@ | ||
<?php | ||
/** | ||
* @var \MeowBlog\View\AppView $this | ||
* @var ?\MeowBlog\Model\Entity\Article $content | ||
*/ | ||
?> | ||
<div class="headings"> | ||
<h2><?= __('Now') ?></h2> | ||
<h3><?= $content ? __('Last updated {0}', $content->created ) : '' ?></h3> | ||
</div> | ||
<div id="article"> | ||
<p><?= __('This is my {0} page, a summary of what im currently doing or enjoying.', $this->Html->link('/now', 'https://nownownow.com/about', ['target' => '_blank']))?></p> | ||
<div> | ||
<?php if (!$content) : ?> | ||
<p><?= __('There is no update, come back later.') ?></p> | ||
<?php else : ?> | ||
<?= $this->Markdown->parse($content->body); ?> | ||
<?php endif; ?> | ||
</div> | ||
</div> |