diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..de565cd --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +# Jekyll template +_site/ +.sass-cache/ +.jekyll-cache/ +.jekyll-metadata +# Ignore folders generated by Bundler +.bundle/ +vendor/ + +# Ruby +*.gem +Gemlock.file + +# JetBrains +.idea \ No newline at end of file diff --git a/404.html b/404.html new file mode 100644 index 0000000..c472b4e --- /dev/null +++ b/404.html @@ -0,0 +1,24 @@ +--- +layout: default +--- + + + +
+

404

+ +

Page not found :(

+

The requested page could not be found.

+
diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..3936684 --- /dev/null +++ b/Gemfile @@ -0,0 +1,5 @@ +# frozen_string_literal: true + +source "https://rubygems.org" +gemspec +gem "webrick" \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..e343751 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,89 @@ +PATH + remote: . + specs: + jekyll-theme-hamilton (4.0.0) + jekyll (~> 3.9) + jekyll-feed (~> 0.13) + jekyll-paginate (~> 1.1) + jekyll-seo-tag (~> 2.6) + jekyll-sitemap (~> 1.4) + kramdown-parser-gfm (~> 1.1) + +GEM + remote: https://rubygems.org/ + specs: + addressable (2.8.6) + public_suffix (>= 2.0.2, < 6.0) + colorator (1.1.0) + concurrent-ruby (1.2.3) + em-websocket (0.5.3) + eventmachine (>= 0.12.9) + http_parser.rb (~> 0) + eventmachine (1.2.7) + ffi (1.16.3) + forwardable-extended (2.6.0) + http_parser.rb (0.8.0) + i18n (1.14.1) + concurrent-ruby (~> 1.0) + jekyll (3.9.5) + addressable (~> 2.4) + colorator (~> 1.0) + em-websocket (~> 0.5) + i18n (>= 0.7, < 2) + jekyll-sass-converter (~> 1.0) + jekyll-watch (~> 2.0) + kramdown (>= 1.17, < 3) + liquid (~> 4.0) + mercenary (~> 0.3.3) + pathutil (~> 0.9) + rouge (>= 1.7, < 4) + safe_yaml (~> 1.0) + jekyll-feed (0.17.0) + jekyll (>= 3.7, < 5.0) + jekyll-paginate (1.1.0) + jekyll-sass-converter (1.5.2) + sass (~> 3.4) + jekyll-seo-tag (2.8.0) + jekyll (>= 3.8, < 5.0) + jekyll-sitemap (1.4.0) + jekyll (>= 3.7, < 5.0) + jekyll-watch (2.2.1) + listen (~> 3.0) + kramdown (2.4.0) + rexml + kramdown-parser-gfm (1.1.0) + kramdown (~> 2.0) + liquid (4.0.4) + listen (3.9.0) + rb-fsevent (~> 0.10, >= 0.10.3) + rb-inotify (~> 0.9, >= 0.9.10) + mercenary (0.3.6) + pathutil (0.16.2) + forwardable-extended (~> 2.6) + public_suffix (5.0.4) + rake (12.3.3) + rb-fsevent (0.11.2) + rb-inotify (0.10.1) + ffi (~> 1.0) + rexml (3.2.6) + rouge (3.30.0) + safe_yaml (1.0.5) + sass (3.7.4) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + webrick (1.8.1) + +PLATFORMS + arm64-darwin-23 + ruby + +DEPENDENCIES + bundler (~> 2.0) + jekyll-theme-hamilton! + rake (~> 12.0) + webrick + +BUNDLED WITH + 2.5.6 diff --git a/Kotlin Meetup Cover.png b/Kotlin Meetup Cover.png new file mode 100644 index 0000000..06162d2 Binary files /dev/null and b/Kotlin Meetup Cover.png differ diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..5be6bca --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2020 ngzhio + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md index 2de3348..f9e09bb 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,19 @@ # sdkotlin.github.io San Diego Kotlin User Group Website + +--- + +# Theme + +Forked from: + +https://github.com/zivong/jekyll-theme-hamilton + +--- + +## Build Locally + +```bash +bundle install +bundle exec jekyll serve +``` \ No newline at end of file diff --git a/_config.yml b/_config.yml index a8f8d4e..2a88ade 100644 --- a/_config.yml +++ b/_config.yml @@ -1,3 +1,45 @@ -theme: jekyll-theme-minimal -title: The San Diego Kotlin User Group -description: The SD Kotlin website. +title: SDKotlin +description: SDKotlin Website +author: SDKotlin +avatar: /Kotlin Meetup Cover.png +email: ian@ianbrandt.com + +plugins: + - jekyll-seo-tag + - jekyll-feed + - jekyll-sitemap + - jekyll-paginate + +paginate: 10 + +skin: Daylight + +# Uncomment the below line and set the tracking ID for enabling Google Analytics +# +# google_analytics: + +# Uncomment the below lines and set the Disqus shortname for enabling Disqus +# +# disqus: + +# Jekyll +# ====== +exclude: + - scripts/ + - README.md + - jekyll-theme-hamilton.gemspec + +# Jekyll SEO Tag (Optional) +# ========================= +twitter: + username: sdkotlin + card: summary +logo: Kotlin Meetup Cover.png +social: + name: SDKotlin + links: + - https://twitter.com/sdkotlin + - https://www.facebook.com/sdkotlin + - https://github.com/sdkotlin +google_site_verification: u4WXQl0Eu66rsQo2kRdCNx # TODO new HASH +lang: en diff --git a/_data/navigation.yml b/_data/navigation.yml new file mode 100644 index 0000000..e5bc6c7 --- /dev/null +++ b/_data/navigation.yml @@ -0,0 +1,22 @@ +- title: Announcements + url: /announcements/ +- title: Upcoming + url: /upcoming/ +- title: Previous + url: /previous/ +- title: Members + url: /members/ +- title: Local Companies + url: /local +- title: Kotlin News + url: /news +- title: About + url: /about/ +- title: Tags + url: /tags/ +- title: More + sublinks: + - title: FAQ + url: /faq/ + - title: Docs + url: /docs/ \ No newline at end of file diff --git a/_data/social.yml b/_data/social.yml new file mode 100644 index 0000000..6341033 --- /dev/null +++ b/_data/social.yml @@ -0,0 +1,6 @@ +- title: Twitter + url: https://twitter.com/sdkotlin + icon: fab fa-twitter +- title: GitHub + url: https://github.com/sdkotlin/sdkotlin.github.io + icon: fab fa-github diff --git a/_includes/custom-head.html b/_includes/custom-head.html new file mode 100644 index 0000000..8559a67 --- /dev/null +++ b/_includes/custom-head.html @@ -0,0 +1,6 @@ +{% comment %} + Placeholder to allow defining custom head, in principle, you can add anything here, e.g. favicons: + + 1. Head over to https://realfavicongenerator.net/ to add your own favicons. + 2. Customize default _includes/custom-head.html in your source directory and insert the given code snippet. +{% endcomment %} diff --git a/_includes/disqus.html b/_includes/disqus.html new file mode 100644 index 0000000..bc81056 --- /dev/null +++ b/_includes/disqus.html @@ -0,0 +1,17 @@ +
+ + diff --git a/_includes/footer.html b/_includes/footer.html new file mode 100644 index 0000000..81b9835 --- /dev/null +++ b/_includes/footer.html @@ -0,0 +1,24 @@ + diff --git a/_includes/google-analytics.html b/_includes/google-analytics.html new file mode 100644 index 0000000..aeba1a1 --- /dev/null +++ b/_includes/google-analytics.html @@ -0,0 +1,9 @@ + + diff --git a/_includes/head.html b/_includes/head.html new file mode 100644 index 0000000..747a9e2 --- /dev/null +++ b/_includes/head.html @@ -0,0 +1,48 @@ + + + + +{% seo %} + +{% feed_meta %} + +{% if jekyll.environment == 'production' and site.google_analytics %} + {% include google-analytics.html %} +{% endif %} + +{% if page.math %} + {% include mathjax.html %} +{% endif %} + + + + + + + + +{% unless site.skin %} + +{% endunless %} + + + + +{% include custom-head.html %} diff --git a/_includes/header.html b/_includes/header.html new file mode 100644 index 0000000..119585f --- /dev/null +++ b/_includes/header.html @@ -0,0 +1,54 @@ +
+ + + {%- if site.avatar contains "://" -%} + {%- assign avatar = site.avatar -%} + {%- else -%} + {%- assign avatar = site.avatar | relative_url -%} + {%- endif -%} + + + + + + {% if site.data.navigation %} + + {% endif %} +
diff --git a/_includes/mathjax.html b/_includes/mathjax.html new file mode 100644 index 0000000..1b755a8 --- /dev/null +++ b/_includes/mathjax.html @@ -0,0 +1,2 @@ + + diff --git a/_includes/sidebar-toc.html b/_includes/sidebar-toc.html new file mode 100644 index 0000000..0ea52ee --- /dev/null +++ b/_includes/sidebar-toc.html @@ -0,0 +1,4 @@ +

Table of Contents

+ diff --git a/_includes/sidebar.html b/_includes/sidebar.html new file mode 100644 index 0000000..0807d22 --- /dev/null +++ b/_includes/sidebar.html @@ -0,0 +1,53 @@ +{% if site.avatar -%} + +{%- endif %} + + + +{% if site.subscribe != false -%} + +{%- endif %} + +{% if site.data.social -%} + +{%- endif %} diff --git a/_includes/toc.html b/_includes/toc.html new file mode 100644 index 0000000..e6c1cb4 --- /dev/null +++ b/_includes/toc.html @@ -0,0 +1,170 @@ +{% capture tocWorkspace %} + {% comment %} + Copyright (c) 2017 Vladimir "allejo" Jimenez + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without + restriction, including without limitation the rights to use, + copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following + conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + {% endcomment %} + {% comment %} + Version 1.0.14 + https://github.com/allejo/jekyll-toc + + "...like all things liquid - where there's a will, and ~36 hours to spare, there's usually a/some way" ~jaybe + + Usage: + {% include toc.html html=content sanitize=true class="inline_toc" id="my_toc" h_min=2 h_max=3 %} + + Parameters: + * html (string) - the HTML of compiled markdown generated by kramdown in Jekyll + + Optional Parameters: + * sanitize (bool) : false - when set to true, the headers will be stripped of any HTML in the TOC + * class (string) : '' - a CSS class assigned to the TOC + * id (string) : '' - an ID to assigned to the TOC + * h_min (int) : 1 - the minimum TOC header level to use; any header lower than this value will be ignored + * h_max (int) : 6 - the maximum TOC header level to use; any header greater than this value will be ignored + * ordered (bool) : false - when set to true, an ordered list will be outputted instead of an unordered list + * item_class (string) : '' - add custom class(es) for each list item; has support for '%level%' placeholder, which is the current heading level + * submenu_class (string) : '' - add custom class(es) for each child group of headings; has support for '%level%' placeholder which is the current "submenu" heading level + * baseurl (string) : '' - add a base url to the TOC links for when your TOC is on another page than the actual content + * anchor_class (string) : '' - add custom class(es) for each anchor element + * skipNoIDs (bool) : false - skip headers that do not have an `id` attribute + + Output: + An ordered or unordered list representing the table of contents of a markdown block. This snippet will only + generate the table of contents and will NOT output the markdown given to it + {% endcomment %} + + {% capture my_toc %}{% endcapture %} + {% assign orderedList = include.ordered | default: false %} + {% assign skipNoIDs = include.skipNoIDs | default: false %} + {% assign minHeader = include.h_min | default: 1 %} + {% assign maxHeader = include.h_max | default: 6 %} + {% assign nodes = include.html | split: ' maxHeader %} + {% continue %} + {% endif %} + + {% assign _workspace = node | split: '' | first }}>{% endcapture %} + {% assign header = _workspace[0] | replace: _hAttrToStrip, '' %} + + {% assign indentAmount = headerLevel | minus: minHeader %} + {% assign space = '' %} + {% for i in (1..indentAmount) %} + {% assign space = space | prepend: ' ' %} + {% endfor %} + + {% if include.item_class and include.item_class != blank %} + {% capture listItemClass %}{:.{{ include.item_class | replace: '%level%', headerLevel }}}{% endcapture %} + {% endif %} + + {% capture anchor_body %}{% if include.sanitize %}{{ header | strip_html }}{% else %}{{ header }}{% endif %}{% endcapture %} + {% capture anchor_body %}{{ anchor_body | replace: "|", "\|" }}{% endcapture %} + + {% if html_id %} + {% capture list_item %}[{{ anchor_body }}]({% if include.baseurl %}{{ include.baseurl }}{% endif %}#{{ html_id }}){% endcapture %} + {% elsif skipNoIDs == true %} + {% continue %} + {% else %} + {% capture list_item %}{{ anchor_body }}{% endcapture %} + {% endif %} + + + {% if include.submenu_class and previousLevel > indentAmount %} + + {% assign submenuIndentation = space | prepend: ' ' %} + + {% capture my_toc %}{{ my_toc }} +{{ submenuIndentation }}{:.{{ include.submenu_class | replace: '%level%', previousLevel }}}{% endcapture %} + {% endif %} + + {% capture my_toc %}{{ my_toc }} +{{ space }}{{ listModifier }} {{ listItemClass }} {{ list_item }}{% if include.anchor_class %}{:.{{ include.anchor_class }}}{% endif %}{% endcapture %} + + {% assign previousLevel = indentAmount %} + {% endfor %} + + {% if include.class and include.class != blank %} + {% capture my_toc %}{:.{{ include.class }}} +{{ my_toc | lstrip }}{% endcapture %} + {% endif %} + + {% if include.id %} + {% capture my_toc %}{: #{{ include.id }}} +{{ my_toc | lstrip }}{% endcapture %} + {% endif %} + + + {% if include.submenu_class != blank %} + + {% for i in (1..previousLevel) %} + {% assign lvl = previousLevel | plus: 1 | minus: i %} + {% assign closingSpace = '' %} + + {% for i in (1..lvl) %} + {% assign closingSpace = closingSpace | prepend: ' ' %} + {% endfor %} + + {% capture my_toc %}{{ my_toc }} +{{ closingSpace }}{:.{{ include.submenu_class | replace: '%level%', lvl }}}{% endcapture %} + {% endfor %} + {% endif %} +{% endcapture %}{% assign tocWorkspace = '' %}{{ my_toc | markdownify | strip }} diff --git a/_layouts/archive-taxonomies.html b/_layouts/archive-taxonomies.html new file mode 100644 index 0000000..cc4b4b4 --- /dev/null +++ b/_layouts/archive-taxonomies.html @@ -0,0 +1,83 @@ +--- +layout: page +--- + +{{ content }} + +{% comment %} Check the type of archive {% endcomment %} +{%- if page.type == 'categories' -%} + {%- assign taxonomies = site.categories -%} +{%- elsif page.type == 'tags' -%} + {%- assign taxonomies = site.tags -%} +{%- else -%} + {%- assign taxonomies = none -%} +{%- endif -%} + +{% comment %} Calculate the max count of taxonomies {% endcomment %} +{%- assign max_count = 0 -%} +{%- for taxonomy in taxonomies -%} + {%- assign posts = taxonomy[1] -%} + {%- if posts.size > max_count -%} + {%- assign max_count = posts.size -%} + {%- endif -%} +{%- endfor -%} + +
+ +
+ +{% comment %} Show posts by taxonomy {% endcomment %} +{%- for i in (1..max_count) reversed -%} + {%- for taxonomy in taxonomies -%} + {%- assign taxonomy_name = taxonomy[0] -%} + {%- assign slugified_taxonomy_name = taxonomy_name | slugify -%} + {%- assign posts = taxonomy[1] -%} + {%- if posts.size == i -%} +

+ {%- if page.type == 'tags' -%} + {{ slugified_taxonomy_name }} + {%- else -%} + {{ taxonomy_name }} + {%- endif -%} +

+ + Top ⇈ + {%- endif -%} + {%- endfor -%} +{%- endfor -%} + + diff --git a/_layouts/archive-years.html b/_layouts/archive-years.html new file mode 100644 index 0000000..63f5fb8 --- /dev/null +++ b/_layouts/archive-years.html @@ -0,0 +1,44 @@ +--- +layout: page +--- + +{{ content }} + +{%- assign taxonomies = site.posts | group_by_exp: "post", "post.date | date: '%Y'" -%} + +
+ +
+ +{% comment %} Show posts by taxonomy {% endcomment %} +{%- for taxonomy in taxonomies -%} +

+ {{ taxonomy.name }} +

+ + Top ⇈ +{%- endfor -%} + + diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..75dea21 --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,32 @@ + + + + + {% include head.html %} + + + +
+ + +
+ +
+ {{ content }} + +
+
+
+ + + diff --git a/_layouts/home.html b/_layouts/home.html new file mode 100644 index 0000000..991870e --- /dev/null +++ b/_layouts/home.html @@ -0,0 +1,65 @@ +--- +layout: default +--- + +
+ + {{ content }} + + {% if site.paginate %} + {% assign posts = paginator.posts %} + {% else %} + {% assign posts = site.posts %} + {% endif %} + + {%- if posts.size > 0 -%} + + + {% if site.paginate %} +
+ +
+ {%- endif %} + + {%- endif -%} + + {%- if jekyll.environment == "production" and site.disqus -%} + + {%- endif -%} +
diff --git a/_layouts/page.html b/_layouts/page.html new file mode 100644 index 0000000..d26fc7c --- /dev/null +++ b/_layouts/page.html @@ -0,0 +1,15 @@ +--- +layout: default +--- + +
+ +
+

{{ page.title | escape }}

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

{{ page.title | escape }}

+ + +
+ +
+ {{ content }} +
+ + + + {% if page.comments != false and jekyll.environment == "production" and site.disqus %} + {% include disqus.html %} + {% endif %} + +
diff --git a/_posts/2016-01-11-task-item-list.md b/_posts/2016-01-11-task-item-list.md new file mode 100644 index 0000000..5aaa320 --- /dev/null +++ b/_posts/2016-01-11-task-item-list.md @@ -0,0 +1,23 @@ +--- +layout: post +title: Task Item List +tags: [to-do list] +--- + +This post tests the style of a task item list. + +Source: + +```markdown +- [x] Eating +- [ ] Walking + - [ ] Running +- [ ] Sleeping +``` + +Rendered: + +- [x] Eating +- [ ] Walking + - [ ] Running +- [ ] Sleeping diff --git a/_posts/2016-05-19-super-short-article.md b/_posts/2016-05-19-super-short-article.md new file mode 100644 index 0000000..c925c64 --- /dev/null +++ b/_posts/2016-05-19-super-short-article.md @@ -0,0 +1,7 @@ +--- +layout: post +title: "Some articles are just so short that we have to make the footer stick" +categories: misc +--- + +Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. diff --git a/_posts/2016-05-20-my-example-post.md b/_posts/2016-05-20-my-example-post.md new file mode 100644 index 0000000..145b21d --- /dev/null +++ b/_posts/2016-05-20-my-example-post.md @@ -0,0 +1,12 @@ +--- +layout: post +--- + +Eos eu docendi tractatos sapientem, brute option menandri in vix, quando vivendo accommodare te ius. Nec melius fastidii constituam id, viderer theophrastus ad sit, hinc semper periculis cum id. Noluisse postulant assentior est in, no choro sadipscing repudiandae vix. Vis in euismod delenit dignissim. Ex quod nostrum sit, suas decore animal id ius, nobis solet detracto quo te. + +{% comment %} +Might you have an include in your theme? Why not try it here! +{% include my-themes-great-include.html %} +{% endcomment %} + +No laudem altera adolescens has, volumus lucilius eum no. Eam ei nulla audiam efficiantur. Suas affert per no, ei tale nibh sea. Sea ne magna harum, in denique scriptorem sea, cetero alienum tibique ei eos. Labores persequeris referrentur eos ei. diff --git a/_posts/2016-05-20-super-long-article.md b/_posts/2016-05-20-super-long-article.md new file mode 100644 index 0000000..5652a9a --- /dev/null +++ b/_posts/2016-05-20-super-long-article.md @@ -0,0 +1,11 @@ +--- +layout: post +title: "Some articles are just so long they deserve a really long title to see if things will break well" +categories: misc +--- + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce bibendum neque eget nunc mattis eu sollicitudin enim tincidunt. Vestibulum lacus tortor, ultricies id dignissim ac, bibendum in velit. Proin convallis mi ac felis pharetra aliquam. Curabitur dignissim accumsan rutrum. In arcu magna, aliquet vel pretium et, molestie et arcu. Mauris lobortis nulla et felis ullamcorper bibendum. Phasellus et hendrerit mauris. Proin eget nibh a massa vestibulum pretium. Suspendisse eu nisl a ante aliquet bibendum quis a nunc. Praesent varius interdum vehicula. Aenean risus libero, placerat at vestibulum eget, ultricies eu enim. Praesent nulla tortor, malesuada adipiscing adipiscing sollicitudin, adipiscing eget est. + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce bibendum neque eget nunc mattis eu sollicitudin enim tincidunt. Vestibulum lacus tortor, ultricies id dignissim ac, bibendum in velit. Proin convallis mi ac felis pharetra aliquam. Curabitur dignissim accumsan rutrum. In arcu magna, aliquet vel pretium et, molestie et arcu. Mauris lobortis nulla et felis ullamcorper bibendum. Phasellus et hendrerit mauris. Proin eget nibh a massa vestibulum pretium. Suspendisse eu nisl a ante aliquet bibendum quis a nunc. Praesent varius interdum vehicula. Aenean risus libero, placerat at vestibulum eget, ultricies eu enim. Praesent nulla tortor, malesuada adipiscing adipiscing sollicitudin, adipiscing eget est. + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce bibendum neque eget nunc mattis eu sollicitudin enim tincidunt. Vestibulum lacus tortor, ultricies id dignissim ac, bibendum in velit. Proin convallis mi ac felis pharetra aliquam. Curabitur dignissim accumsan rutrum. In arcu magna, aliquet vel pretium et, molestie et arcu. Mauris lobortis nulla et felis ullamcorper bibendum. Phasellus et hendrerit mauris. Proin eget nibh a massa vestibulum pretium. Suspendisse eu nisl a ante aliquet bibendum quis a nunc. Praesent varius interdum vehicula. Aenean risus libero, placerat at vestibulum eget, ultricies eu enim. Praesent nulla tortor, malesuada adipiscing adipiscing sollicitudin, adipiscing eget est. diff --git a/_posts/2016-05-20-this-post-demonstrates-post-content-styles.md b/_posts/2016-05-20-this-post-demonstrates-post-content-styles.md new file mode 100644 index 0000000..64e2dde --- /dev/null +++ b/_posts/2016-05-20-this-post-demonstrates-post-content-styles.md @@ -0,0 +1,116 @@ +--- +layout: post +toc: true +title: "This post demonstrates post content styles" +categories: junk +tags: [markdown, css, html] +author: + - Bart Simpson + - Nelson Mandela Muntz +--- + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce bibendum neque eget nunc mattis eu sollicitudin enim tincidunt. Vestibulum lacus tortor, ultricies id dignissim ac, bibendum in velit. + +## Some great heading (h2) + +Proin convallis mi ac felis pharetra aliquam. Curabitur dignissim accumsan rutrum. In arcu magna, aliquet vel pretium et, molestie et arcu. + +Mauris lobortis nulla et felis ullamcorper bibendum. Phasellus et hendrerit mauris. Proin eget nibh a massa vestibulum pretium. Suspendisse eu nisl a ante aliquet bibendum quis a nunc. Praesent varius interdum vehicula. Aenean risus libero, placerat at vestibulum eget, ultricies eu enim. Praesent nulla tortor, malesuada adipiscing adipiscing sollicitudin, adipiscing eget est. + +## Another great heading (h2) + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce bibendum neque eget nunc mattis eu sollicitudin enim tincidunt. Vestibulum lacus tortor, ultricies id dignissim ac, bibendum in velit. + +### Some great subheading (h3) + +Proin convallis mi ac felis pharetra aliquam. Curabitur dignissim accumsan rutrum. In arcu magna, aliquet vel pretium et, molestie et arcu. Mauris lobortis nulla et felis ullamcorper bibendum. + +Phasellus et hendrerit mauris. Proin eget nibh a massa vestibulum pretium. Suspendisse eu nisl a ante aliquet bibendum quis a nunc. + +### Some great subheading (h3) + +Praesent varius interdum vehicula. Aenean risus libero, placerat at vestibulum eget, ultricies eu enim. Praesent nulla tortor, malesuada adipiscing adipiscing sollicitudin, adipiscing eget est. + +> This quote will *change* your life. It will reveal the secrets of the universe, and all the wonders of humanity. Don't misuse it. + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce bibendum neque eget nunc mattis eu sollicitudin enim tincidunt. + +### Some great subheading (h3) + +Vestibulum lacus tortor, ultricies id dignissim ac, bibendum in velit. Proin convallis mi ac felis pharetra aliquam. Curabitur dignissim accumsan rutrum. + +```html + + + + +

Hello, World!

+ + +``` + + +In arcu magna, aliquet vel pretium et, molestie et arcu. Mauris lobortis nulla et felis ullamcorper bibendum. Phasellus et hendrerit mauris. + +#### You might want a sub-subheading (h4) + +In arcu magna, aliquet vel pretium et, molestie et arcu. Mauris lobortis nulla et felis ullamcorper bibendum. Phasellus et hendrerit mauris. + +In arcu magna, aliquet vel pretium et, molestie et arcu. Mauris lobortis nulla et felis ullamcorper bibendum. Phasellus et hendrerit mauris. + +#### But it's probably overkill (h4) + +In arcu magna, aliquet vel pretium et, molestie et arcu. Mauris lobortis nulla et felis ullamcorper bibendum. Phasellus et hendrerit mauris. + +##### Could be a smaller sub-heading, `pacman` (h5) + +In arcu magna, aliquet vel pretium et, molestie et arcu. Mauris lobortis nulla et felis ullamcorper bibendum. Phasellus et hendrerit mauris. + +###### Small yet significant sub-heading (h6) + +In arcu magna, aliquet vel pretium et, molestie et arcu. Mauris lobortis nulla et felis ullamcorper bibendum. Phasellus et hendrerit mauris. + +### Oh hai, an unordered list!! + +In arcu magna, aliquet vel pretium et, molestie et arcu. Mauris lobortis nulla et felis ullamcorper bibendum. Phasellus et hendrerit mauris. + +- First item, yo +- Second item, dawg +- Third item, what what?! +- Fourth item, fo sheezy my neezy + +### Oh hai, an ordered list!! + +In arcu magna, aliquet vel pretium et, molestie et arcu. Mauris lobortis nulla et felis ullamcorper bibendum. Phasellus et hendrerit mauris. + +1. First item, yo +2. Second item, dawg +3. Third item, what what?! +4. Fourth item, fo sheezy my neezy + + + +## Headings are cool! (h2) + +Proin eget nibh a massa vestibulum pretium. Suspendisse eu nisl a ante aliquet bibendum quis a nunc. Praesent varius interdum vehicula. Aenean risus libero, placerat at vestibulum eget, ultricies eu enim. Praesent nulla tortor, malesuada adipiscing adipiscing sollicitudin, adipiscing eget est. + +Praesent nulla tortor, malesuada adipiscing adipiscing sollicitudin, adipiscing eget est. + +Proin eget nibh a massa vestibulum pretium. Suspendisse eu nisl a ante aliquet bibendum quis a nunc. + +### Tables + +Title 1 | Title 2 | Title 3 | Title 4 +--------------------- | --------------------- | --------------------- | --------------------- +lorem | lorem ipsum | lorem ipsum dolor | lorem ipsum dolor sit +lorem ipsum dolor sit | lorem ipsum dolor sit | lorem ipsum dolor sit | lorem ipsum dolor sit +lorem ipsum dolor sit | lorem ipsum dolor sit | lorem ipsum dolor sit | lorem ipsum dolor sit +lorem ipsum dolor sit | lorem ipsum dolor sit | lorem ipsum dolor sit | lorem ipsum dolor sit + + +Title 1 | Title 2 | Title 3 | Title 4 +--- | --- | --- | --- +lorem | lorem ipsum | lorem ipsum dolor | lorem ipsum dolor sit +lorem ipsum dolor sit amet | lorem ipsum dolor sit amet consectetur | lorem ipsum dolor sit amet | lorem ipsum dolor sit +lorem ipsum dolor | lorem ipsum | lorem | lorem ipsum +lorem ipsum dolor | lorem ipsum dolor sit | lorem ipsum dolor sit amet | lorem ipsum dolor sit amet consectetur diff --git a/_posts/2016-05-20-welcome-to-jekyll.md b/_posts/2016-05-20-welcome-to-jekyll.md new file mode 100644 index 0000000..8a79609 --- /dev/null +++ b/_posts/2016-05-20-welcome-to-jekyll.md @@ -0,0 +1,22 @@ +--- +layout: post +--- +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`, 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-docs] 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 Talk][jekyll-talk]. + +[jekyll-docs]: http://jekyllrb.com/docs/home +[jekyll-gh]: https://github.com/jekyll/jekyll +[jekyll-talk]: https://talk.jekyllrb.com/ diff --git a/_sass/hamilton/base.scss b/_sass/hamilton/base.scss new file mode 100644 index 0000000..396d918 --- /dev/null +++ b/_sass/hamilton/base.scss @@ -0,0 +1,204 @@ +html { + font-size: $base-font-size; + + @include media-query($on-small) { + @include relative-font-size(0.89); + } +} + +/** + * Reset some basic elements + */ +body, h1, h2, h3, h4, h5, h6, +p, blockquote, pre, hr, +dl, dd, ol, ul, figure { + margin: 0; + padding: 0; +} + +/** + * Set `margin-bottom` to maintain vertical rhythm + */ +h1, h2, h3, h4, h5, h6, +p, blockquote, pre, +ul, ol, dl, figure, iframe, +%vertical-rhythm { + margin-bottom: $spacing-unit; +} + +/** + * Basic styling + */ +body { + font-family: $base-font-family; + -webkit-text-size-adjust: 100%; + -webkit-font-feature-settings: "kern" 1; + -moz-font-feature-settings: "kern" 1; + -o-font-feature-settings: "kern" 1; + font-feature-settings: "kern" 1; + font-kerning: normal; + display: flex; + min-height: 100vh; + flex-direction: column; + overflow-wrap: break-word; + line-height: $base-line-height; +} + +p { + -webkit-hyphens: auto; + -ms-hyphens: auto; + hyphens: auto; +} + +hr { + margin-top: $spacing-unit; + margin-bottom: $spacing-unit; +} + +/** + * Images + */ +img { + max-width: 100%; + vertical-align: middle; +} + +/** + * Figures + */ +figure > img { + display: block; +} + +figcaption { + @include relative-font-size(0.8); + margin-top: $spacing-unit / 2; +} + +/** + * Lists + */ +ul, ol { + margin-left: $spacing-unit; +} + +li { + > ul, + > ol { + margin-bottom: 0; + } +} + +/** + * Links + */ +a { + text-decoration: none; + + &:hover { + text-decoration: underline; + } +} + +/** + * Blockquotes + */ +blockquote { + border-left: 0.1em solid; + padding-left: $spacing-unit; + font-style: italic; + + > :last-child { + margin-bottom: 0; + } + + i, em { + font-style: normal; + } +} + +/** + * Code formatting + */ +pre, +code { + font-family: $code-font-family; + border-radius: 0.3em; +} + +code { + padding: 0px 5px; +} + +pre { + padding: 8px 12px; + overflow-x: auto; + + > code { + border: 0; + padding-right: 0; + padding-left: 0; + + white-space: pre; + word-break: normal; + word-wrap: normal; + } +} + +.highlight { + border-radius: 0.3em; + @extend %vertical-rhythm; +} + +/** + * Tables + */ +table { + margin-bottom: $spacing-unit; + width: 100%; + border-collapse: collapse; + border: 1px solid; + + th, td { + padding: ($spacing-unit / 3) ($spacing-unit / 2); + } + + th { + border: 1px solid; + } + + td { + border: 1px solid; + } +} + +/** + * Task item list + */ +ul.task-list { + li { + list-style-type: none; + + .task-list-item-checkbox { + margin: 0 .5em .25em -1.6em; + vertical-align: middle; + } + } +} + +/** + * Wrapper + */ +.wrapper { + max-width: calc(#{$content-width} - (#{$spacing-unit})); + margin-right: auto; + margin-left: auto; + padding-right: $spacing-unit / 2; + padding-left: $spacing-unit / 2; + + @media screen and (min-width: $on-large) { + max-width: calc(#{$content-width} - (#{$spacing-unit} * 2)); + padding-right: $spacing-unit; + padding-left: $spacing-unit; + } +} diff --git a/_sass/hamilton/custom-styles.scss b/_sass/hamilton/custom-styles.scss new file mode 100644 index 0000000..a61ba61 --- /dev/null +++ b/_sass/hamilton/custom-styles.scss @@ -0,0 +1 @@ +// Placeholder to allow customizing styles. diff --git a/_sass/hamilton/functions.scss b/_sass/hamilton/functions.scss new file mode 100644 index 0000000..7c4a213 --- /dev/null +++ b/_sass/hamilton/functions.scss @@ -0,0 +1,9 @@ +@mixin media-query($device) { + @media screen and (max-width: $device) { + @content; + } +} + +@mixin relative-font-size($ratio) { + font-size: #{$ratio}rem; +} diff --git a/_sass/hamilton/layout.scss b/_sass/hamilton/layout.scss new file mode 100644 index 0000000..424486d --- /dev/null +++ b/_sass/hamilton/layout.scss @@ -0,0 +1,674 @@ +/** + * Site container + */ +.site-container { + height: 100vh; + width: 100vw; + display: grid; + grid-template-columns: 1fr; + grid-template-rows: $base-font-size * 3 + 6px 1fr; +} + +/** + * Site header + */ +.site-header { + border-top: 5px solid; + border-bottom: 1px solid; + min-height: $base-font-size * 3; + line-height: $base-font-size * 3; + + @include media-query($on-small) { + display: flex; + } +} + +.site-sidebar-button { + position: absolute; + top: 3px; + left: $spacing-unit / 2; + + img { + width: $base-font-size * 2.5; + height: auto; + border-radius: 50%; + } + + @media screen and (min-width: $on-small) { + display: none; + } +} + +.site-title { + @include relative-font-size(1.625); + font-family: $handwriting-font-family; + letter-spacing: -1px; + margin-bottom: 0; + float: left; + + @include media-query($on-small) { + float: center; + } +} + +.site-nav { + position: absolute; + top: 12px; + right: $spacing-unit / 2; + border: 1px solid; + border-radius: 0.4em; + text-align: right; + + .nav-trigger { + display: none; + } + + .menu-icon { + float: right; + width: $base-font-size * 2; + height: $base-font-size * 2; + line-height: 0; + text-align: center; + + svg { + width: $base-font-size; + height: $base-font-size; + padding-top: $base-font-size / 2; + } + } + + label[for="nav-trigger"] { + display: block; + float: right; + width: $base-font-size * 2; + height: $base-font-size * 2; + z-index: 2; + cursor: pointer; + } + + input ~ .trigger { + clear: both; + display: none; + } + + input:checked ~ .trigger { + display: block; + padding-bottom: 5px; + } + + ul.trigger { + list-style-type: none; + margin: 0; + padding: 0; + overflow: hidden; + + li a { + line-height: $base-line-height * $base-font-size * 1.15; + display: inline; + padding: 5px 10px; + margin-left: auto; + } + + .dropdown-content { + display: none; + position: absolute; + z-index: 1; + } + + .dropdown-content a { + padding: 5px 10px; + display: inline-block; + text-align: right; + margin-left: auto; + } + + .dropdown:hover .dropdown-content { + display: block; + } + } + + .current-page { + text-decoration: line-through; + } + + @media screen and (min-width: $on-medium) { + position: static; + float: right; + border: none; + background-color: inherit; + + label[for="nav-trigger"] { + display: none; + } + + .menu-icon { + display: none; + } + + input ~ .trigger { + display: block; + } + + ul.trigger { + li { + float: left; + } + + li a { + display: inline-block; + text-align: center; + padding: 5px 5px; + + // Gaps between nav items, but not on the last one + &:not(:last-child) { + margin-right: 0; + } + margin-left: 10px; + } + + .dropdown-content a { + display: block; + text-align: left; + padding: 5px 15px 5px 5px; + margin-left: 10px; + } + } + } +} + +/** + * Site body + */ +.site-body { + display: grid; + grid-template-columns: calc(#{$content-width} * 0.24) 1fr; + overflow: hidden; + + @include media-query($on-medium) { + grid-template-columns: calc(#{$content-width} * 0.18) 1fr; + } + + @include media-query($on-small) { + grid-template-columns: 1fr; + } +} + +/** + * Site sidebar + */ +.site-sidebar { + padding: $spacing-unit; + border-right: 1px solid; + @include relative-font-size(0.8); + + @include media-query($on-medium) { + padding: $spacing-unit / 2; + @include relative-font-size(0.6); + } + + @include media-query($on-small) { + display: none; + border-right: none; + border-bottom: 1px solid; + } + + @media screen and (min-width: $on-small) { + display: block !important; + } +} + +.sidebar-section { + padding-bottom: $spacing-unit / 2; + border-bottom: 1px solid; + margin-bottom: $spacing-unit / 2; + + &:last-child { + padding-bottom: 0; + border-bottom: 0; + margin-bottom: 0; + } +} + +.sidebar-icon { + margin-right: 0.5em; +} + +.feed-subscribe { + font-weight: bold; + text-align: left; +} + +ul.contact-list { + list-style: none; + margin-left: 0; + margin-bottom: 0; + + li { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } +} + +ul.social-icons { + list-style: none; + margin-left: 0; + margin-bottom: 0; + + > li { + display: inline-block; + margin: 0.3em; + } +} + +.author-avatar { + width: $base-font-size * 8; + height: auto; + border-radius: 50%; +} + +.toc-title { + text-align: center; + font-weight: bold; + border: 1px solid; + border-radius: 0.3em 0.3em 0 0; + padding: 0.5rem; + margin: 0; +} + +.toc-nav { + max-height: 70vh; + overflow-y: scroll; + border: 1px solid; + border-top: 0px; + border-radius: 0 0 0.3em 0.3em; + + -webkit-hyphens: auto; + -ms-hyphens: auto; + hyphens: auto; + + ul { + margin: 0; + padding: 0; + } + + a { + display: block; + + &:hover { + text-decoration: none; + } + } + + ul { + list-style: none; + + li a { + font-weight: bold; + border-bottom: 1px solid; + padding: 0.5rem; + } + } + + li ul li a { + font-weight: normal; + padding-left: 1.25rem; + } +} + +/** + * Site main + */ +.site-main { + flex: 1 0 auto; + overflow-y: scroll; + + // Hide scrollbar for IE, Edge and Firefox + -ms-overflow-style: none; // IE and Edge + scrollbar-width: none; // Firefox + + padding-left: $spacing-unit; + padding-right: $spacing-unit; + + @include media-query($on-medium) { + padding-left: $spacing-unit / 2; + padding-right: $spacing-unit / 2; + } + + @include media-query($on-small) { + padding-left: 0; + padding-right: 0; + } +} + +// Hide scrollbar for Chrome, Safari and Opera +.site-main::-webkit-scrollbar { + display: none; +} + +/** + * Homepage + */ +.home { + margin-top: $spacing-unit; +} + +.post-list { + font-family: $headline-font-family; + margin-left: 0; + padding-left: 0; + list-style: none; + + li { + padding-top: $spacing-unit / 2; + padding-bottom: $spacing-unit / 2; + border-bottom: 1px solid; + margin-bottom: $spacing-unit; + + h2 { + margin-bottom: 0; + @include relative-font-size(1.4); + + @media screen and (min-width: $on-large) { + @include relative-font-size(1.5); + } + } + + .post-excerpt { + margin-top: $spacing-unit / 2; + + p { + margin-bottom: 0; + } + } + } +} + +/** + * Pagination + */ +.pagination { + list-style: none; + margin: 0 auto; + margin-bottom: $spacing-unit; + display: table; + + li { + float: left; + margin: 5px 15px 5px 0; + + &:last-of-type { margin-right: 0 } + + a, div { + display: block; + padding: $spacing-unit / 4; + border: 1px solid; + min-width: 41px; + text-align: center; + box-sizing: border-box; + } + } +} + +/** + * Posts + */ +.post-header { + padding-top: $spacing-unit * 2; + padding-bottom: $spacing-unit; + border-bottom: 1px solid; + margin-bottom: $spacing-unit * 2; + text-align: center; +} + +.post-meta { + @include relative-font-size(0.8); + margin-bottom: $spacing-unit / 2; +} + +.post-footer { + padding-top: $spacing-unit / 2; + border-top: 1px solid; + border-bottom: 1px solid; +} + +ul.post-taxonomies { + list-style: none; + display: inline-block; + vertical-align: middle; + margin: 0 0 0 $spacing-unit / 3; + + li { + float: left; + margin-right: $spacing-unit / 6; + padding: 0.3em 0.5em 0.2em 0.5em; + } +} + +ul.post-tags { + li { + border-radius: 0.5em; + } +} + +ul.post-categories { + li { + text-decoration: underline; + } +} + +.post-pagination { + @include relative-font-size(0.8); + clear: both; + padding-top: $spacing-unit / 2; + padding-bottom: $spacing-unit / 2; + border-top: 1px solid; + + @media screen and (min-width: $on-small) { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + } + + .post-previous, + .post-next { + display: block; + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; + text-decoration: none; + } + + .post-next { + margin-top: $spacing-unit / 2; + + @media screen and (min-width: $on-small) { + margin-top: 0; + text-align: right; + } + } + + .post-pagination-label { + margin: 0; + padding: 0; + } + + .post-pagination-title { + margin: 0; + padding: 0; + } +} + + +// About font sizes for h1-h6, refer to https://stackoverflow.com/a/6140504/13261366 +.post-title, +.post-content h1 { + @include relative-font-size(1.8); + font-family: $headline-font-family; + font-weight: bold; + letter-spacing: -1px; + line-height: $base-line-height * $base-font-size * 2; + + @media screen and (min-width: $on-large) { + @include relative-font-size(2); + } +} + +.post-content { + font-family: $reading-font-family; + margin-bottom: $spacing-unit; + + h2, h3, h4, h5, h6 { + font-family: $headline-font-family; + } + + h2 { margin-top: $spacing-unit * 2 } + h3 { margin-top: $spacing-unit * 1.5 } + h4, h5, h6 { margin-top: $spacing-unit } + + h2 { + @include relative-font-size(1.4); + + @media screen and (min-width: $on-large) { + @include relative-font-size(1.5); + } + } + + h3 { + @include relative-font-size(1.17); + } + + h4 { + @include relative-font-size(1.12); + } + + h5 { + @include relative-font-size(0.83); + } + + h6 { + @include relative-font-size(0.75); + } + + li { + margin-bottom: $spacing-unit / 3; + + > ul, + > ol { + margin-top: $spacing-unit / 3; + } + + p, blockquote, pre, figure, iframe, %vertical-rhythm { + margin-bottom: $spacing-unit / 3; + } + } +} + +/** + * Taxonomies + */ +.taxonomies { + list-style: none; + display: grid; + grid-column-gap: 2em; + grid-template-columns: repeat(3, 1fr); + margin: 0; + padding: 0; + font-weight: bold; + + @include media-query($on-medium) { + grid-template-columns: repeat(2, 1fr); + } + + .taxonomy { + display: flex; + padding: 0.25em 0; + justify-content: space-between; + color: inherit; + text-decoration: none; + border-bottom: 1px solid; + margin-bottom: $spacing-unit / 3; + } +} + +.post-list-by-taxonomy { + time { + font-family: $code-font-family; + } +} + +.back-to-top { + display: block; + font-size: $base-font-size * 0.8; + text-transform: uppercase; + text-align: right; + text-decoration: none; +} + +/** + * Alignment + */ +.align-right { + margin-bottom: 1rem; + margin-left: 1rem; + float: right; +} + +.align-left { + margin-right: 1rem; + margin-bottom: 1rem; + float: left; +} + +.align-center { + display: block; + margin-right: auto; + margin-left: auto; +} + +figcaption.align-right { + text-align: right; +} + +figcaption.align-left { + text-align: left; +} + +figcaption.align-center { + text-align: center; +} + +/** + * Site footer + */ +.site-footer { + margin-top: $spacing-unit * 2; + border-top: 1px solid; + padding: $spacing-unit 0; + @include relative-font-size(0.8); + + p, ul { + margin-bottom: $spacing-unit / 4; + } +} + +@media screen and (min-width: $on-medium) { + .footer-col-wrapper { + display: flex + } + + .footer-col { + width: calc(100% - (#{$spacing-unit} / 2)); + padding: 0 ($spacing-unit / 2); + + &:first-child { + padding-right: $spacing-unit / 2; + padding-left: 0; + } + + &:last-child { + padding-right: 0; + padding-left: $spacing-unit / 2; + } + } +} diff --git a/_sass/hamilton/main.scss b/_sass/hamilton/main.scss new file mode 100644 index 0000000..eef8039 --- /dev/null +++ b/_sass/hamilton/main.scss @@ -0,0 +1,11 @@ +@charset "utf-8"; + +@import + "hamilton/normalize", + "hamilton/variables", + "hamilton/override-variables", + "hamilton/functions", + "hamilton/base", + "hamilton/layout", + "hamilton/custom-styles" +; diff --git a/_sass/hamilton/normalize.scss b/_sass/hamilton/normalize.scss new file mode 100644 index 0000000..192eb9c --- /dev/null +++ b/_sass/hamilton/normalize.scss @@ -0,0 +1,349 @@ +/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ + +/* Document + ========================================================================== */ + +/** + * 1. Correct the line height in all browsers. + * 2. Prevent adjustments of font size after orientation changes in iOS. + */ + +html { + line-height: 1.15; /* 1 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +/* Sections + ========================================================================== */ + +/** + * Remove the margin in all browsers. + */ + +body { + margin: 0; +} + +/** + * Render the `main` element consistently in IE. + */ + +main { + display: block; +} + +/** + * Correct the font size and margin on `h1` elements within `section` and + * `article` contexts in Chrome, Firefox, and Safari. + */ + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +/* Grouping content + ========================================================================== */ + +/** + * 1. Add the correct box sizing in Firefox. + * 2. Show the overflow in Edge and IE. + */ + +hr { + box-sizing: content-box; /* 1 */ + height: 0; /* 1 */ + overflow: visible; /* 2 */ +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ + +pre { + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ +} + +/* Text-level semantics + ========================================================================== */ + +/** + * Remove the gray background on active links in IE 10. + */ + +a { + background-color: transparent; +} + +/** + * 1. Remove the bottom border in Chrome 57- + * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. + */ + +abbr[title] { + border-bottom: none; /* 1 */ + text-decoration: underline; /* 2 */ + text-decoration: underline dotted; /* 2 */ +} + +/** + * Add the correct font weight in Chrome, Edge, and Safari. + */ + +b, +strong { + font-weight: bolder; +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ + +code, +kbd, +samp { + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ +} + +/** + * Add the correct font size in all browsers. + */ + +small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` elements from affecting the line height in + * all browsers. + */ + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sub { + bottom: -0.25em; +} + +sup { + top: -0.5em; +} + +/* Embedded content + ========================================================================== */ + +/** + * Remove the border on images inside links in IE 10. + */ + +img { + border-style: none; +} + +/* Forms + ========================================================================== */ + +/** + * 1. Change the font styles in all browsers. + * 2. Remove the margin in Firefox and Safari. + */ + +button, +input, +optgroup, +select, +textarea { + font-family: inherit; /* 1 */ + font-size: 100%; /* 1 */ + line-height: 1.15; /* 1 */ + margin: 0; /* 2 */ +} + +/** + * Show the overflow in IE. + * 1. Show the overflow in Edge. + */ + +button, +input { /* 1 */ + overflow: visible; +} + +/** + * Remove the inheritance of text transform in Edge, Firefox, and IE. + * 1. Remove the inheritance of text transform in Firefox. + */ + +button, +select { /* 1 */ + text-transform: none; +} + +/** + * Correct the inability to style clickable types in iOS and Safari. + */ + +button, +[type="button"], +[type="reset"], +[type="submit"] { + -webkit-appearance: button; +} + +/** + * Remove the inner border and padding in Firefox. + */ + +button::-moz-focus-inner, +[type="button"]::-moz-focus-inner, +[type="reset"]::-moz-focus-inner, +[type="submit"]::-moz-focus-inner { + border-style: none; + padding: 0; +} + +/** + * Restore the focus styles unset by the previous rule. + */ + +button:-moz-focusring, +[type="button"]:-moz-focusring, +[type="reset"]:-moz-focusring, +[type="submit"]:-moz-focusring { + outline: 1px dotted ButtonText; +} + +/** + * Correct the padding in Firefox. + */ + +fieldset { + padding: 0.35em 0.75em 0.625em; +} + +/** + * 1. Correct the text wrapping in Edge and IE. + * 2. Correct the color inheritance from `fieldset` elements in IE. + * 3. Remove the padding so developers are not caught out when they zero out + * `fieldset` elements in all browsers. + */ + +legend { + box-sizing: border-box; /* 1 */ + color: inherit; /* 2 */ + display: table; /* 1 */ + max-width: 100%; /* 1 */ + padding: 0; /* 3 */ + white-space: normal; /* 1 */ +} + +/** + * Add the correct vertical alignment in Chrome, Firefox, and Opera. + */ + +progress { + vertical-align: baseline; +} + +/** + * Remove the default vertical scrollbar in IE 10+. + */ + +textarea { + overflow: auto; +} + +/** + * 1. Add the correct box sizing in IE 10. + * 2. Remove the padding in IE 10. + */ + +[type="checkbox"], +[type="radio"] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Correct the cursor style of increment and decrement buttons in Chrome. + */ + +[type="number"]::-webkit-inner-spin-button, +[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +/** + * 1. Correct the odd appearance in Chrome and Safari. + * 2. Correct the outline style in Safari. + */ + +[type="search"] { + -webkit-appearance: textfield; /* 1 */ + outline-offset: -2px; /* 2 */ +} + +/** + * Remove the inner padding in Chrome and Safari on macOS. + */ + +[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * 1. Correct the inability to style clickable types in iOS and Safari. + * 2. Change font properties to `inherit` in Safari. + */ + +::-webkit-file-upload-button { + -webkit-appearance: button; /* 1 */ + font: inherit; /* 2 */ +} + +/* Interactive + ========================================================================== */ + +/* + * Add the correct display in Edge, IE 10+, and Firefox. + */ + +details { + display: block; +} + +/* + * Add the correct display in all browsers. + */ + +summary { + display: list-item; +} + +/* Misc + ========================================================================== */ + +/** + * Add the correct display in IE 10+. + */ + +template { + display: none; +} + +/** + * Add the correct display in IE 10. + */ + +[hidden] { + display: none; +} diff --git a/_sass/hamilton/override-variables.scss b/_sass/hamilton/override-variables.scss new file mode 100644 index 0000000..dfea309 --- /dev/null +++ b/_sass/hamilton/override-variables.scss @@ -0,0 +1 @@ +// Placeholder to allow overriding predefined variables. diff --git a/_sass/hamilton/skin.scss b/_sass/hamilton/skin.scss new file mode 100644 index 0000000..48d2f1c --- /dev/null +++ b/_sass/hamilton/skin.scss @@ -0,0 +1,185 @@ +@charset "utf-8"; + +body { + color: $text-color; + background-color: $background-color; +} + +a { + color: $link-base-color; + + &:visited { + color: $link-visited-color; + } + + &:hover { + color: $text-color; + } +} + +blockquote { + color: $text-color-light; + border-left-color: $border-color-light; +} + +pre, +code { + background-color: $code-background-color; +} + +pre { + box-shadow: $pre-shadow; +} + +.highlight { + background: $code-background-color; + + .highlighter-rouge & { + background: $code-background-color; + } +} + +table { + color: $table-text-color; + border-color: $table-border-color; + + tr { + &:nth-child(even) { + background-color: $table-zebra-color; + } + } + + th { + background-color: $table-header-bg-color; + border-color: $table-header-border; + } + + td { + border-color: $table-border-color; + } +} + + +///////// Layout /////////// + +.site-header { + background-color: $background-color; + border-top-color: $border-color-dark; + border-bottom-color: $border-color-light; +} + +.site-sidebar { + border-color: $border-color-light; +} + +.site-title { + color: $text-color; + + &:visited { + color: $text-color; + } +} + +.site-nav { + background-color: $background-color; + border-color: $border-color; + + .menu-icon { + > svg path { + fill: $border-color-dark; + } + } + + li a { + color: $text-color; + } + + .dropdown-content { + background-color: $border-color-light; + box-shadow: $dropdown-shadow; + } +} + +.post-list { + li { + border-bottom-color: $border-color-light; + } +} + +.post-header { + border-bottom-color: $border-color-light; +} + +.post-meta { + color: $text-color-light; +} + +.post-footer { + border-color: $border-color-light; +} + +.post-pagination { + border-color: $border-color-light; +} + +ul.post-tags { + li { + background-color: $border-color-light; + } +} + +.pagination { + li { + a, div { + border-color: $border-color-light; + } + + div.pager-edge { + border: 1px dashed $border-color-light; + } + + a.previous-page, a.next-page { + &:hover { + border-color: $border-color; + } + } + } +} + +.taxonomy-count { + color: $text-color-light; +} + +.site-footer { + color: $text-color-light; + border-top-color: $border-color-light; +} + +.sidebar-section { + border-bottom-color: $border-color-light; +} + +.feed-subscribe { + a { + color: $subscribe-color; + } +} + +.toc-title { + color: $background-color; + background-color: $border-color-dark; + border-color: $border-color; +} + +.toc-nav { + border-color: $border-color; + + ul li a { + color: $text-color; + border-color: $border-color; + + &:hover { + background-color: $border-color-light; + } + } +} diff --git a/_sass/hamilton/skins/daylight.scss b/_sass/hamilton/skins/daylight.scss new file mode 100644 index 0000000..9aff5c3 --- /dev/null +++ b/_sass/hamilton/skins/daylight.scss @@ -0,0 +1,234 @@ +$text-color: #111 !default; +$text-color-light: #666 !default; +$background-color: #fff !default; +$code-background-color: #f8f8f8 !default; + +$border-color: #828282 !default; +$border-color-light: lighten($border-color, 40%) !default; +$border-color-dark: darken($border-color, 25%) !default; + +$link-base-color: #003be4 !default; +$link-visited-color: darken($link-base-color, 15%) !default; + +$table-text-color: lighten($text-color, 18%) !default; +$table-zebra-color: mix($background-color, $border-color, 90%) !default; +$table-header-bg-color: mix($background-color, $border-color, 80%) !default; +$table-header-border: $border-color !default; +$table-border-color: lighten($border-color, 20%) !default; + +$pre-shadow: 0 0 4px rgba(17,17,17,0.4) inset !default; +$dropdown-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2) !default; + +$subscribe-color: #b21000 !default; + +// Generated by running `rougify style github`; The version of rougify is 3.16.0 +// ============================================================================= +.highlight table td { padding: 5px; } +.highlight table pre { margin: 0; } +.highlight .cm { + color: #999988; + font-style: italic; +} +.highlight .cp { + color: #999999; + font-weight: bold; +} +.highlight .c1 { + color: #999988; + font-style: italic; +} +.highlight .cs { + color: #999999; + font-weight: bold; + font-style: italic; +} +.highlight .c, .highlight .ch, .highlight .cd, .highlight .cpf { + color: #999988; + font-style: italic; +} +.highlight .err { + color: #a61717; + background-color: #e3d2d2; +} +.highlight .gd { + color: #000000; + background-color: #ffdddd; +} +.highlight .ge { + color: #000000; + font-style: italic; +} +.highlight .gr { + color: #aa0000; +} +.highlight .gh { + color: #999999; +} +.highlight .gi { + color: #000000; + background-color: #ddffdd; +} +.highlight .go { + color: #888888; +} +.highlight .gp { + color: #555555; +} +.highlight .gs { + font-weight: bold; +} +.highlight .gu { + color: #aaaaaa; +} +.highlight .gt { + color: #aa0000; +} +.highlight .kc { + color: #000000; + font-weight: bold; +} +.highlight .kd { + color: #000000; + font-weight: bold; +} +.highlight .kn { + color: #000000; + font-weight: bold; +} +.highlight .kp { + color: #000000; + font-weight: bold; +} +.highlight .kr { + color: #000000; + font-weight: bold; +} +.highlight .kt { + color: #445588; + font-weight: bold; +} +.highlight .k, .highlight .kv { + color: #000000; + font-weight: bold; +} +.highlight .mf { + color: #009999; +} +.highlight .mh { + color: #009999; +} +.highlight .il { + color: #009999; +} +.highlight .mi { + color: #009999; +} +.highlight .mo { + color: #009999; +} +.highlight .m, .highlight .mb, .highlight .mx { + color: #009999; +} +.highlight .sb { + color: #d14; +} +.highlight .sc { + color: #d14; +} +.highlight .sd { + color: #d14; +} +.highlight .s2 { + color: #d14; +} +.highlight .se { + color: #d14; +} +.highlight .sh { + color: #d14; +} +.highlight .si { + color: #d14; +} +.highlight .sx { + color: #d14; +} +.highlight .sr { + color: #009926; +} +.highlight .s1 { + color: #d14; +} +.highlight .ss { + color: #990073; +} +.highlight .s, .highlight .sa, .highlight .dl { + color: #d14; +} +.highlight .na { + color: #008080; +} +.highlight .bp { + color: #999999; +} +.highlight .nb { + color: #0086B3; +} +.highlight .nc { + color: #445588; + font-weight: bold; +} +.highlight .no { + color: #008080; +} +.highlight .nd { + color: #3c5d5d; + font-weight: bold; +} +.highlight .ni { + color: #800080; +} +.highlight .ne { + color: #990000; + font-weight: bold; +} +.highlight .nf, .highlight .fm { + color: #990000; + font-weight: bold; +} +.highlight .nl { + color: #990000; + font-weight: bold; +} +.highlight .nn { + color: #555555; +} +.highlight .nt { + color: #000080; +} +.highlight .vc { + color: #008080; +} +.highlight .vg { + color: #008080; +} +.highlight .vi { + color: #008080; +} +.highlight .nv, .highlight .vm { + color: #008080; +} +.highlight .ow { + color: #000000; + font-weight: bold; +} +.highlight .o { + color: #000000; + font-weight: bold; +} +.highlight .w { + color: #bbbbbb; +} +.highlight { + background-color: #f8f8f8; +} diff --git a/_sass/hamilton/skins/midnight.scss b/_sass/hamilton/skins/midnight.scss new file mode 100644 index 0000000..fb9b60d --- /dev/null +++ b/_sass/hamilton/skins/midnight.scss @@ -0,0 +1,235 @@ +$text-color: lightgrey !default; +$text-color-light: silver !default; +$background-color: #121212 !default; +$code-background-color: #49483e !default; + +$border-color: mix($text-color, $background-color, 30%) !default; +$border-color-light: darken($border-color, 5%) !default; +$border-color-dark: lighten($border-color, 10%) !default; + +$link-base-color: #00b1c9 !default; +$link-visited-color: darken($link-base-color, 5%) !default; + +$table-text-color: lighten($text-color, 18%) !default; +$table-zebra-color: mix($background-color, $border-color-light, 50%) !default; +$table-header-bg-color: mix($background-color, $border-color-light, 5%) !default; +$table-header-border: lighten($border-color, 30%) !default; +$table-border-color: lighten($border-color, 20%) !default; + +$pre-shadow: 0 0 4px rgba(255,255,255,0.4) inset !default; +$dropdown-shadow: 0px 8px 16px 0px rgba(255,255,255,0.2) !default; + +$subscribe-color: tomato !default; + +// Generated by running `rougify style base16.monokai.dark`; The version of rougify is 3.15.0 +// ============================================================================= +.highlight table td { padding: 5px; } +.highlight table pre { margin: 0; } +.highlight .c, .highlight .ch, .highlight .cd, .highlight .cpf { + color: #75715e; + font-style: italic; +} +.highlight .cm { + color: #75715e; + font-style: italic; +} +.highlight .c1 { + color: #75715e; + font-style: italic; +} +.highlight .cp { + color: #75715e; + font-weight: bold; +} +.highlight .cs { + color: #75715e; + font-weight: bold; + font-style: italic; +} +.highlight .err { + color: #960050; + background-color: #1e0010; +} +.highlight .gi { + color: #ffffff; + background-color: #324932; +} +.highlight .gd { + color: #ffffff; + background-color: #493131; +} +.highlight .ge { + color: #000000; + font-style: italic; +} +.highlight .gr { + color: #aa0000; +} +.highlight .gt { + color: #aa0000; +} +.highlight .gh { + color: #999999; +} +.highlight .go { + color: #888888; +} +.highlight .gp { + color: #555555; +} +.highlight .gs { + font-weight: bold; +} +.highlight .gu { + color: #aaaaaa; +} +.highlight .k, .highlight .kv { + color: #66d9ef; + font-weight: bold; +} +.highlight .kc { + color: #66d9ef; + font-weight: bold; +} +.highlight .kd { + color: #66d9ef; + font-weight: bold; +} +.highlight .kp { + color: #66d9ef; + font-weight: bold; +} +.highlight .kr { + color: #66d9ef; + font-weight: bold; +} +.highlight .kt { + color: #66d9ef; + font-weight: bold; +} +.highlight .kn { + color: #f92672; + font-weight: bold; +} +.highlight .ow { + color: #f92672; + font-weight: bold; +} +.highlight .o { + color: #f92672; + font-weight: bold; +} +.highlight .mf { + color: #ae81ff; +} +.highlight .mh { + color: #ae81ff; +} +.highlight .il { + color: #ae81ff; +} +.highlight .mi { + color: #ae81ff; +} +.highlight .mo { + color: #ae81ff; +} +.highlight .m, .highlight .mb, .highlight .mx { + color: #ae81ff; +} +.highlight .se { + color: #ae81ff; +} +.highlight .sb { + color: #e6db74; +} +.highlight .sc { + color: #e6db74; +} +.highlight .sd { + color: #e6db74; +} +.highlight .s2 { + color: #e6db74; +} +.highlight .sh { + color: #e6db74; +} +.highlight .si { + color: #e6db74; +} +.highlight .sx { + color: #e6db74; +} +.highlight .sr { + color: #e6db74; +} +.highlight .s1 { + color: #e6db74; +} +.highlight .ss { + color: #e6db74; +} +.highlight .s, .highlight .sa, .highlight .dl { + color: #e6db74; +} +.highlight .na { + color: #a6e22e; +} +.highlight .nc { + color: #a6e22e; + font-weight: bold; +} +.highlight .nd { + color: #a6e22e; + font-weight: bold; +} +.highlight .ne { + color: #a6e22e; + font-weight: bold; +} +.highlight .nf, .highlight .fm { + color: #a6e22e; + font-weight: bold; +} +.highlight .no { + color: #66d9ef; +} +.highlight .bp { + color: #f8f8f2; +} +.highlight .nb { + color: #f8f8f2; +} +.highlight .ni { + color: #f8f8f2; +} +.highlight .nn { + color: #f8f8f2; +} +.highlight .vc { + color: #f8f8f2; +} +.highlight .vg { + color: #f8f8f2; +} +.highlight .vi { + color: #f8f8f2; +} +.highlight .nv, .highlight .vm { + color: #f8f8f2; +} +.highlight .w { + color: #f8f8f2; +} +.highlight .nl { + color: #f8f8f2; + font-weight: bold; +} +.highlight .nt { + color: #f92672; +} +.highlight { + color: #f8f8f2; + background-color: #49483e; +} diff --git a/_sass/hamilton/skins/sunrise.scss b/_sass/hamilton/skins/sunrise.scss new file mode 100644 index 0000000..d695689 --- /dev/null +++ b/_sass/hamilton/skins/sunrise.scss @@ -0,0 +1,109 @@ +$text-color: #222 !default; +$text-color-light: #373737 !default; +$background-color: #ecdbbb !default; +$code-background-color: #fbf1c7 !default; + +$border-color: mix(#000, $background-color, 20%) !default; +$border-color-light: lighten($border-color, 10%) !default; +$border-color-dark: darken($border-color, 25%) !default; + +$link-base-color: #760000 !default; +$link-visited-color: darken($link-base-color, 5%) !default; + +$table-text-color: lighten($text-color, 18%) !default; +$table-zebra-color: mix($background-color, $border-color, 80%) !default; +$table-header-bg-color: mix($background-color, $border-color, 70%) !default; +$table-header-border: $border-color !default; +$table-border-color: $border-color-light !default; + +$pre-shadow: 0 0 4px rgba(34,34,34,0.4) inset !default; +$dropdown-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2) !default; + +$subscribe-color: #004e00 !default; + +// Generated by running `rougify style gruvbox.light`; The version of rougify is 3.15.0 +// ============================================================================= +.highlight table td { padding: 5px; } +.highlight table pre { margin: 0; } +.highlight, .highlight .w { + color: #282828; + background-color: #fbf1c7; +} +.highlight .err { + color: #9d0006; + background-color: #fbf1c7; + font-weight: bold; +} +.highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs { + color: #928374; + font-style: italic; +} +.highlight .cp { + color: #427b58; +} +.highlight .nt { + color: #9d0006; +} +.highlight .o, .highlight .ow { + color: #282828; +} +.highlight .p, .highlight .pi { + color: #282828; +} +.highlight .gi { + color: #79740e; + background-color: #fbf1c7; +} +.highlight .gd { + color: #9d0006; + background-color: #fbf1c7; +} +.highlight .gh { + color: #79740e; + font-weight: bold; +} +.highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv { + color: #9d0006; +} +.highlight .kc { + color: #8f3f71; +} +.highlight .kt { + color: #b57614; +} +.highlight .kd { + color: #af3a03; +} +.highlight .s, .highlight .sa, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 { + color: #79740e; + font-style: italic; +} +.highlight .si { + color: #79740e; + font-style: italic; +} +.highlight .sr { + color: #79740e; + font-style: italic; +} +.highlight .se { + color: #af3a03; +} +.highlight .nn { + color: #427b58; +} +.highlight .nc { + color: #427b58; +} +.highlight .no { + color: #8f3f71; +} +.highlight .na { + color: #79740e; +} +.highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx { + color: #8f3f71; +} +.highlight .ss { + color: #076678; +} diff --git a/_sass/hamilton/skins/sunset.scss b/_sass/hamilton/skins/sunset.scss new file mode 100644 index 0000000..9bd0f2c --- /dev/null +++ b/_sass/hamilton/skins/sunset.scss @@ -0,0 +1 @@ +@import "hamilton/skins/sunrise"; diff --git a/_sass/hamilton/variables.scss b/_sass/hamilton/variables.scss new file mode 100644 index 0000000..34f4d02 --- /dev/null +++ b/_sass/hamilton/variables.scss @@ -0,0 +1,16 @@ +// Fonts +$base-font-family: "Open Sans" !default; +$reading-font-family: "Roboto Slab", "Noto Serif SC", "Noto Serif TC" !default; +$headline-font-family: Roboto, "Noto Sans SC", "Noto Sans TC" !default; +$code-font-family: Inconsolata !default; +$handwriting-font-family: "Dancing Script", "Ma Shan Zheng" !default; +$base-font-size: 18px !default; +$base-line-height: 1.5 !default; + +// Layouts +$spacing-unit: 2rem !default; +$content-width: 1100px !default; + +$on-small: 600px !default; +$on-medium: 900px !default; +$on-large: 1100px !default; diff --git a/about.md b/about.md new file mode 100644 index 0000000..1705bdd --- /dev/null +++ b/about.md @@ -0,0 +1,7 @@ +--- +layout: page +title: About +permalink: /about/ +--- + +Another minimal style of Jekyll theme for writers. diff --git a/announcements.md b/announcements.md new file mode 100644 index 0000000..f11dc7d --- /dev/null +++ b/announcements.md @@ -0,0 +1,6 @@ +--- +layout: archive-taxonomies +type: tags +title: Announcements +permalink: /announcements/ +--- diff --git a/assets/css/main.scss b/assets/css/main.scss new file mode 100644 index 0000000..259d385 --- /dev/null +++ b/assets/css/main.scss @@ -0,0 +1,4 @@ +--- +--- + +@import "hamilton/main"; diff --git a/assets/css/skin-daylight.scss b/assets/css/skin-daylight.scss new file mode 100644 index 0000000..c151d2c --- /dev/null +++ b/assets/css/skin-daylight.scss @@ -0,0 +1,7 @@ +--- +--- + +@import + "hamilton/skins/daylight", + "hamilton/skin" +; diff --git a/assets/css/skin-midnight.scss b/assets/css/skin-midnight.scss new file mode 100644 index 0000000..81181e5 --- /dev/null +++ b/assets/css/skin-midnight.scss @@ -0,0 +1,7 @@ +--- +--- + +@import + "hamilton/skins/midnight", + "hamilton/skin" +; diff --git a/assets/css/skin-sunrise.scss b/assets/css/skin-sunrise.scss new file mode 100644 index 0000000..5d66760 --- /dev/null +++ b/assets/css/skin-sunrise.scss @@ -0,0 +1,7 @@ +--- +--- + +@import + "hamilton/skins/sunrise", + "hamilton/skin" +; diff --git a/assets/css/skin-sunset.scss b/assets/css/skin-sunset.scss new file mode 100644 index 0000000..322264f --- /dev/null +++ b/assets/css/skin-sunset.scss @@ -0,0 +1,7 @@ +--- +--- + +@import + "hamilton/skins/sunset", + "hamilton/skin" +; diff --git a/assets/css/skin.scss b/assets/css/skin.scss new file mode 100644 index 0000000..f7e2c0c --- /dev/null +++ b/assets/css/skin.scss @@ -0,0 +1,7 @@ +--- +--- + +@import + "hamilton/skins/{{ site.skin | default: 'daylight' }}", + "hamilton/skin" +; diff --git a/docs.md b/docs.md new file mode 100644 index 0000000..bfabd8e --- /dev/null +++ b/docs.md @@ -0,0 +1,7 @@ +--- +layout: page +title: Docs +permalink: /docs/ +--- + +A documentation page. diff --git a/faq.md b/faq.md new file mode 100644 index 0000000..b0593d6 --- /dev/null +++ b/faq.md @@ -0,0 +1,7 @@ +--- +layout: page +title: FAQ +permalink: /faq/ +--- + +An FAQ page. diff --git a/index.html b/index.html new file mode 100644 index 0000000..e4d427d --- /dev/null +++ b/index.html @@ -0,0 +1,3 @@ +--- +layout: home +--- diff --git a/initial_pass.png b/initial_pass.png new file mode 100644 index 0000000..3a335ec Binary files /dev/null and b/initial_pass.png differ diff --git a/jekyll-theme-hamilton.gemspec b/jekyll-theme-hamilton.gemspec new file mode 100644 index 0000000..bcb9c48 --- /dev/null +++ b/jekyll-theme-hamilton.gemspec @@ -0,0 +1,24 @@ +# frozen_string_literal: true + +Gem::Specification.new do |spec| + spec.name = "jekyll-theme-hamilton" + spec.version = "4.0.0" + spec.authors = ["Shangzhi Huang"] + spec.email = ["ngzhio@gmail.com"] + + spec.summary = "A minimal and beautiful Jekyll theme best for writing and note-taking." + spec.homepage = "https://github.com/ngzhio/jekyll-theme-hamilton" + spec.license = "MIT" + + spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r!^(assets|_layouts|_includes|_sass|LICENSE|README)!i) } + + spec.add_runtime_dependency "jekyll", "~> 3.9" + spec.add_runtime_dependency "jekyll-seo-tag", "~> 2.6" + spec.add_runtime_dependency "jekyll-feed", "~> 0.13" + spec.add_runtime_dependency "jekyll-sitemap", "~> 1.4" + spec.add_runtime_dependency "jekyll-paginate", "~> 1.1" + spec.add_runtime_dependency "kramdown-parser-gfm", "~> 1.1" + + spec.add_development_dependency "bundler", "~> 2.0" + spec.add_development_dependency "rake", "~> 12.0" +end diff --git a/local.md b/local.md new file mode 100644 index 0000000..721fc96 --- /dev/null +++ b/local.md @@ -0,0 +1,6 @@ +--- +layout: archive-taxonomies +type: local +title: Local Companies +permalink: /local/ +--- diff --git a/members.md b/members.md new file mode 100644 index 0000000..0ad02d9 --- /dev/null +++ b/members.md @@ -0,0 +1,6 @@ +--- +layout: archive-taxonomies +type: members +title: Members +permalink: /members/ +--- diff --git a/news.md b/news.md new file mode 100644 index 0000000..b47ed6c --- /dev/null +++ b/news.md @@ -0,0 +1,6 @@ +--- +layout: archive-taxonomies +type: news +title: Kotlin News +permalink: /news/ +--- diff --git a/previous.md b/previous.md new file mode 100644 index 0000000..0f884fb --- /dev/null +++ b/previous.md @@ -0,0 +1,6 @@ +--- +layout: archive-taxonomies +type: previous +title: Previous +permalink: /previous/ +--- diff --git a/screenshot-midnight.png b/screenshot-midnight.png new file mode 100644 index 0000000..9103421 Binary files /dev/null and b/screenshot-midnight.png differ diff --git a/screenshot-sunrise.png b/screenshot-sunrise.png new file mode 100644 index 0000000..9e9f863 Binary files /dev/null and b/screenshot-sunrise.png differ diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..1b92b69 Binary files /dev/null and b/screenshot.png differ diff --git a/scripts/server b/scripts/server new file mode 100755 index 0000000..c093910 --- /dev/null +++ b/scripts/server @@ -0,0 +1,3 @@ +#!/bin/sh + +bundle exec jekyll serve --trace \ No newline at end of file diff --git a/sdkotlin.github.io.iml b/sdkotlin.github.io.iml new file mode 100644 index 0000000..8021953 --- /dev/null +++ b/sdkotlin.github.io.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/tags.md b/tags.md new file mode 100644 index 0000000..958d5d7 --- /dev/null +++ b/tags.md @@ -0,0 +1,6 @@ +--- +layout: archive-taxonomies +type: tags +title: Tags +permalink: /tags/ +--- diff --git a/upcoming.md b/upcoming.md new file mode 100644 index 0000000..e2e3752 --- /dev/null +++ b/upcoming.md @@ -0,0 +1,6 @@ +--- +layout: archive-taxonomies +type: upcoming +title: Upcoming +permalink: /upcoming/ +--- diff --git a/years.md b/years.md new file mode 100644 index 0000000..b20db6f --- /dev/null +++ b/years.md @@ -0,0 +1,5 @@ +--- +layout: archive-years +title: Years +permalink: /years/ +---