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
# -*- coding: utf-8 -*- | |
require 'fileutils' | |
require 'date' | |
require 'yaml' | |
require 'uri' | |
require 'rexml/document' | |
include REXML | |
doc = Document.new File.new(ARGV[0]) |
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
# place this file in your plugins directory and add the tag to your sidebar | |
#$ cat source/_includes/asides/categories.html | |
#<section> | |
# <h1>Categories</h1> | |
# <ul id="categories"> | |
# {% category_list %} | |
# </ul> | |
#</section> | |
module Jekyll |
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> | |
<h1>Categories</h1> | |
<ul id="categories"> | |
{% category_list %} | |
</ul> | |
</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
<!--Fonts from Google"s Web font directory at http://google.com/webfonts --> | |
<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css"> | |
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css"> | |
<link href='http://fonts.googleapis.com/css?family=Ruge+Boogie|Ruthie|Flavors|Rancho|Galdeano' rel='stylesheet' type='text/css'> | |
<link href='http://fonts.googleapis.com/css?family=Philosopher:[object Object],[object Object],[object Object],[object Object]' rel='stylesheet' type='text/css'> |
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
// Here you can easily change font faces which are used in your site. | |
// To give it a try, uncomment some of the lines below rebuild your blog, and see how it works. your sites's. | |
// If you love to use Web Fonts, you also need to add some lines to source/_includes/custom/head.html | |
//$sans: "Optima", sans-serif; | |
//$serif: "Baskerville", serif; | |
//$mono: "Courier", monospace; | |
//$heading-font-family: "Verdana", sans-serif; | |
//$header-title-font-family: "Futura", sans-serif; | |
//$header-subtitle-font-family: "Futura", sans-serif; |
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 is imported last, and will override other styles in the cascade | |
// Add styles here to make changes without digging in too much | |
@media only screen and (min-width: 550px) { | |
body > header h2 { padding-left: 60px; } | |
body > footer { margin-bottom: 3em; } | |
} |
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 | |
if(function_exists('posix_geteuid')){ | |
// use posix to get current uid and gid | |
$uid = posix_geteuid(); | |
$usr = posix_getpwuid($uid); | |
$user = $usr['name']; | |
$gid = posix_getegid(); | |
$grp = posix_getgrgid($gid); | |
$group = $grp['name']; |