Skip to content

Instantly share code, notes, and snippets.

View mrcotter's full-sized avatar

Kris Zheng mrcotter

View GitHub Profile
@mrcotter
mrcotter / buster_fix.sh
Last active May 16, 2016 13:49
Bash script that fixing errors and missing files when using Buster to generate static site for Ghost, generating sitemap as well
#!/bin/bash
# remove previously generated site
echo -e "\033[0;32mRemove previousely generated site...\033[0m"
if [ -e ./static ]; then
cp static/README.md .
rm -rfv static/*
fi
# generate static site
@mrcotter
mrcotter / demo_iframe.css
Created May 11, 2016 07:38
Make iframe responsive
.myIframe {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
margin-top: 30px;
margin-bottom: 30px;
height: 0;
overflow: auto;
-webkit-overflow-scrolling:touch;
}