Skip to content

Instantly share code, notes, and snippets.

Add an extra variable to the headblock of the post like this:
hero_image: file.png
And then inside the {{entry}} blog you can reference that variable using:
{{metadata.hero_image}}
@scfrisby
scfrisby / sf_m_d
Created August 11, 2014 17:20
socialfixer_menu_deuglifier.css
#pagelet_welcome_box {
padding-top: 10px;
}
a#bfb_options_button.fbJewel {
background-image: url(/rsrc.php/v2/yZ/r/RSBchxyfpum.png);
background-repeat: no-repeat;
background-size: auto;
background-position: -37px -31px;
cursor: pointer;
@scfrisby
scfrisby / commoffit.css
Last active December 16, 2015 00:29
Hide all comments except those written by the creator of the shot
/* Show only the comments of the original author */
li.response:not(.owner) {
display: none;
}
/* Alternatively, only show the first comment */
li.response:not(:first-child) {
display: none;
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@stuartfrisby">
<meta name="twitter:url" content="{post-url}">
<meta name="twitter:title" content="{post-title}">
<meta name="twitter:description" content="{post-abstract}">
<meta name="twitter:image" content="http://mrfrisby.com/stu.png">
@scfrisby
scfrisby / gist:3230037
Created August 1, 2012 19:44
WE'LL DO IT LIVE!
alfredapp://customsearch/live/live/ascii/url=http://cl.ly/0r1b0n3b2A1a351y1v0v/cNFbw.jpg
$(document).keyup(function(e) {
var url = false;
// back arrow - previous post
if (e.which == 37) { url = $('.previous').attr('href'); }
// forward arrow - next post (unless this post is the most recent one).
else if (e.which == 39) { url = $('body:not(.latest) .next').attr('href'); }
// the 'H' key takes you to the homepage.
else if (e.which == 72) { url = '../'; }
// Go
if (url) {
@scfrisby
scfrisby / bbc.css
Created June 19, 2011 15:06
BBC Mod
#bbccom_mpu, #socialBookMarks, #bbccom_leaderboard, #bbccom_bottom, #bbccom_button, .bookmark-list, .atozfooter, .ifs_services, .aznav, .servicev4, div[id*=adsense], #page-bookmark-links-head, .share-body-bottom, #page-bookmark-links-foot {
display: none !important;
visibility: hidden !important;
}
@scfrisby
scfrisby / notrend.css
Created March 22, 2011 09:51
Removes Trends & Suggestions from twitter web interface.
/* Remove Trends & Suggestions */
.trends-inner, .user-rec-inner, .promo, .component-spacer {display: none !important;}
/* Give the footer a border since we lost the original one with the last ruleset */
.footer.inline-list {border-top: 1px solid #CCC !important; padding-top: 10px !important;}
/* Make the favourites & lists sections span the full width of the section. */
div.favorites-activity, div.lists-activity {width: 98% !important;}
div.latest-favorite {width: 460px !important;}
@scfrisby
scfrisby / yammer.css
Created January 16, 2011 22:14
Yammer Prettification
html {
background-color: #DEDEDE;
}
body {
background-image: none;
}
#yammer-header {
display: none;
}