Skip to content

Commit ce650cc

Browse files
committed
Bring in Jekyll
1 parent d67a899 commit ce650cc

File tree

6 files changed

+146
-0
lines changed

6 files changed

+146
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ tmp/*/*
1313
*.pid
1414
.DS_Store
1515

16+
_site/*
17+
.jekyll-cache/*
18+
1619
env/*
1720

1821
.com.apple.timemachine.supported

404.html

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
permalink: /404.html
3+
layout: default
4+
---
5+
6+
<style type="text/css" media="screen">
7+
.container {
8+
margin: 10px auto;
9+
max-width: 600px;
10+
text-align: center;
11+
}
12+
h1 {
13+
margin: 30px 0;
14+
font-size: 4em;
15+
line-height: 1;
16+
letter-spacing: -1px;
17+
}
18+
</style>
19+
20+
<div class="container">
21+
<h1>404</h1>
22+
23+
<p><strong>Page not found :(</strong></p>
24+
<p>The requested page could not be found.</p>
25+
</div>

Gemfile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source 'http://rubygems.org'
2+
3+
ruby '2.5.1'
4+
5+
gem 'jekyll'
6+
gem 'minima'

_config.yml

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Welcome to Jekyll!
2+
#
3+
# This config file is meant for settings that affect your whole blog, values
4+
# which you are expected to set up once and rarely edit after that. If you find
5+
# yourself editing this file very often, consider using Jekyll's data files
6+
# feature for the data you need to update frequently.
7+
#
8+
# For technical reasons, this file is *NOT* reloaded automatically when you use
9+
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
10+
#
11+
# If you need help with YAML syntax, here are some quick references for you:
12+
# https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml
13+
# https://learnxinyminutes.com/docs/yaml/
14+
#
15+
# Site settings
16+
# These are used to personalize your new site. If you look in the HTML files,
17+
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
18+
# You can create any custom variable you would like, and they will be accessible
19+
# in the templates via {{ site.myvariable }}.
20+
21+
title: Paul's tools and stuff
22+
23+
description: >- # this means to ignore newlines until "baseurl:"
24+
A small library of commands, scripts and cheatsheets for a number of technologies
25+
I've been working or playing around with
26+
baseurl: "" # the subpath of your site, e.g. /blog
27+
url: "" # the base hostname & protocol for your site, e.g. http://example.com
28+
# twitter_username: ""
29+
github_username: velll
30+
31+
# Build settings
32+
theme: minima
33+
34+
collections:
35+
drone_io:
36+
relative_directory: "drone-io"
37+
output: true
38+
39+
chapters:
40+
- title: GIT
41+
dir: '/git/'
42+
- title: Iptables
43+
dir: "/iptables/"
44+
- title: Mongo DB
45+
dir: "/mongo/"
46+
- title: "Nginx"
47+
dir: "/nginx/"
48+
- title: "Oracle DB administration"
49+
dir: "/oracle/dba/"
50+
- title: "Oracle DB development"
51+
dir: "/oracle/dev/"
52+
- title: 'PostgreSQL'
53+
dir: "/postgresql/"
54+
- title: "Python"
55+
dir: "/python/"
56+
- title: "Regex"
57+
dir: "/regex/"
58+
- title: "Ruby"
59+
dir: "/ruby/"
60+
- title: "SQL"
61+
dir: "/sql/"
62+
- title: "SSH"
63+
dir: "/ssh/"
64+
- title: "Unix"
65+
dir: "/unix/"
66+
- title: "Vim"
67+
dir: "/vim/"
68+
69+
# Exclude from processing.
70+
# The following items will not be processed, by default.
71+
# Any item listed under the `exclude:` key here will be automatically added to
72+
# the internal "default list".
73+
#
74+
# Excluded items can be processed by explicitly listing the directories or
75+
# their entries' file path in the `include:` list.
76+
#
77+
# exclude:
78+
# - .sass-cache/
79+
# - .jekyll-cache/
80+
# - gemfiles/
81+
# - Gemfile
82+
# - Gemfile.lock
83+
# - node_modules/
84+
# - vendor/bundle/
85+
# - vendor/cache/
86+
# - vendor/gems/
87+
# - vendor/ruby/

about.markdown

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
layout: page
3+
title: About
4+
permalink: /about/
5+
---
6+
7+
Over a few years I've managed to build this library of commands, cheat sheets and scripts. Feel free to use it as you please.
8+
9+
The site is built with [jekyll](https://jekyllrb.com/) and [minima](https://github.com/jekyll/minima) theme.

index.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
# Feel free to add content and custom Front Matter to this file.
3+
# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults
4+
5+
layout: home
6+
---
7+
{% for chapter in site.chapters %}
8+
# {{ chapter.title }}
9+
10+
{% assign chapter_pages = site.pages | where_exp: "page", "page.dir == chapter.dir" %}
11+
12+
{% for page in chapter_pages %}
13+
- [{{ page.title | default: page.name }}]({{ page.url }})
14+
{% endfor %}
15+
16+
{% endfor %}

0 commit comments

Comments
 (0)