Skeleton for a GitHub pages site that makes use of Jekyll blog capabilities and templating. Put markdown files in _articles and push to GitHub. Jekyll will automatically render the templates and markdown files to html.
- Edit
_config.ymlto reflect your info - Edit
index.htmland `about.html - Delete the sample posts and add your articles in the directory
_posts. The post title must have the format:YYYY-MM-DD-article-title.md. Edit thetitleanddatefront-matter tags accordingly on the post. - Edit
assets/style.cssas necessary. - Push your repo to GitHub
- To preview the site locally:
- Make sure you have ruby installed
- Install Jekyll:
gem install jekyll(more info on Jekyll installation) - Create a directory
_site(see Site structure) - Build and serve the site with the command:
jekyll serve, then you can preview your site at http://localhost:4000
Uses the Jekyll directory structure:
tree
├── .gitignore
├── README.md
├── _config.yml
├── _includes
│ ├── footer.html
│ └── head.html
├── _layouts
│ ├── default.html
│ └── post.html
├── _posts
│ ├── 2018-11-01-lorem-ipsum.md
│ └── 2018-11-04-Dextra-neque.md
├── about.html
├── articles
│ └── index.html
├── assets
│ └── style.css
└── index.html
Directory _site is excluded in .gitignore, as well as any tarballs or swap/backup files
Kramdown Markdown parser, use of baseurl, use of Twitter and GitHub links on footer.
Default and post layout
Includes head.html (everything between the <head></head> tags in html) and footer.html - change as necessary
Sample stylesheet and content
Articles index
2018-11-04: First version