diff options
| -rw-r--r-- | .jekyll-metadata | bin | 2175 -> 3327 bytes | |||
| -rw-r--r-- | Makefile | 5 | ||||
| -rw-r--r-- | _config.yml | 23 | ||||
| -rw-r--r-- | _includes/footer.html | 4 | ||||
| -rw-r--r-- | _includes/highlight.css | 77 | ||||
| -rw-r--r-- | _includes/site.css | 5 | ||||
| -rw-r--r-- | _layouts/index.html | 44 | ||||
| -rw-r--r-- | _layouts/page.html | 9 | ||||
| -rw-r--r-- | _layouts/post.html | 9 | ||||
| -rw-r--r-- | _posts/2011-12-31-about.md | 36 | ||||
| -rw-r--r-- | _posts/2011-12-31-test-post.md | 25 |
11 files changed, 164 insertions, 73 deletions
diff --git a/.jekyll-metadata b/.jekyll-metadata index 9fe74ee..6eeaaf0 100644 --- a/.jekyll-metadata +++ b/.jekyll-metadata | |||
| Binary files differ | |||
| @@ -1,2 +1,5 @@ | |||
| 1 | run: | 1 | clean: |
| 2 | -rm -Rf _site/ | ||
| 3 | |||
| 4 | run: clean | ||
| 2 | bundle exec jekyll serve --incremental | 5 | bundle exec jekyll serve --incremental |
diff --git a/_config.yml b/_config.yml index 988dd95..478ce92 100644 --- a/_config.yml +++ b/_config.yml | |||
| @@ -2,16 +2,23 @@ encoding: UTF-8 | |||
| 2 | exclude: | 2 | exclude: |
| 3 | - Gemfile | 3 | - Gemfile |
| 4 | - Gemfile.lock | 4 | - Gemfile.lock |
| 5 | #kramdown: | 5 | - Makefile |
| 6 | # input: GFM | 6 | - notes.md |
| 7 | # hard_wrap: false | ||
| 8 | #future: true | ||
| 9 | #jailed: false | ||
| 10 | |||
| 11 | #highlighter: rouge | ||
| 12 | markdown: kramdown | ||
| 13 | 7 | ||
| 14 | permalink: /:title | 8 | permalink: /:title |
| 15 | 9 | ||
| 10 | kramdown: | ||
| 11 | auto_ids: true | ||
| 12 | entity_output: as_char | ||
| 13 | toc_levels: 1..6 | ||
| 14 | smart_quotes: lsquo,rsquo,ldquo,rdquo | ||
| 15 | input: GFM | ||
| 16 | hard_wrap: false | ||
| 17 | footnote_nr: 1 | ||
| 18 | show_warnings: false | ||
| 19 | syntax_highlighter: rouge | ||
| 20 | |||
| 21 | highlighter: rouge | ||
| 22 | |||
| 16 | #plugins: | 23 | #plugins: |
| 17 | #- jekyll-minifier | 24 | #- jekyll-minifier |
diff --git a/_includes/footer.html b/_includes/footer.html index dc281c6..89ae5a1 100644 --- a/_includes/footer.html +++ b/_includes/footer.html | |||
| @@ -1,3 +1 @@ | |||
| 1 | <footer> | <footer></footer> | |
| 2 | @@footer@@ | ||
| 3 | </footer> | ||
diff --git a/_includes/highlight.css b/_includes/highlight.css new file mode 100644 index 0000000..009bb21 --- /dev/null +++ b/_includes/highlight.css | |||
| @@ -0,0 +1,77 @@ | |||
| 1 | .highlight table td { padding: 5px; } | ||
| 2 | .highlight table pre { margin: 0; } | ||
| 3 | .highlight, .highlight .w { | ||
| 4 | color: #586e75; | ||
| 5 | } | ||
| 6 | .highlight .err { | ||
| 7 | color: #002b36; | ||
| 8 | background-color: #dc322f; | ||
| 9 | } | ||
| 10 | .highlight .c, .highlight .cd, .highlight .cm, .highlight .c1, .highlight .cs { | ||
| 11 | color: #657b83; | ||
| 12 | } | ||
| 13 | .highlight .cp { | ||
| 14 | color: #b58900; | ||
| 15 | } | ||
| 16 | .highlight .nt { | ||
| 17 | color: #b58900; | ||
| 18 | } | ||
| 19 | .highlight .o, .highlight .ow { | ||
| 20 | color: #93a1a1; | ||
| 21 | } | ||
| 22 | .highlight .p, .highlight .pi { | ||
| 23 | color: #93a1a1; | ||
| 24 | } | ||
| 25 | .highlight .gi { | ||
| 26 | color: #859900; | ||
| 27 | } | ||
| 28 | .highlight .gd { | ||
| 29 | color: #dc322f; | ||
| 30 | } | ||
| 31 | .highlight .gh { | ||
| 32 | color: #268bd2; | ||
| 33 | background-color: #002b36; | ||
| 34 | font-weight: bold; | ||
| 35 | } | ||
| 36 | .highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv { | ||
| 37 | color: #6c71c4; | ||
| 38 | } | ||
| 39 | .highlight .kc { | ||
| 40 | color: #cb4b16; | ||
| 41 | } | ||
| 42 | .highlight .kt { | ||
| 43 | color: #cb4b16; | ||
| 44 | } | ||
| 45 | .highlight .kd { | ||
| 46 | color: #cb4b16; | ||
| 47 | } | ||
| 48 | .highlight .s, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 { | ||
| 49 | color: #859900; | ||
| 50 | } | ||
| 51 | .highlight .sr { | ||
| 52 | color: #2aa198; | ||
| 53 | } | ||
| 54 | .highlight .si { | ||
| 55 | color: #d33682; | ||
| 56 | } | ||
| 57 | .highlight .se { | ||
| 58 | color: #d33682; | ||
| 59 | } | ||
| 60 | .highlight .nn { | ||
| 61 | color: #b58900; | ||
| 62 | } | ||
| 63 | .highlight .nc { | ||
| 64 | color: #b58900; | ||
| 65 | } | ||
| 66 | .highlight .no { | ||
| 67 | color: #b58900; | ||
| 68 | } | ||
| 69 | .highlight .na { | ||
| 70 | color: #268bd2; | ||
| 71 | } | ||
| 72 | .highlight .m, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mb, .highlight .mx { | ||
| 73 | color: #859900; | ||
| 74 | } | ||
| 75 | .highlight .ss { | ||
| 76 | color: #859900; | ||
| 77 | } | ||
diff --git a/_includes/site.css b/_includes/site.css index 5b49c7f..f169803 100644 --- a/_includes/site.css +++ b/_includes/site.css | |||
| @@ -40,3 +40,8 @@ h5 { | |||
| 40 | h6 { | 40 | h6 { |
| 41 | font-size: 100%; | 41 | font-size: 100%; |
| 42 | } | 42 | } |
| 43 | |||
| 44 | .highlighter-rouge { | ||
| 45 | border: 1px solid #ddd; | ||
| 46 | padding: 0 10px; | ||
| 47 | } | ||
diff --git a/_layouts/index.html b/_layouts/index.html index 872cd2e..a9c649b 100644 --- a/_layouts/index.html +++ b/_layouts/index.html | |||
| @@ -1,34 +1,36 @@ | |||
| 1 | <!doctype html> | 1 | <!doctype html> |
| 2 | <html lang="en"> | 2 | <html lang="en"> |
| 3 | 3 | ||
| 4 | <head> | 4 | <head> |
| 5 | <meta charset="utf-8"> | ||
| 6 | <meta name="theme-color" content="#000000"> | ||
| 7 | <meta name="description" content="{{ page.description }}"> | ||
| 8 | <title>{{ page.title }}</title> | ||
| 9 | 5 | ||
| 10 | <style>{% include site.css %}</style> | 6 | <meta charset="utf-8"> |
| 7 | <meta name="theme-color" content="#000000"> | ||
| 8 | <meta name="description" content="{{ page.description }}"> | ||
| 11 | 9 | ||
| 12 | </head> | 10 | <title>{{ page.title }}</title> |
| 13 | 11 | ||
| 14 | <body> | 12 | <style>{% include site.css %}</style> |
| 15 | 13 | ||
| 16 | {% include header.html %} | 14 | </head> |
| 17 | 15 | ||
| 18 | <main> | 16 | <body> |
| 19 | 17 | ||
| 20 | <ul> | 18 | {% include header.html %} |
| 21 | {% for post in site.posts %} | ||
| 22 | <li> | ||
| 23 | {{ post.date | date: "%m/%d/%Y" }} | ||
| 24 | <a href="{{ post.url }}">{{ post.title }}</a> | ||
| 25 | </li> | ||
| 26 | {% endfor %} | ||
| 27 | </ul> | ||
| 28 | </main> | ||
| 29 | 19 | ||
| 30 | {% include footer.html %} | 20 | <main> |
| 31 | 21 | ||
| 32 | </body> | 22 | <ul> |
| 23 | {% for post in site.posts %} | ||
| 24 | <li> | ||
| 25 | {{ post.date | date: "%m/%d/%Y" }} | ||
| 26 | <a href="{{ post.url }}">{{ post.title }}</a> | ||
| 27 | </li> | ||
| 28 | {% endfor %} | ||
| 29 | </ul> | ||
| 30 | </main> | ||
| 31 | |||
| 32 | {% include footer.html %} | ||
| 33 | |||
| 34 | </body> | ||
| 33 | 35 | ||
| 34 | </html> | 36 | </html> |
diff --git a/_layouts/page.html b/_layouts/page.html index b3d2fc4..d9356d1 100644 --- a/_layouts/page.html +++ b/_layouts/page.html | |||
| @@ -2,18 +2,23 @@ | |||
| 2 | <html lang="en"> | 2 | <html lang="en"> |
| 3 | 3 | ||
| 4 | <head> | 4 | <head> |
| 5 | |||
| 5 | <meta charset="utf-8"> | 6 | <meta charset="utf-8"> |
| 6 | <meta name="theme-color" content="#000000"> | 7 | <meta name="theme-color" content="#000000"> |
| 7 | <meta name="description" content="{{ page.description }}"> | 8 | <meta name="description" content="{{ page.description }}"> |
| 9 | |||
| 8 | <title>{{ page.title }}</title> | 10 | <title>{{ page.title }}</title> |
| 11 | |||
| 12 | <link rel="stylesheet" href="/assets/css/style.css"> | ||
| 13 | |||
| 14 | <style>{% include site.css %}</style> | ||
| 15 | |||
| 9 | </head> | 16 | </head> |
| 10 | 17 | ||
| 11 | <body> | 18 | <body> |
| 12 | 19 | ||
| 13 | {% include header.html %} | 20 | {% include header.html %} |
| 14 | 21 | ||
| 15 | <h1>page</h1> | ||
| 16 | |||
| 17 | <article> | 22 | <article> |
| 18 | {{ content }} | 23 | {{ content }} |
| 19 | </article> | 24 | </article> |
diff --git a/_layouts/post.html b/_layouts/post.html index a6936cf..f41699e 100644 --- a/_layouts/post.html +++ b/_layouts/post.html | |||
| @@ -2,18 +2,23 @@ | |||
| 2 | <html lang="en"> | 2 | <html lang="en"> |
| 3 | 3 | ||
| 4 | <head> | 4 | <head> |
| 5 | |||
| 5 | <meta charset="utf-8"> | 6 | <meta charset="utf-8"> |
| 6 | <meta name="theme-color" content="#000000"> | 7 | <meta name="theme-color" content="#000000"> |
| 7 | <meta name="description" content="{{ page.description }}"> | 8 | <meta name="description" content="{{ page.description }}"> |
| 9 | |||
| 8 | <title>{{ page.title }}</title> | 10 | <title>{{ page.title }}</title> |
| 11 | |||
| 12 | |||
| 13 | <style>{% include site.css %}</style> | ||
| 14 | <style>{% include highlight.css %}</style> | ||
| 15 | |||
| 9 | </head> | 16 | </head> |
| 10 | 17 | ||
| 11 | <body> | 18 | <body> |
| 12 | 19 | ||
| 13 | {% include header.html %} | 20 | {% include header.html %} |
| 14 | 21 | ||
| 15 | <h1>post</h1> | ||
| 16 | |||
| 17 | <article> | 22 | <article> |
| 18 | {{ content }} | 23 | {{ content }} |
| 19 | </article> | 24 | </article> |
diff --git a/_posts/2011-12-31-about.md b/_posts/2011-12-31-about.md deleted file mode 100644 index cc64685..0000000 --- a/_posts/2011-12-31-about.md +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 1 | --- | ||
| 2 | layout: post | ||
| 3 | title: "Welcome to Jekyll!" | ||
| 4 | date: 2015-11-17 16:16:01 -0600 | ||
| 5 | categories: | ||
| 6 | --- | ||
| 7 | |||
| 8 | ## okidoki | ||
| 9 | |||
| 10 | Here is my page and it's awesome. | ||
| 11 | |||
| 12 | ```javascript | ||
| 13 | console.log('asasdasd'); | ||
| 14 | ``` | ||
| 15 | |||
| 16 | ```ruby | ||
| 17 | def show | ||
| 18 | @widget = Widget(params[:id]) | ||
| 19 | respond_to do |format| | ||
| 20 | format.html # show.html.erb | ||
| 21 | format.json { render json: @widget } | ||
| 22 | end | ||
| 23 | end | ||
| 24 | ``` | ||
| 25 | |||
| 26 | --- | ||
| 27 | |||
| 28 | {% highlight ruby %} | ||
| 29 | def show | ||
| 30 | @widget = Widget(params[:id]) | ||
| 31 | respond_to do |format| | ||
| 32 | format.html # show.html.erb | ||
| 33 | format.json { render json: @widget } | ||
| 34 | end | ||
| 35 | end | ||
| 36 | {% endhighlight %} | ||
diff --git a/_posts/2011-12-31-test-post.md b/_posts/2011-12-31-test-post.md new file mode 100644 index 0000000..ebc76e5 --- /dev/null +++ b/_posts/2011-12-31-test-post.md | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | --- | ||
| 2 | layout: post | ||
| 3 | title: "Test post" | ||
| 4 | categories: | ||
| 5 | --- | ||
| 6 | |||
| 7 | ## okidoki | ||
| 8 | |||
| 9 | Here is my page and it's awesome. | ||
| 10 | |||
| 11 | ```js | ||
| 12 | console.log('asasdasd'); | ||
| 13 | ``` | ||
| 14 | |||
| 15 | This is all ok | ||
| 16 | |||
| 17 | ```ruby | ||
| 18 | def show | ||
| 19 | @widget = Widget(params[:id]) | ||
| 20 | respond_to do |format| | ||
| 21 | format.html # show.html.erb | ||
| 22 | format.json { render json: @widget } | ||
| 23 | end | ||
| 24 | end | ||
| 25 | ``` | ||
