From 7c76b79c12ad0d5807752aabb5a7a259e47191a6 Mon Sep 17 00:00:00 2001 From: Achilleas Pipinellis Date: Sat, 25 Jul 2015 09:46:53 +0300 Subject: [PATCH 01/12] Prerelease version 0.6.0 --- version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.rb b/version.rb index b7eb371..ff7eefa 100644 --- a/version.rb +++ b/version.rb @@ -1,3 +1,3 @@ module Version - version = '0.5.1' + version = '0.6.0' end From 9d792122312d83a9b870096b70ed99bfaf8f0cdd Mon Sep 17 00:00:00 2001 From: Achilleas Pipinellis Date: Sat, 25 Jul 2015 11:17:26 +0300 Subject: [PATCH 02/12] Version 0.6.0rc2 --- version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.rb b/version.rb index ff7eefa..a09aaf6 100644 --- a/version.rb +++ b/version.rb @@ -1,3 +1,3 @@ module Version - version = '0.6.0' + version = '0.6.0rc2' end From 3dc089ef7d1fa7c4ac0e6cff8c1ae4f0956cdc17 Mon Sep 17 00:00:00 2001 From: Achilleas Pipinellis Date: Sun, 2 Aug 2015 11:51:39 +0300 Subject: [PATCH 03/12] Add index.html page --- index.html | 1 + 1 file changed, 1 insertion(+) create mode 100644 index.html diff --git a/index.html b/index.html new file mode 100644 index 0000000..27e8bc2 --- /dev/null +++ b/index.html @@ -0,0 +1 @@ +Welcome to the first page! From d12cfe94c25c0f1c673e76a3376a38d533f3958a Mon Sep 17 00:00:00 2001 From: Achilleas Pipinellis Date: Sun, 2 Aug 2015 11:52:41 +0300 Subject: [PATCH 04/12] Remove non html files --- README.md | 1 - version.rb | 3 --- 2 files changed, 4 deletions(-) delete mode 100644 README.md delete mode 100644 version.rb diff --git a/README.md b/README.md deleted file mode 100644 index 91bf601..0000000 --- a/README.md +++ /dev/null @@ -1 +0,0 @@ -# github-essentials diff --git a/version.rb b/version.rb deleted file mode 100644 index a09aaf6..0000000 --- a/version.rb +++ /dev/null @@ -1,3 +0,0 @@ -module Version - version = '0.6.0rc2' -end From 2fb83ecde35a09dd057df7198da146409138eb40 Mon Sep 17 00:00:00 2001 From: Achilleas Pipinellis Date: Mon, 3 Aug 2015 01:26:57 +0300 Subject: [PATCH 05/12] Init commit using Jekyll --- .bundle/config | 4 + .gitignore | 3 + Gemfile | 2 + Gemfile.lock | 128 ++++++++++ _config.yml | 12 + _includes/footer.html | 55 +++++ _includes/head.html | 11 + _includes/header.html | 27 +++ _layouts/default.html | 20 ++ _layouts/page.html | 14 ++ _layouts/post.html | 15 ++ _posts/2015-08-03-welcome-to-jekyll.markdown | 25 ++ _sass/_base.scss | 204 ++++++++++++++++ _sass/_layout.scss | 236 +++++++++++++++++++ _sass/_syntax-highlighting.scss | 67 ++++++ about.md | 11 + css/main.scss | 49 ++++ feed.xml | 30 +++ index.html | 24 +- 19 files changed, 936 insertions(+), 1 deletion(-) create mode 100644 .bundle/config create mode 100644 .gitignore create mode 100644 Gemfile create mode 100644 Gemfile.lock create mode 100644 _config.yml create mode 100644 _includes/footer.html create mode 100644 _includes/head.html create mode 100644 _includes/header.html create mode 100644 _layouts/default.html create mode 100644 _layouts/page.html create mode 100644 _layouts/post.html create mode 100644 _posts/2015-08-03-welcome-to-jekyll.markdown create mode 100644 _sass/_base.scss create mode 100644 _sass/_layout.scss create mode 100644 _sass/_syntax-highlighting.scss create mode 100644 about.md create mode 100755 css/main.scss create mode 100644 feed.xml diff --git a/.bundle/config b/.bundle/config new file mode 100644 index 0000000..03add49 --- /dev/null +++ b/.bundle/config @@ -0,0 +1,4 @@ +--- +BUNDLE_PATH: "./.vendor/bundle" +BUNDLE_JOBS: 8 +BUNDLE_DISABLE_SHARED_GEMS: '1' diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e7833e9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +_site +.sass-cache +.vendor/ diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..053c27d --- /dev/null +++ b/Gemfile @@ -0,0 +1,2 @@ +source 'https://rubygems.org' +gem 'github-pages' diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..894f48e --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,128 @@ +GEM + remote: https://rubygems.org/ + specs: + RedCloth (4.2.9) + activesupport (4.2.3) + i18n (~> 0.7) + json (~> 1.7, >= 1.7.7) + minitest (~> 5.1) + thread_safe (~> 0.3, >= 0.3.4) + tzinfo (~> 1.1) + blankslate (2.1.2.4) + celluloid (0.16.0) + timers (~> 4.0.0) + classifier-reborn (2.0.3) + fast-stemmer (~> 1.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.9.1.1) + colorator (0.1) + execjs (2.5.2) + fast-stemmer (1.0.2) + ffi (1.9.10) + gemoji (2.1.0) + github-pages (38) + RedCloth (= 4.2.9) + github-pages-health-check (~> 0.2) + jekyll (= 2.4.0) + jekyll-coffeescript (= 1.0.1) + jekyll-feed (= 0.3.0) + jekyll-mentions (= 0.2.1) + jekyll-redirect-from (= 0.8.0) + jekyll-sass-converter (= 1.2.0) + jekyll-sitemap (= 0.8.1) + jemoji (= 0.4.0) + kramdown (= 1.5.0) + liquid (= 2.6.2) + maruku (= 0.7.0) + mercenary (~> 0.3) + pygments.rb (= 0.6.3) + rdiscount (= 2.1.7) + redcarpet (= 3.3.1) + terminal-table (~> 1.4) + github-pages-health-check (0.3.1) + net-dns (~> 0.6) + public_suffix (~> 1.4) + hitimes (1.2.2) + html-pipeline (1.9.0) + activesupport (>= 2) + nokogiri (~> 1.4) + i18n (0.7.0) + jekyll (2.4.0) + classifier-reborn (~> 2.0) + colorator (~> 0.1) + jekyll-coffeescript (~> 1.0) + jekyll-gist (~> 1.0) + jekyll-paginate (~> 1.0) + jekyll-sass-converter (~> 1.0) + jekyll-watch (~> 1.1) + kramdown (~> 1.3) + liquid (~> 2.6.1) + mercenary (~> 0.3.3) + pygments.rb (~> 0.6.0) + redcarpet (~> 3.1) + safe_yaml (~> 1.0) + toml (~> 0.1.0) + jekyll-coffeescript (1.0.1) + coffee-script (~> 2.2) + jekyll-feed (0.3.0) + jekyll-gist (1.2.1) + jekyll-mentions (0.2.1) + html-pipeline (~> 1.9.0) + jekyll (~> 2.0) + jekyll-paginate (1.1.0) + jekyll-redirect-from (0.8.0) + jekyll (>= 2.0) + jekyll-sass-converter (1.2.0) + sass (~> 3.2) + jekyll-sitemap (0.8.1) + jekyll-watch (1.2.1) + listen (~> 2.7) + jemoji (0.4.0) + gemoji (~> 2.0) + html-pipeline (~> 1.9) + jekyll (~> 2.0) + json (1.8.3) + kramdown (1.5.0) + liquid (2.6.2) + listen (2.10.1) + celluloid (~> 0.16.0) + rb-fsevent (>= 0.9.3) + rb-inotify (>= 0.9) + maruku (0.7.0) + mercenary (0.3.5) + mini_portile (0.6.2) + minitest (5.7.0) + net-dns (0.8.0) + nokogiri (1.6.6.2) + mini_portile (~> 0.6.0) + parslet (1.5.0) + blankslate (~> 2.0) + posix-spawn (0.3.11) + public_suffix (1.5.1) + pygments.rb (0.6.3) + posix-spawn (~> 0.3.6) + yajl-ruby (~> 1.2.0) + rb-fsevent (0.9.5) + rb-inotify (0.9.5) + ffi (>= 0.5.0) + rdiscount (2.1.7) + redcarpet (3.3.1) + safe_yaml (1.0.4) + sass (3.4.16) + terminal-table (1.5.2) + thread_safe (0.3.5) + timers (4.0.1) + hitimes + toml (0.1.2) + parslet (~> 1.5.0) + tzinfo (1.2.2) + thread_safe (~> 0.1) + yajl-ruby (1.2.1) + +PLATFORMS + ruby + +DEPENDENCIES + github-pages diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..23c2119 --- /dev/null +++ b/_config.yml @@ -0,0 +1,12 @@ +# Site settings +title: GitHub Essentials +email: me@githubessentials.com +description: > # this means to ignore newlines until "baseurl:" + A book about GitHub basics. +baseurl: "" # the subpath of your site, e.g. /blog/ +url: "http://yourdomain.com" # the base hostname & protocol for your site +twitter_username: _axil +github_username: axilleas + +# Build settings +markdown: kramdown diff --git a/_includes/footer.html b/_includes/footer.html new file mode 100644 index 0000000..be3976f --- /dev/null +++ b/_includes/footer.html @@ -0,0 +1,55 @@ + diff --git a/_includes/head.html b/_includes/head.html new file mode 100644 index 0000000..4d7e8f0 --- /dev/null +++ b/_includes/head.html @@ -0,0 +1,11 @@ + + + + + + {% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %} + + + + + diff --git a/_includes/header.html b/_includes/header.html new file mode 100644 index 0000000..cfe381f --- /dev/null +++ b/_includes/header.html @@ -0,0 +1,27 @@ + diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..e4ab96f --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,20 @@ + + + + {% include head.html %} + + + + {% include header.html %} + +
+
+ {{ content }} +
+
+ + {% include footer.html %} + + + + diff --git a/_layouts/page.html b/_layouts/page.html new file mode 100644 index 0000000..74c1a11 --- /dev/null +++ b/_layouts/page.html @@ -0,0 +1,14 @@ +--- +layout: default +--- +
+ +
+

{{ page.title }}

+
+ +
+ {{ content }} +
+ +
diff --git a/_layouts/post.html b/_layouts/post.html new file mode 100644 index 0000000..a2b4e52 --- /dev/null +++ b/_layouts/post.html @@ -0,0 +1,15 @@ +--- +layout: default +--- +
+ +
+

{{ page.title }}

+ +
+ +
+ {{ content }} +
+ +
diff --git a/_posts/2015-08-03-welcome-to-jekyll.markdown b/_posts/2015-08-03-welcome-to-jekyll.markdown new file mode 100644 index 0000000..f727ce0 --- /dev/null +++ b/_posts/2015-08-03-welcome-to-jekyll.markdown @@ -0,0 +1,25 @@ +--- +layout: post +title: "Welcome to Jekyll!" +date: 2015-08-03 00:53:58 +categories: jekyll update +--- +You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve --watch`, which launches a web server and auto-regenerates your site when a file is updated. + +To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works. + +Jekyll also offers powerful support for code snippets: + +{% highlight ruby %} +def print_hi(name) + puts "Hi, #{name}" +end +print_hi('Tom') +#=> prints 'Hi, Tom' to STDOUT. +{% endhighlight %} + +Check out the [Jekyll docs][jekyll] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll’s dedicated Help repository][jekyll-help]. + +[jekyll]: http://jekyllrb.com +[jekyll-gh]: https://github.com/jekyll/jekyll +[jekyll-help]: https://github.com/jekyll/jekyll-help diff --git a/_sass/_base.scss b/_sass/_base.scss new file mode 100644 index 0000000..518bf2b --- /dev/null +++ b/_sass/_base.scss @@ -0,0 +1,204 @@ +/** + * Reset some basic elements + */ +body, h1, h2, h3, h4, h5, h6, +p, blockquote, pre, hr, +dl, dd, ol, ul, figure { + margin: 0; + padding: 0; +} + + + +/** + * Basic styling + */ +body { + font-family: $base-font-family; + font-size: $base-font-size; + line-height: $base-line-height; + font-weight: 300; + color: $text-color; + background-color: $background-color; + -webkit-text-size-adjust: 100%; +} + + + +/** + * Set `margin-bottom` to maintain vertical rhythm + */ +h1, h2, h3, h4, h5, h6, +p, blockquote, pre, +ul, ol, dl, figure, +%vertical-rhythm { + margin-bottom: $spacing-unit / 2; +} + + + +/** + * Images + */ +img { + max-width: 100%; + vertical-align: middle; +} + + + +/** + * Figures + */ +figure > img { + display: block; +} + +figcaption { + font-size: $small-font-size; +} + + + +/** + * Lists + */ +ul, ol { + margin-left: $spacing-unit; +} + +li { + > ul, + > ol { + margin-bottom: 0; + } +} + + + +/** + * Headings + */ +h1, h2, h3, h4, h5, h6 { + font-weight: 300; +} + + + +/** + * Links + */ +a { + color: $brand-color; + text-decoration: none; + + &:visited { + color: darken($brand-color, 15%); + } + + &:hover { + color: $text-color; + text-decoration: underline; + } +} + + + +/** + * Blockquotes + */ +blockquote { + color: $grey-color; + border-left: 4px solid $grey-color-light; + padding-left: $spacing-unit / 2; + font-size: 18px; + letter-spacing: -1px; + font-style: italic; + + > :last-child { + margin-bottom: 0; + } +} + + + +/** + * Code formatting + */ +pre, +code { + font-size: 15px; + border: 1px solid $grey-color-light; + border-radius: 3px; + background-color: #eef; +} + +code { + padding: 1px 5px; +} + +pre { + padding: 8px 12px; + overflow-x: scroll; + + > code { + border: 0; + padding-right: 0; + padding-left: 0; + } +} + + + +/** + * Wrapper + */ +.wrapper { + max-width: -webkit-calc(800px - (#{$spacing-unit} * 2)); + max-width: calc(800px - (#{$spacing-unit} * 2)); + margin-right: auto; + margin-left: auto; + padding-right: $spacing-unit; + padding-left: $spacing-unit; + @extend %clearfix; + + @include media-query($on-laptop) { + max-width: -webkit-calc(800px - (#{$spacing-unit})); + max-width: calc(800px - (#{$spacing-unit})); + padding-right: $spacing-unit / 2; + padding-left: $spacing-unit / 2; + } +} + + + +/** + * Clearfix + */ +%clearfix { + + &:after { + content: ""; + display: table; + clear: both; + } +} + + + +/** + * Icons + */ +.icon { + + > svg { + display: inline-block; + width: 16px; + height: 16px; + vertical-align: middle; + + path { + fill: $grey-color; + } + } +} diff --git a/_sass/_layout.scss b/_sass/_layout.scss new file mode 100644 index 0000000..def56f8 --- /dev/null +++ b/_sass/_layout.scss @@ -0,0 +1,236 @@ +/** + * Site header + */ +.site-header { + border-top: 5px solid $grey-color-dark; + border-bottom: 1px solid $grey-color-light; + min-height: 56px; + + // Positioning context for the mobile navigation icon + position: relative; +} + +.site-title { + font-size: 26px; + line-height: 56px; + letter-spacing: -1px; + margin-bottom: 0; + float: left; + + &, + &:visited { + color: $grey-color-dark; + } +} + +.site-nav { + float: right; + line-height: 56px; + + .menu-icon { + display: none; + } + + .page-link { + color: $text-color; + line-height: $base-line-height; + + // Gaps between nav items, but not on the first one + &:not(:first-child) { + margin-left: 20px; + } + } + + @include media-query($on-palm) { + position: absolute; + top: 9px; + right: 30px; + background-color: $background-color; + border: 1px solid $grey-color-light; + border-radius: 5px; + text-align: right; + + .menu-icon { + display: block; + float: right; + width: 36px; + height: 26px; + line-height: 0; + padding-top: 10px; + text-align: center; + + > svg { + width: 18px; + height: 15px; + + path { + fill: $grey-color-dark; + } + } + } + + .trigger { + clear: both; + display: none; + } + + &:hover .trigger { + display: block; + padding-bottom: 5px; + } + + .page-link { + display: block; + padding: 5px 10px; + } + } +} + + + +/** + * Site footer + */ +.site-footer { + border-top: 1px solid $grey-color-light; + padding: $spacing-unit 0; +} + +.footer-heading { + font-size: 18px; + margin-bottom: $spacing-unit / 2; +} + +.contact-list, +.social-media-list { + list-style: none; + margin-left: 0; +} + +.footer-col-wrapper { + font-size: 15px; + color: $grey-color; + margin-left: -$spacing-unit / 2; + @extend %clearfix; +} + +.footer-col { + float: left; + margin-bottom: $spacing-unit / 2; + padding-left: $spacing-unit / 2; +} + +.footer-col-1 { + width: -webkit-calc(35% - (#{$spacing-unit} / 2)); + width: calc(35% - (#{$spacing-unit} / 2)); +} + +.footer-col-2 { + width: -webkit-calc(20% - (#{$spacing-unit} / 2)); + width: calc(20% - (#{$spacing-unit} / 2)); +} + +.footer-col-3 { + width: -webkit-calc(45% - (#{$spacing-unit} / 2)); + width: calc(45% - (#{$spacing-unit} / 2)); +} + +@include media-query($on-laptop) { + .footer-col-1, + .footer-col-2 { + width: -webkit-calc(50% - (#{$spacing-unit} / 2)); + width: calc(50% - (#{$spacing-unit} / 2)); + } + + .footer-col-3 { + width: -webkit-calc(100% - (#{$spacing-unit} / 2)); + width: calc(100% - (#{$spacing-unit} / 2)); + } +} + +@include media-query($on-palm) { + .footer-col { + float: none; + width: -webkit-calc(100% - (#{$spacing-unit} / 2)); + width: calc(100% - (#{$spacing-unit} / 2)); + } +} + + + +/** + * Page content + */ +.page-content { + padding: $spacing-unit 0; +} + +.page-heading { + font-size: 20px; +} + +.post-list { + margin-left: 0; + list-style: none; + + > li { + margin-bottom: $spacing-unit; + } +} + +.post-meta { + font-size: $small-font-size; + color: $grey-color; +} + +.post-link { + display: block; + font-size: 24px; +} + + + +/** + * Posts + */ +.post-header { + margin-bottom: $spacing-unit; +} + +.post-title { + font-size: 42px; + letter-spacing: -1px; + line-height: 1; + + @include media-query($on-laptop) { + font-size: 36px; + } +} + +.post-content { + margin-bottom: $spacing-unit; + + h2 { + font-size: 32px; + + @include media-query($on-laptop) { + font-size: 28px; + } + } + + h3 { + font-size: 26px; + + @include media-query($on-laptop) { + font-size: 22px; + } + } + + h4 { + font-size: 20px; + + @include media-query($on-laptop) { + font-size: 18px; + } + } +} diff --git a/_sass/_syntax-highlighting.scss b/_sass/_syntax-highlighting.scss new file mode 100644 index 0000000..e36627d --- /dev/null +++ b/_sass/_syntax-highlighting.scss @@ -0,0 +1,67 @@ +/** + * Syntax highlighting styles + */ +.highlight { + background: #fff; + @extend %vertical-rhythm; + + .c { color: #998; font-style: italic } // Comment + .err { color: #a61717; background-color: #e3d2d2 } // Error + .k { font-weight: bold } // Keyword + .o { font-weight: bold } // Operator + .cm { color: #998; font-style: italic } // Comment.Multiline + .cp { color: #999; font-weight: bold } // Comment.Preproc + .c1 { color: #998; font-style: italic } // Comment.Single + .cs { color: #999; font-weight: bold; font-style: italic } // Comment.Special + .gd { color: #000; background-color: #fdd } // Generic.Deleted + .gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific + .ge { font-style: italic } // Generic.Emph + .gr { color: #a00 } // Generic.Error + .gh { color: #999 } // Generic.Heading + .gi { color: #000; background-color: #dfd } // Generic.Inserted + .gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific + .go { color: #888 } // Generic.Output + .gp { color: #555 } // Generic.Prompt + .gs { font-weight: bold } // Generic.Strong + .gu { color: #aaa } // Generic.Subheading + .gt { color: #a00 } // Generic.Traceback + .kc { font-weight: bold } // Keyword.Constant + .kd { font-weight: bold } // Keyword.Declaration + .kp { font-weight: bold } // Keyword.Pseudo + .kr { font-weight: bold } // Keyword.Reserved + .kt { color: #458; font-weight: bold } // Keyword.Type + .m { color: #099 } // Literal.Number + .s { color: #d14 } // Literal.String + .na { color: #008080 } // Name.Attribute + .nb { color: #0086B3 } // Name.Builtin + .nc { color: #458; font-weight: bold } // Name.Class + .no { color: #008080 } // Name.Constant + .ni { color: #800080 } // Name.Entity + .ne { color: #900; font-weight: bold } // Name.Exception + .nf { color: #900; font-weight: bold } // Name.Function + .nn { color: #555 } // Name.Namespace + .nt { color: #000080 } // Name.Tag + .nv { color: #008080 } // Name.Variable + .ow { font-weight: bold } // Operator.Word + .w { color: #bbb } // Text.Whitespace + .mf { color: #099 } // Literal.Number.Float + .mh { color: #099 } // Literal.Number.Hex + .mi { color: #099 } // Literal.Number.Integer + .mo { color: #099 } // Literal.Number.Oct + .sb { color: #d14 } // Literal.String.Backtick + .sc { color: #d14 } // Literal.String.Char + .sd { color: #d14 } // Literal.String.Doc + .s2 { color: #d14 } // Literal.String.Double + .se { color: #d14 } // Literal.String.Escape + .sh { color: #d14 } // Literal.String.Heredoc + .si { color: #d14 } // Literal.String.Interpol + .sx { color: #d14 } // Literal.String.Other + .sr { color: #009926 } // Literal.String.Regex + .s1 { color: #d14 } // Literal.String.Single + .ss { color: #990073 } // Literal.String.Symbol + .bp { color: #999 } // Name.Builtin.Pseudo + .vc { color: #008080 } // Name.Variable.Class + .vg { color: #008080 } // Name.Variable.Global + .vi { color: #008080 } // Name.Variable.Instance + .il { color: #099 } // Literal.Number.Integer.Long +} diff --git a/about.md b/about.md new file mode 100644 index 0000000..3ed64bb --- /dev/null +++ b/about.md @@ -0,0 +1,11 @@ +--- +layout: page +title: About +permalink: /about/ +--- + +This is the base Jekyll theme. You can find out more info about customizing your Jekyll theme, as well as basic Jekyll usage documentation at [jekyllrb.com](http://jekyllrb.com/) + +You can find the source code for the Jekyll new theme at: [github.com/jglovier/jekyll-new](https://github.com/jglovier/jekyll-new) + +You can find the source code for Jekyll at [github.com/jekyll/jekyll](https://github.com/jekyll/jekyll) diff --git a/css/main.scss b/css/main.scss new file mode 100755 index 0000000..f03d1c3 --- /dev/null +++ b/css/main.scss @@ -0,0 +1,49 @@ +--- +# Only the main Sass file needs front matter (the dashes are enough) +--- +@charset "utf-8"; + + + +// Our variables +$base-font-family: Helvetica, Arial, sans-serif; +$base-font-size: 16px; +$small-font-size: $base-font-size * 0.875; +$base-line-height: 1.5; + +$spacing-unit: 30px; + +$text-color: #111; +$background-color: #fdfdfd; +$brand-color: #2a7ae2; + +$grey-color: #828282; +$grey-color-light: lighten($grey-color, 40%); +$grey-color-dark: darken($grey-color, 25%); + +$on-palm: 600px; +$on-laptop: 800px; + + + +// Using media queries with like this: +// @include media-query($palm) { +// .wrapper { +// padding-right: $spacing-unit / 2; +// padding-left: $spacing-unit / 2; +// } +// } +@mixin media-query($device) { + @media screen and (max-width: $device) { + @content; + } +} + + + +// Import partials from `sass_dir` (defaults to `_sass`) +@import + "base", + "layout", + "syntax-highlighting" +; diff --git a/feed.xml b/feed.xml new file mode 100644 index 0000000..022378b --- /dev/null +++ b/feed.xml @@ -0,0 +1,30 @@ +--- +layout: null +--- + + + + {{ site.title | xml_escape }} + {{ site.description | xml_escape }} + {{ site.url }}{{ site.baseurl }}/ + + {{ site.time | date_to_rfc822 }} + {{ site.time | date_to_rfc822 }} + Jekyll v{{ jekyll.version }} + {% for post in site.posts limit:10 %} + + {{ post.title | xml_escape }} + {{ post.content | xml_escape }} + {{ post.date | date_to_rfc822 }} + {{ post.url | prepend: site.baseurl | prepend: site.url }} + {{ post.url | prepend: site.baseurl | prepend: site.url }} + {% for tag in post.tags %} + {{ tag | xml_escape }} + {% endfor %} + {% for cat in post.categories %} + {{ cat | xml_escape }} + {% endfor %} + + {% endfor %} + + diff --git a/index.html b/index.html index 27e8bc2..83d9398 100644 --- a/index.html +++ b/index.html @@ -1 +1,23 @@ -Welcome to the first page! +--- +layout: default +--- + +
+ +

Posts

+ +
    + {% for post in site.posts %} +
  • + + +

    + {{ post.title }} +

    +
  • + {% endfor %} +
+ +

subscribe via RSS

+ +
From d8870e221df864e32bbcb01124921d60e3e11e60 Mon Sep 17 00:00:00 2001 From: Achilleas Pipinellis Date: Mon, 3 Aug 2015 01:38:27 +0300 Subject: [PATCH 06/12] Change base url. --- _config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_config.yml b/_config.yml index 23c2119..1b6b739 100644 --- a/_config.yml +++ b/_config.yml @@ -3,8 +3,8 @@ title: GitHub Essentials email: me@githubessentials.com description: > # this means to ignore newlines until "baseurl:" A book about GitHub basics. -baseurl: "" # the subpath of your site, e.g. /blog/ -url: "http://yourdomain.com" # the base hostname & protocol for your site +baseurl: "/github-essentials/" # the subpath of your site, e.g. /blog/ +url: "http://axilleas.me" # the base hostname & protocol for your site twitter_username: _axil github_username: axilleas From 63c30bc55c771ef8a35da7af7b6643745fcbfd63 Mon Sep 17 00:00:00 2001 From: Achilleas Pipinellis Date: Mon, 3 Aug 2015 01:44:08 +0300 Subject: [PATCH 07/12] Ignore .bundle/ --- .bundle/config | 4 ---- .gitignore | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100644 .bundle/config diff --git a/.bundle/config b/.bundle/config deleted file mode 100644 index 03add49..0000000 --- a/.bundle/config +++ /dev/null @@ -1,4 +0,0 @@ ---- -BUNDLE_PATH: "./.vendor/bundle" -BUNDLE_JOBS: 8 -BUNDLE_DISABLE_SHARED_GEMS: '1' diff --git a/.gitignore b/.gitignore index e7833e9..aa0d0b9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ _site .sass-cache .vendor/ +.bundle/ From 22b1d5fefec7bf46b5b6d45b22e84d9787b9d87e Mon Sep 17 00:00:00 2001 From: Achilleas Pipinellis Date: Tue, 4 Aug 2015 12:58:35 +0300 Subject: [PATCH 08/12] New post --- ...15-08-04-testing-github-metadata-with-jekyll.markdown | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 _posts/2015-08-04-testing-github-metadata-with-jekyll.markdown diff --git a/_posts/2015-08-04-testing-github-metadata-with-jekyll.markdown b/_posts/2015-08-04-testing-github-metadata-with-jekyll.markdown new file mode 100644 index 0000000..5f3f642 --- /dev/null +++ b/_posts/2015-08-04-testing-github-metadata-with-jekyll.markdown @@ -0,0 +1,9 @@ +--- +layout: post +title: "Testing GitHub metadata with Jekyll" +date: 2015-08-04 00:00:00 +categories: jekyll github +--- + +The name of this project is {{ site.github.project_title }} and is owned by +[{{site.github.owner_name}}]({{github.site.owner_url}}). From c336f723f575583f30af68c0c08b4d2ebaf4f95a Mon Sep 17 00:00:00 2001 From: Achilleas Pipinellis Date: Tue, 4 Aug 2015 13:01:17 +0300 Subject: [PATCH 09/12] Fix wrong url path --- .../2015-08-04-testing-github-metadata-with-jekyll.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_posts/2015-08-04-testing-github-metadata-with-jekyll.markdown b/_posts/2015-08-04-testing-github-metadata-with-jekyll.markdown index 5f3f642..c894b8d 100644 --- a/_posts/2015-08-04-testing-github-metadata-with-jekyll.markdown +++ b/_posts/2015-08-04-testing-github-metadata-with-jekyll.markdown @@ -5,5 +5,5 @@ date: 2015-08-04 00:00:00 categories: jekyll github --- -The name of this project is {{ site.github.project_title }} and is owned by -[{{site.github.owner_name}}]({{github.site.owner_url}}). +The name of this project is {{ site.github.project_title }}, owned by +**{{site.github.owner_name}}** and hosted at <{{github.site.owner_url}}>. From c7ac3228e4d3317bea56eeca83b6599163f6bcfb Mon Sep 17 00:00:00 2001 From: Achilleas Pipinellis Date: Tue, 4 Aug 2015 13:03:49 +0300 Subject: [PATCH 10/12] Remove <> --- _posts/2015-08-04-testing-github-metadata-with-jekyll.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2015-08-04-testing-github-metadata-with-jekyll.markdown b/_posts/2015-08-04-testing-github-metadata-with-jekyll.markdown index c894b8d..fe7d9f7 100644 --- a/_posts/2015-08-04-testing-github-metadata-with-jekyll.markdown +++ b/_posts/2015-08-04-testing-github-metadata-with-jekyll.markdown @@ -6,4 +6,4 @@ categories: jekyll github --- The name of this project is {{ site.github.project_title }}, owned by -**{{site.github.owner_name}}** and hosted at <{{github.site.owner_url}}>. +**{{site.github.owner_name}}** and hosted at {{github.site.owner_url}}. From 84ac43e21ae4ca693e81cb40f9857d05eb000f38 Mon Sep 17 00:00:00 2001 From: Achilleas Pipinellis Date: Tue, 4 Aug 2015 13:06:21 +0300 Subject: [PATCH 11/12] Use repo url instead of owner --- _posts/2015-08-04-testing-github-metadata-with-jekyll.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2015-08-04-testing-github-metadata-with-jekyll.markdown b/_posts/2015-08-04-testing-github-metadata-with-jekyll.markdown index fe7d9f7..fbf644f 100644 --- a/_posts/2015-08-04-testing-github-metadata-with-jekyll.markdown +++ b/_posts/2015-08-04-testing-github-metadata-with-jekyll.markdown @@ -6,4 +6,4 @@ categories: jekyll github --- The name of this project is {{ site.github.project_title }}, owned by -**{{site.github.owner_name}}** and hosted at {{github.site.owner_url}}. +**{{site.github.owner_name}}** and hosted at {{github.site.repository_url}}. From 0cb27fc9158d369fa39bea079627a3d78f2f9bd5 Mon Sep 17 00:00:00 2001 From: Achilleas Pipinellis Date: Tue, 4 Aug 2015 13:10:00 +0300 Subject: [PATCH 12/12] Remove non-rendered variables --- .../2015-08-04-testing-github-metadata-with-jekyll.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_posts/2015-08-04-testing-github-metadata-with-jekyll.markdown b/_posts/2015-08-04-testing-github-metadata-with-jekyll.markdown index fbf644f..b04383d 100644 --- a/_posts/2015-08-04-testing-github-metadata-with-jekyll.markdown +++ b/_posts/2015-08-04-testing-github-metadata-with-jekyll.markdown @@ -5,5 +5,5 @@ date: 2015-08-04 00:00:00 categories: jekyll github --- -The name of this project is {{ site.github.project_title }}, owned by -**{{site.github.owner_name}}** and hosted at {{github.site.repository_url}}. +The name of this project is {{ site.github.project_title }} and owned by +{{site.github.owner_name}}.