Skip to content

Instantly share code, notes, and snippets.

@texnixe
texnixe / nginx
Created July 4, 2018 12:17 — forked from bastianallgeier/nginx
nginx setup
# block content
location ~ ^/content/(.*).(txt|md|mdown)$ {
rewrite ^/content/(.*).(txt|md|mdown)$ /error redirect;
}
# block all files in the site folder from being accessed directly
location ~ ^/site/(.*)$ {
rewrite ^/site/(.*)$ /error redirect;
}
@texnixe
texnixe / assets_css_editor.css
Created June 28, 2018 09:41 — forked from fabianmichael/assets_css_editor.css
Simple Inline Editor for Kirby
input[type="text"],
textarea {
-webkit-appearance: none;
border: 0;
border-radius: 0;
font: inherit;
line-height: inherit;
resize: none;
width: 100%;
padding: 0;
@texnixe
texnixe / indexer.php
Created March 13, 2018 17:47 — forked from sebsel/indexer.php
Indexer for Kirby
<?php
class Indexer {
static $fields;
static $methods;
static $site;
static function get($where = null, $num = 20, $hideDeleted = true) {
if (!static::$site) static::$site = site();
<?php
/**
* Move this file to /site/snippets/ and rename it video.php
*/
// stop without videos
if(empty($videos)) return;
// set some defaults