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
var LATIN_MAP = { | |
'À': 'A', 'Á': 'A', 'Â': 'A', 'Ã': 'A', 'Ä': 'A', 'Å': 'A', 'Æ': 'AE', 'Ç': | |
'C', 'È': 'E', 'É': 'E', 'Ê': 'E', 'Ë': 'E', 'Ì': 'I', 'Í': 'I', 'Î': 'I', | |
'Ï': 'I', 'Ð': 'D', 'Ñ': 'N', 'Ò': 'O', 'Ó': 'O', 'Ô': 'O', 'Õ': 'O', 'Ö': | |
'O', 'Ő': 'O', 'Ø': 'O', 'Ù': 'U', 'Ú': 'U', 'Û': 'U', 'Ü': 'U', 'Ű': 'U', | |
'Ý': 'Y', 'Þ': 'TH', 'ß': 'ss', 'à':'a', 'á':'a', 'â': 'a', 'ã': 'a', 'ä': | |
'a', 'å': 'a', 'æ': 'ae', 'ç': 'c', 'è': 'e', 'é': 'e', 'ê': 'e', 'ë': 'e', | |
'ì': 'i', 'í': 'i', 'î': 'i', 'ï': 'i', 'ð': 'd', 'ñ': 'n', 'ò': 'o', 'ó': | |
'o', 'ô': 'o', 'õ': 'o', 'ö': 'o', 'ő': 'o', 'ø': 'o', 'ù': 'u', 'ú': 'u', | |
'û': 'u', 'ü': 'u', 'ű': 'u', 'ý': 'y', 'þ': 'th', 'ÿ': 'y' |
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
#SingleInstance force | |
#Persistent | |
#NoEnv | |
SetTimer, lootStuff, 250 | |
return | |
lootStuff: | |
IfWinActive ahk_class ArenaNet_Dx_Window_Class | |
{ |
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 | |
/** | |
* Twig engine for KirbyCMS | |
* | |
* @author Pereira Ricardo <hello@nunopress.com> | |
* @license MIT | |
*/ | |
/** |
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
<div class="list-item"> | |
<div class="list-blog-header"> | |
{{ hook('blog.item.date.before') }} | |
<span class="list-blog-date"> | |
<span>{{ page.date|date("d") }}</span> | |
<em>{{ page.date|date("M") }}</em> | |
</span> |
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
<title><?php if(!$page->isHomePage()) : ?><?php echo html($page->title()) ?> | <?php endif; ?><?php echo html($site->title()) ?></title> |
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 http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width,initial-scale=1.0" /> | |
<title><?php if(!$page->isHomePage()) : ?><?php echo html($page->title()) ?> | <?php endif; ?><?php echo html($site->title()) ?></title> | |
<?php if($page_description = excerpt($page->text(), 100)) : ?> |
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 | |
$site = $this; | |
// Events | |
$site->on("site.init", function() use($site){ | |
$site->viewvars["meta"] = (object) $site["config/site.meta"]; | |
$site->viewvars["meta"]->route = $site["route"]; |
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 | |
/* Load custom helpers */ | |
require_once(__DIR__ . '/helpers.php'); | |
/* Load custom config */ | |
//$config = include(__DIR__ . '/config.php'); | |
/* Load custom route */ | |
require_once(__DIR__ . '/route.php'); |
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 | |
/* Route to content mapping for projects with languages feature (ex. /en/projects) */ | |
$site->bind("/:lang/projects", function($params) use($site) { | |
/* Define view */ | |
$view = false; | |
/* Define route */ | |
$route = str_replace('../', '', rtrim($site["route"], '/')); |
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 | |
/* Route to content mapping for projects (ex. /projects) */ | |
$site->bind("/projects", function() use($site) { | |
/* Define view */ | |
$view = false; | |
/* Define route */ | |
$route = str_replace('../', '', rtrim($site["route"], '/')); |
NewerOlder