Skip to content

Instantly share code, notes, and snippets.

dashed / github-pandoc.css
Created Sep 26, 2013
GitHub-like CSS for pandoc standalone HTML files (perfect for HTML5 output). Based on's GitHub CSS. Added normalize.css (v2.1.3) in the prior to GitHub css.
View github-pandoc.css
/*! normalize.css v2.1.3 | MIT License | */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
* Correct `block` display not defined in IE 8/9.
benbalter /
Last active Mar 24, 2021
Example of how to use Jekyll's `excerpt` tag.

If your post looked something like:

# Awesome Blog Post

Here is an example post to show how to use the new `excerpt` tag.

The excerpt tag provides a quick and easy way to tease a post by exposing only the first paragraph such as on a blog index page.
zabbarob / anki.css
Created May 7, 2013
Anki cards, CSS and HTML templates.
View anki.css
@font-face {
font-family: junicode;
src: url('_junicode.ttf');
.card, table {
font-family: Helvetica, sans-serif, junicode;
font-size: 20px;
text-align: center;
color: #d03030;
background-color: #fafaf5;
View luna_pinyin.custom.yaml
# luna_pinyin.custom.yaml
# 修改字典名爲 luna_pinyin.kunki
# 其對應的用戶詞典名取句點之前部分即 luna_pinyin
translator/dictionary: luna_pinyin.kunki

This is some superscript text.

cobyism /
Last active Oct 26, 2021
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

tabletick / audio_tag.rb
Created Sep 6, 2012
Audio/MP3 Plugin for Octopress
View audio_tag.rb
# Title: MP3 tag for Jekyll
# Authors: Devin Weaver, Daniel Roos (youtube changes)
# Description: Allows mp3 tag to include mp3 files embedded into the post.
# It uses the player 'audio.js' from
# Install the plugin according to the manuel of the author by adding the necessary lines to the head-template
# and adding the files into the right directories.
# Please read my [blog post about it][2].
tzi / important.css
Created Jun 19, 2012
How to set an !important css property in javascript
View important.css
.test {
height: 139px;
width: 96px
mytharcher / compressor.rb
Last active Dec 16, 2019
A jekyll plugin for compressing HTML, JavaScript files when rendering.
View compressor.rb
# File compressor plugin for jekyll
# =================================
# By [mytharcher](
# 2012-05-20
# Updated by [nicoespeon](
# 2013-04-12