├── .github └── workflows │ └── main.yml ├── .gitignore ├── CODE_OF_CONDUCT.md ├── Gemfile ├── Gemfile.lock ├── LICENSE ├── README.md ├── _config.yml ├── _includes ├── footer.html ├── head.html └── header.html ├── _layouts ├── default.html ├── page.html └── post.html ├── _posts └── 2018-05-10-blog-boilerplate.md ├── _sass ├── _base.scss ├── _layout.scss └── _syntax-highlighting.scss ├── css ├── center-img.css └── main.scss ├── favicon.ico ├── feed.xml ├── images └── .gitignore └── index.html /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: Continuous Integration 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build: 7 | runs-on: ubuntu-latest 8 | 9 | steps: 10 | - uses: actions/checkout@v3 11 | 12 | - name: Setup Ruby 13 | uses: ruby/setup-ruby@v1 14 | with: 15 | ruby-version: '2.7' 16 | bundler-cache: true 17 | 18 | - name: Check build 19 | run: bundle exec jekyll build 20 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .sass-cache 2 | _site 3 | *~ 4 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # The Rust Code of Conduct 2 | 3 | The Code of Conduct for this repository [can be found online](https://www.rust-lang.org/policies/code-of-conduct). 4 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | 3 | gem 'github-pages' 4 | gem 'jekyll', '~>3.1.6' 5 | -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- 1 | GEM 2 | remote: https://rubygems.org/ 3 | specs: 4 | activesupport (4.2.7) 5 | i18n (~> 0.7) 6 | json (~> 1.7, >= 1.7.7) 7 | minitest (~> 5.1) 8 | thread_safe (~> 0.3, >= 0.3.4) 9 | tzinfo (~> 1.1) 10 | addressable (2.4.0) 11 | coffee-script (2.4.1) 12 | coffee-script-source 13 | execjs 14 | coffee-script-source (1.12.2) 15 | colorator (0.1) 16 | concurrent-ruby (1.0.5) 17 | ethon (0.11.0) 18 | ffi (>= 1.3.0) 19 | execjs (2.7.0) 20 | faraday (0.13.1) 21 | multipart-post (>= 1.2, < 3) 22 | ffi (1.11.2) 23 | ffi (1.11.2-x64-mingw32) 24 | ffi (1.11.2-x86-mingw32) 25 | gemoji (2.1.0) 26 | github-pages (92) 27 | activesupport (= 4.2.7) 28 | github-pages-health-check (= 1.2.0) 29 | jekyll (= 3.1.6) 30 | jekyll-coffeescript (= 1.0.1) 31 | jekyll-feed (= 0.5.1) 32 | jekyll-gist (= 1.4.0) 33 | jekyll-github-metadata (= 2.0.2) 34 | jekyll-mentions (= 1.1.3) 35 | jekyll-paginate (= 1.1.0) 36 | jekyll-redirect-from (= 0.11.0) 37 | jekyll-sass-converter (= 1.3.0) 38 | jekyll-seo-tag (= 2.0.0) 39 | jekyll-sitemap (= 0.10.0) 40 | jemoji (= 0.7.0) 41 | kramdown (= 1.11.1) 42 | liquid (= 3.0.6) 43 | listen (= 3.0.6) 44 | mercenary (~> 0.3) 45 | rouge (= 1.11.1) 46 | terminal-table (~> 1.4) 47 | github-pages-health-check (1.2.0) 48 | addressable (~> 2.3) 49 | net-dns (~> 0.8) 50 | octokit (~> 4.0) 51 | public_suffix (~> 1.4) 52 | typhoeus (~> 0.7) 53 | html-pipeline (2.7.1) 54 | activesupport (>= 2) 55 | nokogiri (>= 1.4) 56 | i18n (0.9.1) 57 | concurrent-ruby (~> 1.0) 58 | jekyll (3.1.6) 59 | colorator (~> 0.1) 60 | jekyll-sass-converter (~> 1.0) 61 | jekyll-watch (~> 1.1) 62 | kramdown (~> 1.3) 63 | liquid (~> 3.0) 64 | mercenary (~> 0.3.3) 65 | rouge (~> 1.7) 66 | safe_yaml (~> 1.0) 67 | jekyll-coffeescript (1.0.1) 68 | coffee-script (~> 2.2) 69 | jekyll-feed (0.5.1) 70 | jekyll-gist (1.4.0) 71 | octokit (~> 4.2) 72 | jekyll-github-metadata (2.0.2) 73 | jekyll (~> 3.1) 74 | octokit (~> 4.0) 75 | jekyll-mentions (1.1.3) 76 | html-pipeline (~> 2.3) 77 | jekyll (~> 3.0) 78 | jekyll-paginate (1.1.0) 79 | jekyll-redirect-from (0.11.0) 80 | jekyll (>= 2.0) 81 | jekyll-sass-converter (1.3.0) 82 | sass (~> 3.2) 83 | jekyll-seo-tag (2.0.0) 84 | jekyll (~> 3.1) 85 | jekyll-sitemap (0.10.0) 86 | jekyll-watch (1.5.1) 87 | listen (~> 3.0) 88 | jemoji (0.7.0) 89 | activesupport (~> 4.0) 90 | gemoji (~> 2.0) 91 | html-pipeline (~> 2.2) 92 | jekyll (>= 3.0) 93 | json (1.8.6) 94 | kramdown (1.11.1) 95 | liquid (3.0.6) 96 | listen (3.0.6) 97 | rb-fsevent (>= 0.9.3) 98 | rb-inotify (>= 0.9.7) 99 | mercenary (0.3.6) 100 | mini_portile2 (2.8.1) 101 | minitest (5.11.1) 102 | multipart-post (2.0.0) 103 | net-dns (0.8.0) 104 | nokogiri (1.14.3) 105 | mini_portile2 (~> 2.8.0) 106 | racc (~> 1.4) 107 | octokit (4.8.0) 108 | sawyer (~> 0.8.0, >= 0.5.3) 109 | public_suffix (1.5.3) 110 | racc (1.6.2) 111 | rb-fsevent (0.10.2) 112 | rb-inotify (0.9.10) 113 | ffi (>= 0.5.0, < 2) 114 | rouge (1.11.1) 115 | safe_yaml (1.0.4) 116 | sass (3.5.5) 117 | sass-listen (~> 4.0.0) 118 | sass-listen (4.0.0) 119 | rb-fsevent (~> 0.9, >= 0.9.4) 120 | rb-inotify (~> 0.9, >= 0.9.7) 121 | sawyer (0.8.1) 122 | addressable (>= 2.3.5, < 2.6) 123 | faraday (~> 0.8, < 1.0) 124 | terminal-table (1.8.0) 125 | unicode-display_width (~> 1.1, >= 1.1.1) 126 | thread_safe (0.3.6) 127 | typhoeus (0.8.0) 128 | ethon (>= 0.8.0) 129 | tzinfo (1.2.10) 130 | thread_safe (~> 0.1) 131 | unicode-display_width (1.3.0) 132 | 133 | PLATFORMS 134 | ruby 135 | x64-mingw32 136 | x86-mingw32 137 | 138 | DEPENDENCIES 139 | github-pages 140 | jekyll (~> 3.1.6) 141 | 142 | BUNDLED WITH 143 | 2.3.18 144 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | ## creative commons 2 | 3 | # Attribution 4.0 International 4 | 5 | Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. 6 | 7 | ### Using Creative Commons Public Licenses 8 | 9 | Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. 10 | 11 | * __Considerations for licensors:__ Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. [More considerations for licensors](http://wiki.creativecommons.org/Considerations_for_licensors_and_licensees#Considerations_for_licensors). 12 | 13 | * __Considerations for the public:__ By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. [More considerations for the public](http://wiki.creativecommons.org/Considerations_for_licensors_and_licensees#Considerations_for_licensees). 14 | 15 | ## Creative Commons Attribution 4.0 International Public License 16 | 17 | By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. 18 | 19 | ### Section 1 – Definitions. 20 | 21 | a. __Adapted Material__ means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. 22 | 23 | b. __Adapter's License__ means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. 24 | 25 | c. __Copyright and Similar Rights__ means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. 26 | 27 | d. __Effective Technological Measures__ means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. 28 | 29 | e. __Exceptions and Limitations__ means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. 30 | 31 | f. __Licensed Material__ means the artistic or literary work, database, or other material to which the Licensor applied this Public License. 32 | 33 | g. __Licensed Rights__ means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. 34 | 35 | h. __Licensor__ means the individual(s) or entity(ies) granting rights under this Public License. 36 | 37 | i. __Share__ means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. 38 | 39 | j. __Sui Generis Database Rights__ means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. 40 | 41 | k. __You__ means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. 42 | 43 | ### Section 2 – Scope. 44 | 45 | a. ___License grant.___ 46 | 47 | 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: 48 | 49 | A. reproduce and Share the Licensed Material, in whole or in part; and 50 | 51 | B. produce, reproduce, and Share Adapted Material. 52 | 53 | 2. __Exceptions and Limitations.__ For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. 54 | 55 | 3. __Term.__ The term of this Public License is specified in Section 6(a). 56 | 57 | 4. __Media and formats; technical modifications allowed.__ The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. 58 | 59 | 5. __Downstream recipients.__ 60 | 61 | A. __Offer from the Licensor – Licensed Material.__ Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. 62 | 63 | B. __No downstream restrictions.__ You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. 64 | 65 | 6. __No endorsement.__ Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). 66 | 67 | b. ___Other rights.___ 68 | 69 | 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. 70 | 71 | 2. Patent and trademark rights are not licensed under this Public License. 72 | 73 | 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. 74 | 75 | ### Section 3 – License Conditions. 76 | 77 | Your exercise of the Licensed Rights is expressly made subject to the following conditions. 78 | 79 | a. ___Attribution.___ 80 | 81 | 1. If You Share the Licensed Material (including in modified form), You must: 82 | 83 | A. retain the following if it is supplied by the Licensor with the Licensed Material: 84 | 85 | i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); 86 | 87 | ii. a copyright notice; 88 | 89 | iii. a notice that refers to this Public License; 90 | 91 | iv. a notice that refers to the disclaimer of warranties; 92 | 93 | v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; 94 | 95 | B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and 96 | 97 | C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. 98 | 99 | 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. 100 | 101 | 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. 102 | 103 | 4. If You Share Adapted Material You produce, the Adapter's License You apply must not prevent recipients of the Adapted Material from complying with this Public License. 104 | 105 | ### Section 4 – Sui Generis Database Rights. 106 | 107 | Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: 108 | 109 | a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database; 110 | 111 | b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and 112 | 113 | c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. 114 | 115 | For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. 116 | 117 | ### Section 5 – Disclaimer of Warranties and Limitation of Liability. 118 | 119 | a. __Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.__ 120 | 121 | b. __To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.__ 122 | 123 | c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. 124 | 125 | ### Section 6 – Term and Termination. 126 | 127 | a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. 128 | 129 | b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: 130 | 131 | 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or 132 | 133 | 2. upon express reinstatement by the Licensor. 134 | 135 | For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. 136 | 137 | c. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. 138 | 139 | d. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. 140 | 141 | ### Section 7 – Other Terms and Conditions. 142 | 143 | a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. 144 | 145 | b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. 146 | 147 | ### Section 8 – Interpretation. 148 | 149 | a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. 150 | 151 | b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. 152 | 153 | c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. 154 | 155 | d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. 156 | 157 | ``` 158 | Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at [creativecommons.org/policies](http://creativecommons.org/policies), Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. 159 | 160 | Creative Commons may be contacted at [creativecommons.org](http://creativecommons.org/). 161 | ``` 162 | 163 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # RustLang Blog Boilerplate 2 | 3 | This is the boilerplate code that allows you to quickly setup a blog that looks like the [RustLang blog]. 4 | It can easily be run on [GitHub pages]. 5 | 6 | This project has been forked from the awesome [GitHub repo] of the [RustLang blog]. 7 | 8 | [RustLang blog]: https://blog.rust-lang.org/ 9 | [GitHub repo]: https://github.com/rust-lang/blog.rust-lang.org 10 | [GitHub pages]: https://pages.github.com/ 11 | 12 | ## How to use it 13 | 14 | - [Fork the repository](https://help.github.com/articles/fork-a-repo/) to your own github account 15 | - [Clone your forked repository](https://help.github.com/articles/cloning-a-repository/) 16 | - Edit the [_config.yml](_config.yml) file to add your own information 17 | - Create a blog post in the _posts directory (or edit [the example blog post](2018-05-10-blog-boilerplate.md)) 18 | - [Add your files, commit and push](http://guides.railsgirls.com/github) so your modifications are saved on github.com 19 | - [Setup github pages](https://pages.github.com/) 20 | - Send me a link to your blog and your first article, I'd love to read it ! :) 21 | 22 | A deeper guide on how to setup a jekyll blog can be found [here](https://www.smashingmagazine.com/2014/08/build-blog-jekyll-github-pages/). I'll probably create one too if it helps. 23 | 24 | The theme and layout can be found under `/_includes`, `/_layouts`, `/_sass`, and `/css`. 25 | 26 | The favicon is [here](favicon.ico). 27 | 28 | ## License 29 | 30 | The Rust Programming Language Blog is primarily distributed under the terms of 31 | CC-BY 4.0. 32 | So is this boilerplate. 33 | 34 | See [LICENSE](LICENSE) for details. 35 | 36 | ## Code of conduct 37 | 38 | Any project I create and I take part of respects the [Rust Code of Conduct](CODE_OF_CONDUCT.md). 39 | 40 | If there is any issue send me a message and I will make sure the code is respected. 41 | 42 | Happy blogging and happy coding ! :) 43 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | # Site settings 2 | title: Your blog title goes here 3 | description: > 4 | Your blog description 5 | baseurl: "/rust-lang-blog-boilerplate" # should be / if you build a global github page (eg o0ignition0o.github.io) 6 | url: "https://o0Ignition0o.github.io" # The blog url you want to choose (you can use a github.io one, or pick your own hosted url :)) 7 | logo: "https://www.rust-lang.org/logos/rust-logo-64x64-blk.png" # This one is used as blog logo 8 | twitter_username: o0ignition0o # Your twitter handle 9 | github_username: o0Ignition0o # Your github handle 10 | exclude: 11 | - vendor 12 | - .github 13 | - README.md 14 | - Gemfile 15 | - Gemfile.lock 16 | 17 | # Build settings 18 | highlighter: rouge 19 | 20 | root: "https://check-out-my-awesome-blog.org" # Not really sure this is useful, need to cross check with blog writers :) 21 | -------------------------------------------------------------------------------- /_includes/footer.html: -------------------------------------------------------------------------------- 1 | 69 | -------------------------------------------------------------------------------- /_includes/head.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | {% if page.title %}{{ page.title }} - {{ site.title }}{% else %}{{ site.title }}{% endif %} 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | {% if page.description %} 18 | 19 | {% else %} 20 | 21 | {% endif %} 22 | 23 | 28 | 29 | -------------------------------------------------------------------------------- /_includes/header.html: -------------------------------------------------------------------------------- 1 | 73 | -------------------------------------------------------------------------------- /_layouts/default.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {% include head.html %} 5 | 6 | 7 | 8 | {% include header.html %} 9 | 10 |
11 |
12 | {{ content }} 13 |
14 |
15 | 16 | {% include footer.html %} 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /_layouts/page.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: default 3 | --- 4 |
5 | 6 |
7 |

{{ page.title }}

8 |
9 | 10 |
11 | {{ content }} 12 |
13 | 14 |
15 | -------------------------------------------------------------------------------- /_layouts/post.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: default 3 | --- 4 |
5 | 6 |
7 |

{{ page.title }}

8 | 9 |
10 | 11 |
12 | {{ content }} 13 |
14 | 15 |
16 | -------------------------------------------------------------------------------- /_posts/2018-05-10-blog-boilerplate.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post 3 | title: "This is an example article, modify me to create your first blog post!" 4 | author: You! :) 5 | --- 6 | 7 | Here is a boilerplate you can modify to write your first blog post! 8 | 9 | All of the [markdown rules](https://guides.github.com/features/mastering-markdown/) apply here. 10 | 11 | For example, you can write something in *italic* like this, you can write in **bold** like that. 12 | 13 | # This is an h1 (big) title 14 | 15 | ## This title is a bit smaller 16 | 17 | ### This one is even more smaller etc. 18 | 19 | Don't hesitate and visit [mastering-markdown](https://guides.github.com/features/mastering-markdown/) to get more information! 20 | 21 | # The name of the file is important! 22 | This will generate the url, and complete the blog post meta information (Such as the date for example). 23 | 24 | A relevant page name, which matches the title pretty well might help [Search Engine Optimization](https://en.wikipedia.org/wiki/Search_engine_optimization) (Making sure the post is well referenced on search engines) 25 | -------------------------------------------------------------------------------- /_sass/_base.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Clearfix 3 | */ 4 | @mixin clearfix { 5 | &:after { 6 | content: ""; 7 | display: table; 8 | clear: both; 9 | } 10 | } 11 | @mixin default { 12 | /** 13 | * Reset some basic elements 14 | */ 15 | body, 16 | h1, 17 | h2, 18 | h3, 19 | h4, 20 | h5, 21 | h6, 22 | p, 23 | blockquote, 24 | pre, 25 | hr, 26 | dl, 27 | dd, 28 | ol, 29 | ul, 30 | figure { 31 | margin: 0; 32 | padding: 0; 33 | } 34 | 35 | /** 36 | * Basic styling 37 | */ 38 | body { 39 | font-family: $base-font-family; 40 | font-size: $base-font-size; 41 | line-height: $base-line-height; 42 | font-weight: 300; 43 | color: $text-color; 44 | background-color: $background-color; 45 | } 46 | 47 | /** 48 | * Set `margin-bottom` to maintain vertical rhythm 49 | */ 50 | h1, 51 | h2, 52 | h3, 53 | h4, 54 | h5, 55 | h6, 56 | p, 57 | blockquote, 58 | pre, 59 | ul, 60 | ol, 61 | dl, 62 | figure, 63 | table, 64 | %vertical-rhythm { 65 | margin-bottom: $spacing-unit / 2; 66 | } 67 | 68 | /** 69 | * Images 70 | */ 71 | img { 72 | max-width: 100%; 73 | vertical-align: middle; 74 | } 75 | 76 | /** 77 | * Figures 78 | */ 79 | figure > img { 80 | display: block; 81 | } 82 | 83 | figcaption { 84 | font-size: $small-font-size; 85 | } 86 | 87 | /** 88 | * Lists 89 | */ 90 | ul, 91 | ol { 92 | margin-left: $spacing-unit; 93 | } 94 | 95 | li { 96 | > ul, 97 | > ol { 98 | margin-bottom: 0; 99 | } 100 | } 101 | 102 | /** 103 | * Headings 104 | */ 105 | h1, 106 | h2, 107 | h3, 108 | h4, 109 | h5, 110 | h6 { 111 | font-weight: 300; 112 | color: $text-color; 113 | } 114 | 115 | /** 116 | * Links 117 | */ 118 | a { 119 | color: $brand-color; 120 | text-decoration: none; 121 | 122 | &:visited { 123 | color: darken($brand-color, 15%); 124 | } 125 | 126 | &:hover { 127 | color: $text-color; 128 | text-decoration: underline; 129 | } 130 | } 131 | 132 | /** 133 | * Blockquotes 134 | */ 135 | blockquote { 136 | color: $grey-color; 137 | border-left: 4px solid $grey-color-light; 138 | padding-left: $spacing-unit / 2; 139 | font-size: 18px; 140 | letter-spacing: -1px; 141 | font-style: italic; 142 | 143 | > :last-child { 144 | margin-bottom: 0; 145 | } 146 | } 147 | 148 | /** 149 | * Code formatting 150 | */ 151 | pre, 152 | code { 153 | font-size: 15px; 154 | border: 1px solid $grey-color-light; 155 | border-radius: 3px; 156 | background-color: #eef; 157 | } 158 | 159 | code { 160 | padding: 1px 5px; 161 | } 162 | 163 | pre { 164 | padding: 8px 12px; 165 | overflow-x: scroll; 166 | 167 | > code { 168 | border: 0; 169 | padding-right: 0; 170 | padding-left: 0; 171 | } 172 | } 173 | 174 | /** 175 | * Wrapper 176 | */ 177 | .wrapper { 178 | max-width: -webkit-calc(800px - (#{$spacing-unit} * 2)); 179 | max-width: calc(800px - (#{$spacing-unit} * 2)); 180 | margin-right: auto; 181 | margin-left: auto; 182 | padding-right: $spacing-unit; 183 | padding-left: $spacing-unit; 184 | @include clearfix(); 185 | 186 | @include media-query($on-laptop) { 187 | max-width: -webkit-calc(800px - (#{$spacing-unit})); 188 | max-width: calc(800px - (#{$spacing-unit})); 189 | padding-right: $spacing-unit / 2; 190 | padding-left: $spacing-unit / 2; 191 | } 192 | } 193 | 194 | /** 195 | * Icons 196 | */ 197 | .icon { 198 | > svg { 199 | display: inline-block; 200 | width: 16px; 201 | height: 16px; 202 | vertical-align: middle; 203 | 204 | path { 205 | fill: $grey-color; 206 | } 207 | } 208 | } 209 | 210 | /** 211 | * Text styling 212 | */ 213 | strong, 214 | b { 215 | font-weight: bold; 216 | } 217 | 218 | /** 219 | * Code higlighting 220 | */ 221 | .highlight { 222 | background-color: #eef; 223 | } 224 | } 225 | 226 | @mixin dark { 227 | /** 228 | * Reset some basic elements 229 | */ 230 | body, 231 | h1, 232 | h2, 233 | h3, 234 | h4, 235 | h5, 236 | h6, 237 | p, 238 | blockquote, 239 | pre, 240 | hr, 241 | dl, 242 | dd, 243 | ol, 244 | ul, 245 | figure { 246 | margin: 0; 247 | padding: 0; 248 | } 249 | 250 | /** 251 | * Basic styling 252 | */ 253 | body { 254 | font-family: $base-font-family; 255 | font-size: $base-font-size; 256 | line-height: $base-line-height; 257 | font-weight: 300; 258 | color: $dark-text-color; 259 | background-color: $dark-background-color; 260 | } 261 | 262 | /** 263 | * Set `margin-bottom` to maintain vertical rhythm 264 | */ 265 | h1, 266 | h2, 267 | h3, 268 | h4, 269 | h5, 270 | h6, 271 | p, 272 | blockquote, 273 | pre, 274 | ul, 275 | ol, 276 | dl, 277 | figure, 278 | table, 279 | %vertical-rhythm { 280 | margin-bottom: $spacing-unit / 2; 281 | } 282 | 283 | /** 284 | * Images 285 | */ 286 | img { 287 | max-width: 100%; 288 | vertical-align: middle; 289 | } 290 | 291 | /** 292 | * Figures 293 | */ 294 | figure > img { 295 | display: block; 296 | } 297 | 298 | figcaption { 299 | font-size: $small-font-size; 300 | } 301 | 302 | /** 303 | * Lists 304 | */ 305 | ul, 306 | ol { 307 | margin-left: $spacing-unit; 308 | } 309 | 310 | li { 311 | > ul, 312 | > ol { 313 | margin-bottom: 0; 314 | } 315 | } 316 | 317 | /** 318 | * Headings 319 | */ 320 | h1, 321 | h2, 322 | h3, 323 | h4, 324 | h5, 325 | h6 { 326 | font-weight: 300; 327 | color: #fff; 328 | } 329 | 330 | /** 331 | * Links 332 | */ 333 | a { 334 | color: #0096cf; 335 | text-decoration: none; 336 | 337 | &:visited { 338 | color: #005d81; 339 | } 340 | 341 | &:hover { 342 | color: #0096cf; 343 | text-decoration: underline; 344 | } 345 | } 346 | 347 | /** 348 | * Blockquotes 349 | */ 350 | blockquote { 351 | color: inherit; 352 | border-left: 4px solid #5c6773; 353 | padding-left: $spacing-unit / 2; 354 | font-size: 18px; 355 | letter-spacing: -1px; 356 | font-style: italic; 357 | 358 | > :last-child { 359 | margin-bottom: 0; 360 | } 361 | } 362 | 363 | /** 364 | * Code formatting 365 | */ 366 | pre, 367 | code { 368 | font-size: 15px; 369 | border: none; 370 | border-radius: 3px; 371 | background-color: #191f26; 372 | } 373 | 374 | code { 375 | padding: 0 0.2em; 376 | } 377 | 378 | pre { 379 | padding: 8px 12px; 380 | overflow-x: auto; 381 | 382 | > code { 383 | border: 0; 384 | padding-right: 0; 385 | padding-left: 0; 386 | } 387 | } 388 | 389 | /** 390 | * Wrapper 391 | */ 392 | .wrapper { 393 | max-width: -webkit-calc(800px - (#{$spacing-unit} * 2)); 394 | max-width: calc(800px - (#{$spacing-unit} * 2)); 395 | margin-right: auto; 396 | margin-left: auto; 397 | padding-right: $spacing-unit; 398 | padding-left: $spacing-unit; 399 | @include clearfix(); 400 | 401 | @include media-query($on-laptop) { 402 | max-width: -webkit-calc(800px - (#{$spacing-unit})); 403 | max-width: calc(800px - (#{$spacing-unit})); 404 | padding-right: $spacing-unit / 2; 405 | padding-left: $spacing-unit / 2; 406 | } 407 | } 408 | 409 | /** 410 | * Clearfix 411 | */ 412 | %clearfix { 413 | &:after { 414 | content: ""; 415 | display: table; 416 | clear: both; 417 | } 418 | } 419 | 420 | /** 421 | * Icons 422 | */ 423 | .icon { 424 | > svg { 425 | display: inline-block; 426 | width: 16px; 427 | height: 16px; 428 | vertical-align: middle; 429 | 430 | path { 431 | fill: $grey-color; 432 | } 433 | } 434 | } 435 | 436 | /** 437 | * Text styling 438 | */ 439 | strong, 440 | b { 441 | font-weight: bold; 442 | } 443 | 444 | /** 445 | * Code higlighting 446 | */ 447 | .highlight { 448 | background-color: #191f26 !important; 449 | border: none !important; 450 | } 451 | } 452 | 453 | // Order of specificity 454 | 455 | // Start with default 456 | @include default(); 457 | 458 | // Then system dark mode 459 | @media (prefers-color-scheme: dark) { 460 | @include dark(); 461 | } 462 | 463 | // Then toggle override of default/dark 464 | 465 | html.dark { 466 | @include dark(); 467 | } 468 | 469 | html.default { 470 | @include default(); 471 | } 472 | -------------------------------------------------------------------------------- /_sass/_layout.scss: -------------------------------------------------------------------------------- 1 | @mixin layoutDefault { 2 | /** 3 | * Site header 4 | */ 5 | .site-header { 6 | border-top: 5px solid $grey-color-dark; 7 | border-bottom: 1px solid $grey-color-light; 8 | min-height: 56px; 9 | 10 | // Positioning context for the mobile navigation icon 11 | position: relative; 12 | } 13 | 14 | #site-logo { 15 | width: 48px; 16 | height: 48px; 17 | padding: 5px 0; 18 | filter: none; 19 | } 20 | 21 | .toggle-mode { 22 | width: 100%; 23 | display: flex; 24 | 25 | .icon { 26 | width: 25px; 27 | float: left; 28 | margin: 0 8px; 29 | display: flex; 30 | font-size: 1.5rem; 31 | justify-content: center; 32 | 33 | i.font { 34 | font-size: 20px; 35 | color: #4fa1d0; 36 | display: inline-block; 37 | text-rendering: auto; 38 | position: relative; 39 | font-style: normal; 40 | bottom: 5px; 41 | } 42 | 43 | .font-sun-o:before { 44 | content: "\1F323"; 45 | } 46 | 47 | .font-moon-o:before { 48 | content: "\263D"; 49 | } 50 | } 51 | 52 | .icon:first-child { 53 | margin-left: 0; 54 | } 55 | 56 | .toggle-switch { 57 | .slider { 58 | position: absolute; 59 | cursor: pointer; 60 | top: 0; 61 | left: 0; 62 | right: 0; 63 | bottom: 0; 64 | background-color: #c3e4f7; 65 | border: 1px solid #c3e4f7; 66 | 67 | &:before { 68 | background-color: #4fa1d0; 69 | transform: translateX(0); 70 | transition: transform 0.5s; 71 | position: absolute; 72 | content: ""; 73 | height: 15px; 74 | width: 15px; 75 | left: 2px; 76 | bottom: 1px; 77 | } 78 | } 79 | 80 | input:checked + .slider:before { 81 | transform: translateX(26px); 82 | } 83 | 84 | .slider.round { 85 | border-radius: 34px; 86 | 87 | &:before { 88 | border-radius: 50%; 89 | } 90 | } 91 | 92 | .switch { 93 | position: relative; 94 | display: inline-block; 95 | width: 47px; 96 | height: 19px; 97 | 98 | input { 99 | display: none; 100 | } 101 | } 102 | } 103 | } 104 | 105 | .site-switch-theme { 106 | position: relative; 107 | display: inline-block; 108 | width: 60px; 109 | height: 27px; 110 | float: right; 111 | .site-switch-theme input { 112 | display: none; 113 | } 114 | .slider { 115 | position: absolute; 116 | cursor: pointer; 117 | top: 0; 118 | left: 0; 119 | right: 0; 120 | bottom: 0; 121 | background-color: #ccc; 122 | -webkit-transition: 0.4s; 123 | transition: 0.4s; 124 | } 125 | .slider:before { 126 | position: absolute; 127 | content: ""; 128 | height: 20px; 129 | width: 20px; 130 | left: 4px; 131 | bottom: 4px; 132 | background-color: white; 133 | -webkit-transition: 0.4s; 134 | transition: 0.4s; 135 | } 136 | input:checked + .slider { 137 | background-color: #2196f3; 138 | } 139 | input:focus + .slider { 140 | box-shadow: 0 0 1px #2196f3; 141 | } 142 | input:checked + .slider:before { 143 | -webkit-transform: translateX(26px); 144 | -ms-transform: translateX(26px); 145 | transform: translateX(26px); 146 | } 147 | } 148 | 149 | .site-title { 150 | font-size: 26px; 151 | line-height: 56px; 152 | letter-spacing: -1px; 153 | margin-bottom: 0; 154 | float: left; 155 | 156 | &, 157 | &:visited { 158 | color: $grey-color-dark; 159 | } 160 | } 161 | 162 | .site-nav { 163 | float: right; 164 | line-height: 56px; 165 | 166 | .menu-icon { 167 | display: none; 168 | } 169 | 170 | .page-link { 171 | color: $text-color; 172 | line-height: $base-line-height; 173 | 174 | // Gaps between nav items, but not on the first one 175 | &:not(:first-child) { 176 | margin-left: 20px; 177 | } 178 | } 179 | 180 | @include media-query($on-palm) { 181 | position: absolute; 182 | top: 9px; 183 | right: 30px; 184 | background-color: $background-color; 185 | border: 1px solid $grey-color-light; 186 | border-radius: 5px; 187 | text-align: right; 188 | 189 | .menu-icon { 190 | display: block; 191 | float: right; 192 | width: 36px; 193 | height: 26px; 194 | line-height: 0; 195 | padding-top: 10px; 196 | text-align: center; 197 | 198 | > svg { 199 | width: 18px; 200 | height: 15px; 201 | 202 | path { 203 | fill: $grey-color-dark; 204 | } 205 | } 206 | } 207 | 208 | .trigger { 209 | clear: both; 210 | display: none; 211 | } 212 | 213 | &:hover .trigger { 214 | display: block; 215 | padding-bottom: 5px; 216 | } 217 | 218 | .page-link { 219 | display: block; 220 | padding: 5px 10px; 221 | } 222 | } 223 | } 224 | 225 | /** 226 | * Site footer 227 | */ 228 | .site-footer { 229 | border-top: 1px solid $grey-color-light; 230 | padding: $spacing-unit 0; 231 | } 232 | 233 | .footer-heading { 234 | font-size: 18px; 235 | margin-bottom: $spacing-unit / 2; 236 | } 237 | 238 | .footer-links { 239 | text-align: center; 240 | font-size: 18px; 241 | margin-bottom: $spacing-unit / 2; 242 | } 243 | 244 | .contact-list, 245 | .social-media-list { 246 | list-style: none; 247 | margin-left: 0; 248 | } 249 | 250 | .footer-col-wrapper { 251 | font-size: 15px; 252 | color: $grey-color; 253 | margin-left: -$spacing-unit / 2; 254 | @include clearfix(); 255 | } 256 | 257 | .footer-col { 258 | float: left; 259 | margin-bottom: $spacing-unit / 2; 260 | padding-left: $spacing-unit / 2; 261 | } 262 | 263 | .footer-col-1 { 264 | width: -webkit-calc(35% - (#{$spacing-unit} / 2)); 265 | width: calc(35% - (#{$spacing-unit} / 2)); 266 | } 267 | 268 | .footer-col-2 { 269 | width: -webkit-calc(20% - (#{$spacing-unit} / 2)); 270 | width: calc(20% - (#{$spacing-unit} / 2)); 271 | } 272 | 273 | .footer-col-3 { 274 | width: -webkit-calc(45% - (#{$spacing-unit} / 2)); 275 | width: calc(45% - (#{$spacing-unit} / 2)); 276 | } 277 | 278 | @include media-query($on-laptop) { 279 | .footer-col-1, 280 | .footer-col-2 { 281 | width: -webkit-calc(50% - (#{$spacing-unit} / 2)); 282 | width: calc(50% - (#{$spacing-unit} / 2)); 283 | } 284 | 285 | .footer-col-3 { 286 | width: -webkit-calc(100% - (#{$spacing-unit} / 2)); 287 | width: calc(100% - (#{$spacing-unit} / 2)); 288 | } 289 | } 290 | 291 | @include media-query($on-palm) { 292 | .footer-col { 293 | float: none; 294 | width: -webkit-calc(100% - (#{$spacing-unit} / 2)); 295 | width: calc(100% - (#{$spacing-unit} / 2)); 296 | } 297 | } 298 | 299 | /** 300 | * Page content 301 | */ 302 | .page-content { 303 | padding-top: $spacing-unit; 304 | } 305 | 306 | .page-heading { 307 | font-size: 20px; 308 | } 309 | 310 | .post-list { 311 | margin-left: 0; 312 | list-style: none; 313 | 314 | > li { 315 | margin-bottom: $spacing-unit; 316 | } 317 | } 318 | 319 | .post-meta { 320 | font-size: $small-font-size; 321 | color: $grey-color; 322 | } 323 | 324 | .post-link { 325 | display: block; 326 | font-size: 24px; 327 | } 328 | 329 | /** 330 | * Posts 331 | */ 332 | .post-header { 333 | margin-bottom: $spacing-unit; 334 | } 335 | 336 | .post-title { 337 | font-size: 42px; 338 | letter-spacing: -1px; 339 | line-height: 1; 340 | 341 | @include media-query($on-laptop) { 342 | font-size: 36px; 343 | } 344 | } 345 | 346 | .post-content { 347 | margin-bottom: $spacing-unit; 348 | 349 | h2 { 350 | font-size: 32px; 351 | 352 | @include media-query($on-laptop) { 353 | font-size: 28px; 354 | } 355 | } 356 | 357 | h3 { 358 | font-size: 26px; 359 | 360 | @include media-query($on-laptop) { 361 | font-size: 22px; 362 | } 363 | } 364 | 365 | h4 { 366 | font-size: 20px; 367 | 368 | @include media-query($on-laptop) { 369 | font-size: 18px; 370 | } 371 | } 372 | } 373 | } 374 | 375 | @mixin layoutDark { 376 | /** 377 | * Site header 378 | */ 379 | .site-header { 380 | border-bottom: 1px solid #5c6773; 381 | min-height: 56px; 382 | 383 | // Positioning context for the mobile navigation icon 384 | position: relative; 385 | } 386 | 387 | #site-logo { 388 | width: 48px; 389 | height: 48px; 390 | padding: 5px 0; 391 | filter: invert(100%); 392 | } 393 | 394 | .site-title { 395 | font-size: 26px; 396 | line-height: 56px; 397 | letter-spacing: -1px; 398 | margin-bottom: 0; 399 | float: left; 400 | 401 | &, 402 | &:visited { 403 | color: #fff; 404 | } 405 | } 406 | 407 | .site-nav { 408 | float: right; 409 | line-height: 56px; 410 | 411 | .menu-icon { 412 | display: none; 413 | } 414 | 415 | .page-link { 416 | color: $dark-text-color; 417 | line-height: $base-line-height; 418 | 419 | // Gaps between nav items, but not on the first one 420 | &:not(:first-child) { 421 | margin-left: 20px; 422 | } 423 | } 424 | 425 | @include media-query($on-palm) { 426 | position: absolute; 427 | top: 9px; 428 | right: 30px; 429 | background-color: $background-color; 430 | border: 1px solid $grey-color-light; 431 | border-radius: 5px; 432 | text-align: right; 433 | 434 | .menu-icon { 435 | display: block; 436 | float: right; 437 | width: 36px; 438 | height: 26px; 439 | line-height: 0; 440 | padding-top: 10px; 441 | text-align: center; 442 | 443 | > svg { 444 | width: 18px; 445 | height: 15px; 446 | 447 | path { 448 | fill: $grey-color-dark; 449 | } 450 | } 451 | } 452 | 453 | .trigger { 454 | clear: both; 455 | display: none; 456 | } 457 | 458 | &:hover .trigger { 459 | display: block; 460 | padding-bottom: 5px; 461 | } 462 | 463 | .page-link { 464 | display: block; 465 | padding: 5px 10px; 466 | } 467 | } 468 | } 469 | 470 | /** 471 | * Site footer 472 | */ 473 | .site-footer { 474 | // border-top: 1px solid $grey-color-light; 475 | border-top: 1px solid #5c6773; 476 | padding: $spacing-unit 0; 477 | } 478 | 479 | .footer-heading { 480 | font-size: 18px; 481 | margin-bottom: $spacing-unit / 2; 482 | } 483 | 484 | .footer-links { 485 | text-align: center; 486 | font-size: 18px; 487 | margin-bottom: $spacing-unit / 2; 488 | } 489 | 490 | .contact-list, 491 | .social-media-list { 492 | list-style: none; 493 | margin-left: 0; 494 | } 495 | 496 | .footer-col-wrapper { 497 | font-size: 15px; 498 | color: $grey-color; 499 | margin-left: -$spacing-unit / 2; 500 | @include clearfix(); 501 | } 502 | 503 | .footer-col { 504 | float: left; 505 | margin-bottom: $spacing-unit / 2; 506 | padding-left: $spacing-unit / 2; 507 | } 508 | 509 | .footer-col-1 { 510 | width: -webkit-calc(35% - (#{$spacing-unit} / 2)); 511 | width: calc(35% - (#{$spacing-unit} / 2)); 512 | } 513 | 514 | .footer-col-2 { 515 | width: -webkit-calc(20% - (#{$spacing-unit} / 2)); 516 | width: calc(20% - (#{$spacing-unit} / 2)); 517 | } 518 | 519 | .footer-col-3 { 520 | width: -webkit-calc(45% - (#{$spacing-unit} / 2)); 521 | width: calc(45% - (#{$spacing-unit} / 2)); 522 | } 523 | 524 | @include media-query($on-laptop) { 525 | .footer-col-1, 526 | .footer-col-2 { 527 | width: -webkit-calc(50% - (#{$spacing-unit} / 2)); 528 | width: calc(50% - (#{$spacing-unit} / 2)); 529 | } 530 | 531 | .footer-col-3 { 532 | width: -webkit-calc(100% - (#{$spacing-unit} / 2)); 533 | width: calc(100% - (#{$spacing-unit} / 2)); 534 | } 535 | } 536 | 537 | @include media-query($on-palm) { 538 | .footer-col { 539 | float: none; 540 | width: -webkit-calc(100% - (#{$spacing-unit} / 2)); 541 | width: calc(100% - (#{$spacing-unit} / 2)); 542 | } 543 | } 544 | 545 | /** 546 | * Page content 547 | */ 548 | .page-content { 549 | padding-top: $spacing-unit; 550 | } 551 | 552 | .page-heading { 553 | font-size: 20px; 554 | } 555 | 556 | .post-list { 557 | margin-left: 0; 558 | list-style: none; 559 | 560 | > li { 561 | margin-bottom: $spacing-unit; 562 | } 563 | } 564 | 565 | .post-meta { 566 | font-size: $small-font-size; 567 | color: $grey-color; 568 | } 569 | 570 | .post-link { 571 | display: block; 572 | font-size: 24px; 573 | } 574 | 575 | /** 576 | * Posts 577 | */ 578 | .post-header { 579 | margin-bottom: $spacing-unit; 580 | } 581 | 582 | .post-title { 583 | font-size: 42px; 584 | letter-spacing: -1px; 585 | line-height: 1; 586 | 587 | @include media-query($on-laptop) { 588 | font-size: 36px; 589 | } 590 | } 591 | 592 | .post-content { 593 | margin-bottom: $spacing-unit; 594 | 595 | h2 { 596 | font-size: 32px; 597 | 598 | @include media-query($on-laptop) { 599 | font-size: 28px; 600 | } 601 | } 602 | 603 | h3 { 604 | font-size: 26px; 605 | 606 | @include media-query($on-laptop) { 607 | font-size: 22px; 608 | } 609 | } 610 | 611 | h4 { 612 | font-size: 20px; 613 | 614 | @include media-query($on-laptop) { 615 | font-size: 18px; 616 | } 617 | } 618 | } 619 | } 620 | 621 | // Start with default 622 | @include layoutDefault(); 623 | 624 | // Then system dark mode 625 | @media (prefers-color-scheme: dark) { 626 | @include layoutDark(); 627 | } 628 | 629 | // Then toggle override of default/dark 630 | 631 | html.dark { 632 | @include layoutDark(); 633 | } 634 | 635 | html.default { 636 | @include layoutDefault(); 637 | } 638 | -------------------------------------------------------------------------------- /_sass/_syntax-highlighting.scss: -------------------------------------------------------------------------------- 1 | @mixin highlight_default() { 2 | /** 3 | * Syntax highlighting styles 4 | */ 5 | .highlight { 6 | background: #fff; 7 | margin-bottom: $spacing-unit / 2; 8 | 9 | .c { color: #998; font-style: italic } // Comment 10 | /* Disabled due to false positives 11 | .err { color: #a61717; background-color: #e3d2d2 } // Error 12 | */ 13 | .k { font-weight: bold } // Keyword 14 | .o { font-weight: bold } // Operator 15 | .cm { color: #998; font-style: italic } // Comment.Multiline 16 | .cp { color: #999; font-weight: bold } // Comment.Preproc 17 | .c1 { color: #998; font-style: italic } // Comment.Single 18 | .cs { color: #999; font-weight: bold; font-style: italic } // Comment.Special 19 | .gd { color: #000; background-color: #fdd } // Generic.Deleted 20 | .gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific 21 | .ge { font-style: italic } // Generic.Emph 22 | .gr { color: #a00 } // Generic.Error 23 | .gh { color: #999 } // Generic.Heading 24 | .gi { color: #000; background-color: #dfd } // Generic.Inserted 25 | .gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific 26 | .go { color: #888 } // Generic.Output 27 | .gp { color: #555 } // Generic.Prompt 28 | .gs { font-weight: bold } // Generic.Strong 29 | .gu { color: #aaa } // Generic.Subheading 30 | .gt { color: #a00 } // Generic.Traceback 31 | .kc { font-weight: bold } // Keyword.Constant 32 | .kd { font-weight: bold } // Keyword.Declaration 33 | .kp { font-weight: bold } // Keyword.Pseudo 34 | .kr { font-weight: bold } // Keyword.Reserved 35 | .kt { color: #458; font-weight: bold } // Keyword.Type 36 | .m { color: #099 } // Literal.Number 37 | .s { color: #d14 } // Literal.String 38 | .na { color: #008080 } // Name.Attribute 39 | .nb { color: #0086B3 } // Name.Builtin 40 | .nc { color: #458; font-weight: bold } // Name.Class 41 | .no { color: #008080 } // Name.Constant 42 | .ni { color: #800080 } // Name.Entity 43 | .ne { color: #900; font-weight: bold } // Name.Exception 44 | .nf { color: #900; font-weight: bold } // Name.Function 45 | .nn { color: #555 } // Name.Namespace 46 | .nt { color: #000080 } // Name.Tag 47 | .nv { color: #008080 } // Name.Variable 48 | .ow { font-weight: bold } // Operator.Word 49 | .w { color: #bbb } // Text.Whitespace 50 | .mf { color: #099 } // Literal.Number.Float 51 | .mh { color: #099 } // Literal.Number.Hex 52 | .mi { color: #099 } // Literal.Number.Integer 53 | .mo { color: #099 } // Literal.Number.Oct 54 | .sb { color: #d14 } // Literal.String.Backtick 55 | .sc { color: #d14 } // Literal.String.Char 56 | .sd { color: #d14 } // Literal.String.Doc 57 | .s2 { color: #d14 } // Literal.String.Double 58 | .se { color: #d14 } // Literal.String.Escape 59 | .sh { color: #d14 } // Literal.String.Heredoc 60 | .si { color: #d14 } // Literal.String.Interpol 61 | .sx { color: #d14 } // Literal.String.Other 62 | .sr { color: #009926 } // Literal.String.Regex 63 | .s1 { color: #d14 } // Literal.String.Single 64 | .ss { color: #990073 } // Literal.String.Symbol 65 | .bp { color: #999 } // Name.Builtin.Pseudo 66 | .vc { color: #008080 } // Name.Variable.Class 67 | .vg { color: #008080 } // Name.Variable.Global 68 | .vi { color: #008080 } // Name.Variable.Instance 69 | .il { color: #099 } // Literal.Number.Integer.Long 70 | } 71 | } 72 | 73 | @mixin highlight_dark() { 74 | /********************************* 75 | * DARK 76 | **********************************/ 77 | /** 78 | * Syntax highlighting styles 79 | */ 80 | .highlight { 81 | background: #191f26; 82 | margin-bottom: $spacing-unit / 2; 83 | 84 | .c { color: #e6e1cf; font-style: italic } // Comment 85 | /* Disabled due to false positives 86 | .err { color: #a61717; background-color: #e3d2d2 } // Error 87 | */ 88 | .k { color:#ff7733; font-weight: bold } // Keyword 89 | .o { color:#ff7733; font-weight: bold } // Operator 90 | .c { color: #5c6773; font-style: italic } // Comment 91 | .cm { color: #5c6773; font-style: italic } // Comment.Multiline 92 | .cp { color: #5c6773; font-weight: bold } // Comment.Preproc 93 | .c1 { color: #5c6773; font-style: italic } // Comment.Single 94 | .cs { color: #5c6773; font-weight: bold; font-style: italic } // Comment.Special 95 | .gd { color: #000; background-color: #fdd } // Generic.Deleted 96 | .gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific 97 | .ge { font-style: italic } // Generic.Emph 98 | .gr { color: #a00 } // Generic.Error 99 | .gh { color: #999 } // Generic.Heading 100 | .gi { color: #000; background-color: #dfd } // Generic.Inserted 101 | .gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific 102 | .go { color: #888 } // Generic.Output 103 | .gp { color: #555 } // Generic.Prompt 104 | .gs { font-weight: bold } // Generic.Strong 105 | .gu { color: #aaa } // Generic.Subheading 106 | .gt { color: #a00 } // Generic.Traceback 107 | .kc { color:#e6e1cf; font-weight: bold } // Keyword.Constant 108 | .kd { font-weight: bold } // Keyword.Declaration 109 | .kp { font-weight: bold } // Keyword.Pseudo 110 | .kr { font-weight: bold } // Keyword.Reserved 111 | .kt { color: #458; font-weight: bold } // Keyword.Type 112 | .m { color: #b8cc52 } // Literal.Number 113 | .s { color: #b8cc52 } // Literal.String 114 | .na { color: #008080 } // Name.Attribute 115 | .nb { color: #ff7733 } // Name.Builtin 116 | .nc { color: #458; font-weight: bold } // Name.Class 117 | .no { color: #008080 } // Name.Constant 118 | .ni { color: #800080 } // Name.Entity 119 | .ne { color: #900; font-weight: bold } // Name.Exception 120 | .nf { color: #ffb454; font-weight: bold } // Name.Function 121 | .nn { color: #e6e1cf } // Name.Namespace 122 | .nt { color: #ff7733 } // Name.Tag 123 | .nv { color: #ff7733 } // Name.Variable 124 | .ow { font-weight: bold } // Operator.Word 125 | .w { color: #bbb } // Text.Whitespace 126 | .mf { color: #b8cc52 } // Literal.Number.Float 127 | .mh { color: #b8cc52 } // Literal.Number.Hex 128 | .mi { color: #b8cc52 } // Literal.Number.Integer 129 | .mo { color: #b8cc52 } // Literal.Number.Oct 130 | .sb { color: #b8cc52 } // Literal.String.Backtick 131 | .sc { color: #b8cc52 } // Literal.String.Char 132 | .sd { color: #b8cc52 } // Literal.String.Doc 133 | .s2 { color: #b8cc52 } // Literal.String.Double 134 | .se { color: #b8cc52 } // Literal.String.Escape 135 | .sh { color: #b8cc52 } // Literal.String.Heredoc 136 | .si { color: #b8cc52 } // Literal.String.Interpol 137 | .sx { color: #b8cc52 } // Literal.String.Other 138 | .sr { color: #b8cc52 } // Literal.String.Regex 139 | .s1 { color: #b8cc52 } // Literal.String.Single 140 | .ss { color: #b8cc52 } // Literal.String.Symbol 141 | .bp { color: #999 } // Name.Builtin.Pseudo 142 | .vc { color: #008080 } // Name.Variable.Class 143 | .vg { color: #008080 } // Name.Variable.Global 144 | .vi { color: #008080 } // Name.Variable.Instance 145 | .il { color: #b8cc52 } // Literal.Number.Integer.Long 146 | .p { color:#e6e1cf; }// Punctuation 147 | } 148 | } 149 | 150 | // Start with default 151 | @include highlight_default(); 152 | 153 | // Then system dark mode 154 | @media (prefers-color-scheme: dark) { 155 | @include highlight_dark(); 156 | } 157 | 158 | // then toggle override of default/dark 159 | 160 | html.dark { 161 | @include highlight_dark(); 162 | } 163 | 164 | html.default { 165 | @include highlight_default(); 166 | } 167 | -------------------------------------------------------------------------------- /css/center-img.css: -------------------------------------------------------------------------------- 1 | .center { 2 | display: block; 3 | margin-left: auto; 4 | margin-right: auto; 5 | } 6 | 7 | .left-thumbnail { 8 | float: left; 9 | width: 150px; 10 | margin-right: 15px; 11 | margin-bottom: 15px; 12 | clear: left; 13 | } 14 | 15 | .right-thumbnail { 16 | float: right; 17 | width: 150px; 18 | margin-left: 15px; 19 | margin-bottom: 15px; 20 | clear: right; 21 | } 22 | -------------------------------------------------------------------------------- /css/main.scss: -------------------------------------------------------------------------------- 1 | --- 2 | # Only the main Sass file needs front matter (the dashes are enough) 3 | --- 4 | @charset "utf-8"; 5 | 6 | // Our variables 7 | $base-font-family: Helvetica, Arial, sans-serif; 8 | $base-font-size: 16px; 9 | $small-font-size: $base-font-size * 0.875; 10 | $base-line-height: 1.5; 11 | 12 | $spacing-unit: 30px; 13 | 14 | $text-color: #111; 15 | $background-color: #fdfdfd; 16 | $brand-color: #2a7ae2; 17 | 18 | $grey-color: #828282; 19 | $grey-color-light: lighten($grey-color, 40%); 20 | $grey-color-dark: darken($grey-color, 25%); 21 | 22 | $on-palm: 600px; 23 | $on-laptop: 800px; 24 | 25 | $dark-background-color: #0f1419; 26 | $dark-text-color: #c5c5c5; 27 | 28 | // Using media queries with like this: 29 | // @include media-query($palm) { 30 | // .wrapper { 31 | // padding-right: $spacing-unit / 2; 32 | // padding-left: $spacing-unit / 2; 33 | // } 34 | // } 35 | @mixin media-query($device) { 36 | @media screen and (max-width: $device) { 37 | @content; 38 | } 39 | } 40 | 41 | // Import partials from `sass_dir` (defaults to `_sass`) 42 | @import 43 | "base", 44 | "layout", 45 | "syntax-highlighting" 46 | ; 47 | 48 | td, th { 49 | border-bottom: 1px solid #eee; 50 | border-right: 1px solid #eee; 51 | } 52 | 53 | th { 54 | border-top: 1px solid #eee; 55 | } 56 | 57 | td:first-child, th:first-child { 58 | border-left: 1px solid #eee; 59 | } 60 | 61 | hr { 62 | margin: 15px 0; 63 | clear: both; 64 | } 65 | -------------------------------------------------------------------------------- /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-community/rust-lang-blog-boilerplate/b9b03dbb798b7f6f576edd22f6bbb1a1a0ad8734/favicon.ico -------------------------------------------------------------------------------- /feed.xml: -------------------------------------------------------------------------------- 1 | --- 2 | layout: null 3 | --- 4 | 5 | 6 | 7 | {{ site.title | xml_escape }} 8 | {{ site.description | xml_escape }} 9 | {{ site.url }}{{ site.baseurl }}/ 10 | 11 | {{ site.time | date_to_rfc822 }} 12 | {{ site.time | date_to_rfc822 }} 13 | Jekyll v{{ jekyll.version }} 14 | {% for post in site.posts limit:10 %} 15 | 16 | {{ post.title | xml_escape }} 17 | {{ post.content | xml_escape }} 18 | {{ post.date | date_to_rfc822 }} 19 | {{ post.url | prepend: site.baseurl | prepend: site.url }} 20 | {{ post.url | prepend: site.baseurl | prepend: site.url }} 21 | {% for tag in post.tags %} 22 | {{ tag | xml_escape }} 23 | {% endfor %} 24 | {% for cat in post.categories %} 25 | {{ cat | xml_escape }} 26 | {% endfor %} 27 | 28 | {% endfor %} 29 | 30 | 31 | -------------------------------------------------------------------------------- /images/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: default 3 | --- 4 | 5 |
6 | 7 |

Posts

8 | 9 | 20 | 21 |

subscribe via RSS

22 | 23 |
24 | --------------------------------------------------------------------------------