Skip to content

Instantly share code, notes, and snippets.

@ff6347
Created September 24, 2012 12:40
Show Gist options
  • Select an option

  • Save ff6347/3775768 to your computer and use it in GitHub Desktop.

Select an option

Save ff6347/3775768 to your computer and use it in GitHub Desktop.
setup jekyll layout from shell
#!/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
@sleepytree
Copy link
Copy Markdown

thank you

@ff6347
Copy link
Copy Markdown
Author

ff6347 commented Sep 24, 2012

You're welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment