From 8641722b528ff31e983b590c2e3c518584095b43 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Wed, 7 May 2014 16:47:11 -0400 Subject: [PATCH 1/6] Use kramdown. --- site/_config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/site/_config.yml b/site/_config.yml index ddc91b11..44c2772e 100644 --- a/site/_config.yml +++ b/site/_config.yml @@ -1,3 +1,4 @@ +markdown: kramdown highlighter: pygments relative_permalinks: false gauges_id: 503c5af6613f5d0f19000027 From 72cb5cae1e95f91679a093b3f430863bfabbf011 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Wed, 7 May 2014 16:48:23 -0400 Subject: [PATCH 2/6] Pure JavaScript for adding anchors. --- site/_includes/anchor_links.html | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 site/_includes/anchor_links.html diff --git a/site/_includes/anchor_links.html b/site/_includes/anchor_links.html new file mode 100644 index 00000000..53dc6482 --- /dev/null +++ b/site/_includes/anchor_links.html @@ -0,0 +1,27 @@ + \ No newline at end of file From 24ed3e6e410236c0fc762f05ab9e168963cb85af Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Wed, 7 May 2014 16:48:31 -0400 Subject: [PATCH 3/6] Add font-awesome & Ben's CSS --- site/_includes/css/font-awesome.css | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 site/_includes/css/font-awesome.css diff --git a/site/_includes/css/font-awesome.css b/site/_includes/css/font-awesome.css new file mode 100644 index 00000000..8437e79a --- /dev/null +++ b/site/_includes/css/font-awesome.css @@ -0,0 +1,44 @@ +/*! + * Font Awesome 4.0.3 by @davegandy - http://fontawesome.io - @fontawesome + * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) + */ +@font-face { + font-family: 'FontAwesome'; + src: url('../fonts/fontawesome-webfont.eot?v=4.0.3'); + src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.0.3') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff?v=4.0.3') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.0.3') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular') format('svg'); + font-weight: normal; + font-style: normal; +} +.fa { + display: inline-block; + font-family: FontAwesome; + font-style: normal; + font-weight: normal; + line-height: 1; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +.fa-link:before { + content: "\f0c1"; +} +/* + * This code is courtesy Ben Balter, modified by Parker Moore for jekyllrb.com + * http://ben.balter.com/2014/03/13/pages-anchor-links/ + */ +.header-link { + position: relative; + left: 0.5em; + opacity: 0; + font-size: 0.8em; + + -webkit-transition: opacity 0.2s ease-in-out 0.1s; + -moz-transition: opacity 0.2s ease-in-out 0.1s; + -ms-transition: opacity 0.2s ease-in-out 0.1s; +} +h2:hover .header-link, +h3:hover .header-link, +h4:hover .header-link, +h5:hover .header-link, +h6:hover .header-link { + opacity: 1; +} \ No newline at end of file From 228d2c4c440d6c2985c6d6264458eedc795af3cd Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Wed, 7 May 2014 16:48:38 -0400 Subject: [PATCH 4/6] Use HTML and CSS we just created. --- site/_includes/top.html | 1 + site/css/screen.css | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/site/_includes/top.html b/site/_includes/top.html index 35ba2f26..ffeddd9d 100644 --- a/site/_includes/top.html +++ b/site/_includes/top.html @@ -10,6 +10,7 @@ + {% include anchor_links.html %}