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
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1696&serve=CVYD42T&placement=niklausgerbercom" id="_carbonads_js"></script> |
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 Code --> | |
<div class="Flexible-container"></div> | |
<!-- Edited Code --> | |
<p> | |
<div class="Flexible-container"></div> | |
</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
<?php $article = $pages->find('blog')->children()->last() ?> | |
<?php $second = $article->prev() ?> | |
<?php $third = $second->prev() ?> | |
<div class="footer"> | |
<div class="container"> | |
<div class="grid full"> | |
<h3><?php echo html($article->title()) ?></h3> | |
<small><?php echo html($article->Published()) ?></small> | |
<p><?php echo excerpt($article->text(), 400) ?><a href="<?php echo html($article->url()) ?>"> Continue reading</a></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
<?php snippet('header') ?> | |
<?php snippet('navigation') ?> | |
<section id="search"> | |
<?php | |
$search = new search(array( | |
'searchfield' => 'q', | |
'ignore' => array('disclaimer', 'error', 'feed', 'home', 'imprint', 'sitemap', 'about'), |
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
<section> | |
<h2 class="nav-element"><a href="<?php echo html($pages->find('blog')->children()->last()->url()) ?>"><?php echo html($pages->find('blog')->children()->last()->title()) ?></a></h2> | |
<p><?php echo html($pages->find('blog')->children()->last()->excerpt(text(), 300)) ?> <a href="<?php echo html($pages->find('blog')->children()->last()->url()) ?>">Read more</a></p> | |
</section> |
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
# Apache configuration file | |
# httpd.apache.org/docs/2.2/mod/quickreference.html | |
# Note .htaccess files are an overhead, this logic should be in your Apache config if possible | |
# httpd.apache.org/docs/2.2/howto/htaccess.html | |
# Techniques in here adapted from all over, including: | |
# Kroc Camen: camendesign.com/.htaccess | |
# perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/ | |
# Sample .htaccess file of CMS MODx: modxcms.com |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
In KirbyText I can do this: | |
##Text | |
and it will give me | |
<h2>Text</h2> | |
I can also do this (link: http://getkirby.com text: getkirby popup: yes) which will give me a link. Brilliant would be if I could generate span classes or even direct classes or IDs out of this. As an Idea: |
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
<img src="<?php $image = $article->images()->find('thumb.gif') ?><?php echo $image->url() ?>"> //that works | |
<img src="<?php $image = $article->images()->find('thumb.gif') ?><?php echo thumb($img, array('width' => 200), false); ?>"> //and this does not |
NewerOlder