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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width,initial-scale=1.0"> | |
<title><?php echo $site->title()->html() ?> | <?php echo $page->title()->html() ?></title> | |
<meta name="description" content="<?php echo $site->description()->html() ?>"> | |
<meta name="keywords" content="<?php echo $site->keywords()->html() ?>"> |
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
<?php snippet('header') ?> | |
<main class="main blog" role="main"> | |
<?php $articles = $page->children()->visible()->flip()->paginate(6) ?> | |
<?php foreach($articles as $article): ?> | |
<article class="posts"> | |
<h1><?php echo $article->title()->html() ?></h1> | |
<time datetime="<?php echo $article->date('c') ?>" pubdate="pubdate"><?php echo $article->date('d.m.Y H:i') ?></time> | |
<p><?php echo $article->text()->excerpt(300) ?></p> |
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
defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock |
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
<?php $n=0; foreach($page->children()->visible()->flip() as $article): $n++; ?> | |
<?php if($n==1): ?> | |
<!-- html for your first article --> | |
<?php else: ?> | |
<!-- html for all the other articles --> | |
<?php endif ?> | |
<?php endforeach ?> |
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
<?php snippet('header') ?> | |
<section class="content cf"> | |
<?php if(param('tag')) { | |
$articles = $pages->find('blog') | |
->children() | |
->visible() | |
->filterBy('tags', param('tag'), ',') |
NewerOlder