From 533909c430dcfcd221b6cedae0fdcac63e134cc8 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 13 Feb 2014 19:23:38 -0800 Subject: [PATCH] Support Gist embeds via GH Pages --- _posts/2014-01-01-example-content.md | 8 ++++++++ public/css/poole.css | 24 ++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/_posts/2014-01-01-example-content.md b/_posts/2014-01-01-example-content.md index 81e4748..340d14a 100644 --- a/_posts/2014-01-01-example-content.md +++ b/_posts/2014-01-01-example-content.md @@ -48,6 +48,14 @@ adder(2, 6); Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa. +### Gists via GitHub Pages + +Vestibulum id ligula porta felis euismod semper. Nullam quis risus eget urna mollis ornare vel eu leo. Donec sed odio dui. + +{% gist 5555251 gist.md %} + +Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec sed odio dui. Vestibulum id ligula porta felis euismod semper. + ### Lists Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. diff --git a/public/css/poole.css b/public/css/poole.css index fabfd65..49309a1 100644 --- a/public/css/poole.css +++ b/public/css/poole.css @@ -175,6 +175,8 @@ pre code { color: inherit; background-color: transparent; } + +/* Pygments via Jekyll */ .highlight { margin-bottom: 1rem; border-radius: 4px; @@ -183,6 +185,28 @@ pre code { margin-bottom: 0; } +/* Gist via GitHub Pages */ +.gist .gist-file { + font-family: Menlo, Monaco, "Courier New", monospace !important; +} +.gist .markdown-body { + padding: 15px; +} +.gist pre { + padding: 0; + background-color: transparent; +} +.gist .gist-file .gist-data { + font-size: .8rem !important; + line-height: 1.4; +} +.gist code { + padding: 0; + color: inherit; + background-color: transparent; + border-radius: 0; +} + /* Quotes */ blockquote { padding: .5rem 1rem; -- 2.39.5