Created
September 24, 2012 12:40
-
-
Save ff6347/3775768 to your computer and use it in GitHub Desktop.
setup jekyll layout from shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# create a jekyll layout for starters | |
mkdir newWebsite | |
mkdir newWebsite/_layouts | |
mkdir newWebsite/_posts | |
mkdir newWebsite/_includes | |
mkdir newWebsite/_plugins | |
#the ignore folder needs to be added | |
#to the "exclude:" of the _config.yml | |
mkdir newWebsite/ignore | |
mkdir newWebsite/assets | |
mkdir newWebsite/assets/css | |
mkdir newWebsite/assets/js | |
mkdir newWebsite/assets/images | |
#echo "" > newWebsite/assets/css/main.css | |
#echo "" > newWebsite/assets/js/main.js | |
echo "markdown: rdiscount\\npygments: true\\nexclude: /ignore" > newWebsite/_config.yml | |
echo "---\\nlayout: default\\ntitle: Hello World!\\n---" > newWebsite/index.md | |
echo "<!DOCTYPE html>\\n<html>\\n<head>\\n\\t<title>{{ page.title }}\\t</title>\\n</head>\\n<body>\\n\\t{{ content }}\\n</body>\\n</html>" > newWebsite/_layouts/default.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thank you