From 6968f50956b5fe82673120bd23fa01b060b5a645 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Mon, 6 Aug 2018 05:35:52 +0200 Subject: qwe --- .jekyll-metadata | Bin 2175 -> 3327 bytes Makefile | 5 ++- _config.yml | 23 +++++++----- _includes/footer.html | 4 +-- _includes/highlight.css | 77 +++++++++++++++++++++++++++++++++++++++++ _includes/site.css | 5 +++ _layouts/index.html | 44 ++++++++++++----------- _layouts/page.html | 9 +++-- _layouts/post.html | 9 +++-- _posts/2011-12-31-about.md | 36 ------------------- _posts/2011-12-31-test-post.md | 25 +++++++++++++ 11 files changed, 164 insertions(+), 73 deletions(-) create mode 100644 _includes/highlight.css delete mode 100644 _posts/2011-12-31-about.md create mode 100644 _posts/2011-12-31-test-post.md diff --git a/.jekyll-metadata b/.jekyll-metadata index 9fe74ee..6eeaaf0 100644 Binary files a/.jekyll-metadata and b/.jekyll-metadata differ diff --git a/Makefile b/Makefile index cfeab73..5db17ff 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,5 @@ -run: +clean: + -rm -Rf _site/ + +run: clean 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 exclude: - Gemfile - Gemfile.lock -#kramdown: -# input: GFM -# hard_wrap: false -#future: true -#jailed: false - -#highlighter: rouge -markdown: kramdown +- Makefile +- notes.md permalink: /:title +kramdown: + auto_ids: true + entity_output: as_char + toc_levels: 1..6 + smart_quotes: lsquo,rsquo,ldquo,rdquo + input: GFM + hard_wrap: false + footnote_nr: 1 + show_warnings: false + syntax_highlighter: rouge + +highlighter: rouge + #plugins: #- 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 @@ - + 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 @@ +.highlight table td { padding: 5px; } +.highlight table pre { margin: 0; } +.highlight, .highlight .w { + color: #586e75; +} +.highlight .err { + color: #002b36; + background-color: #dc322f; +} +.highlight .c, .highlight .cd, .highlight .cm, .highlight .c1, .highlight .cs { + color: #657b83; +} +.highlight .cp { + color: #b58900; +} +.highlight .nt { + color: #b58900; +} +.highlight .o, .highlight .ow { + color: #93a1a1; +} +.highlight .p, .highlight .pi { + color: #93a1a1; +} +.highlight .gi { + color: #859900; +} +.highlight .gd { + color: #dc322f; +} +.highlight .gh { + color: #268bd2; + background-color: #002b36; + font-weight: bold; +} +.highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv { + color: #6c71c4; +} +.highlight .kc { + color: #cb4b16; +} +.highlight .kt { + color: #cb4b16; +} +.highlight .kd { + color: #cb4b16; +} +.highlight .s, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 { + color: #859900; +} +.highlight .sr { + color: #2aa198; +} +.highlight .si { + color: #d33682; +} +.highlight .se { + color: #d33682; +} +.highlight .nn { + color: #b58900; +} +.highlight .nc { + color: #b58900; +} +.highlight .no { + color: #b58900; +} +.highlight .na { + color: #268bd2; +} +.highlight .m, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mb, .highlight .mx { + color: #859900; +} +.highlight .ss { + color: #859900; +} 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 { h6 { font-size: 100%; } + +.highlighter-rouge { + border: 1px solid #ddd; + padding: 0 10px; +} 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 @@ - - - - - {{ page.title }} + - + + + - + {{ page.title }} - + - {% include header.html %} + -
+ - -
+ {% include header.html %} - {% include footer.html %} +
- + +
+ + {% include footer.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 @@ + + {{ page.title }} + + + + + {% include header.html %} -

page

-
{{ content }}
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 @@ + + {{ page.title }} + + + + + {% include header.html %} -

post

-
{{ content }}
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 @@ ---- -layout: post -title: "Welcome to Jekyll!" -date: 2015-11-17 16:16:01 -0600 -categories: ---- - -## okidoki - -Here is my page and it's awesome. - -`​``javascript -console.log('asasdasd'); -`​`` - -```ruby -def show - @widget = Widget(params[:id]) - respond_to do |format| - format.html # show.html.erb - format.json { render json: @widget } - end -end -``` - ---- - -{% highlight ruby %} -def show - @widget = Widget(params[:id]) - respond_to do |format| - format.html # show.html.erb - format.json { render json: @widget } - end -end -{% 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 @@ +--- +layout: post +title: "Test post" +categories: +--- + +## okidoki + +Here is my page and it's awesome. + +```js +console.log('asasdasd'); +``` + +This is all ok + +```ruby +def show + @widget = Widget(params[:id]) + respond_to do |format| + format.html # show.html.erb + format.json { render json: @widget } + end +end +``` -- cgit v1.2.3