commit a4e69974a6df75ab3f990b9bb70ca40fbd28618c Author: Emelie Graven Date: Mon Nov 15 20:46:47 2021 +0100 Initial commit diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..d32ec9a --- /dev/null +++ b/.drone.yml @@ -0,0 +1,29 @@ +kind: pipeline +name: default + +steps: +- name: submodules + image: alpine/git + commands: + - git submodule update --init --recursive +- name: build + image: egraven/zola:latest + volumes: + - name: output + path: ./public + commands: + - zola build +- name: deploy + image: drillster/drone-rsync + volumes: + - name: output + path: ./public + settings: + hosts: [ "graven.dev" ] + user: deploy + key: + from_secret: ssh_key + port: 22 + target: /var/www/graven.dev/public/aalnix-test + source: ./public + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..62bd1a4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +# ---> Rust +# Generated by Cargo +# will have compiled files and executables +/target/ + +# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries +# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html +Cargo.lock + +# These are backup files generated by rustfmt +**/*.rs.bk + diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..79581ba --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/lightspeed"] + path = themes/lightspeed + url = https://github.com/carpetscheme/lightspeed diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..c108cad --- /dev/null +++ b/LICENSE @@ -0,0 +1,305 @@ +European Union Public Licence v. 1.2 + +EUPL © the European Union 2007, 2016 + +This European Union Public Licence (the 'EUPL') applies to the Work (as defined +below) which is provided under the terms of this Licence. Any use of the Work, +other than as authorised under this Licence is prohibited (to the extent such +use is covered by a right of the copyright holder of the Work). + +The Work is provided under the terms of this Licence when the Licensor (as +defined below) has placed the following notice immediately following the copyright +notice for the Work: + + + + Licensed under the EUPL + + + +or has expressed by any other means his willingness to license under the EUPL. + + 1. Definitions + + In this Licence, the following terms have the following meaning: + + — 'The Licence': this Licence. + +— 'The Original Work': the work or software distributed or communicated by +the Licensor under this Licence, available as Source Code and also as Executable +Code as the case may be. + +— 'Derivative Works': the works or software that could be created by the Licensee, +based upon the Original Work or modifications thereof. This Licence does not +define the extent of modification or dependence on the Original Work required +in order to classify a work as a Derivative Work; this extent is determined +by copyright law applicable in the country mentioned in Article 15. + + — 'The Work': the Original Work or its Derivative Works. + +— 'The Source Code': the human-readable form of the Work which is the most +convenient for people to study and modify. + +— 'The Executable Code': any code which has generally been compiled and which +is meant to be interpreted by a computer as a program. + +— 'The Licensor': the natural or legal person that distributes or communicates +the Work under the Licence. + +— 'Contributor(s)': any natural or legal person who modifies the Work under +the Licence, or otherwise contributes to the creation of a Derivative Work. + +— 'The Licensee' or 'You': any natural or legal person who makes any usage +of the Work under the terms of the Licence. + +— 'Distribution' or 'Communication': any act of selling, giving, lending, +renting, distributing, communicating, transmitting, or otherwise making available, +online or offline, copies of the Work or providing access to its essential +functionalities at the disposal of any other natural or legal person. + + 2. Scope of the rights granted by the Licence + +The Licensor hereby grants You a worldwide, royalty-free, non-exclusive, sublicensable +licence to do the following, for the duration of copyright vested in the Original +Work: + + — use the Work in any circumstance and for all usage, + + — reproduce the Work, + + — modify the Work, and make Derivative Works based upon the Work, + +— communicate to the public, including the right to make available or display +the Work or copies thereof to the public and perform publicly, as the case +may be, the Work, + + — distribute the Work or copies thereof, + + — lend and rent the Work or copies thereof, + + — sublicense rights in the Work or copies thereof. + +Those rights can be exercised on any media, supports and formats, whether +now known or later invented, as far as the applicable law permits so. + +In the countries where moral rights apply, the Licensor waives his right to +exercise his moral right to the extent allowed by law in order to make effective +the licence of the economic rights here above listed. + +The Licensor grants to the Licensee royalty-free, non-exclusive usage rights +to any patents held by the Licensor, to the extent necessary to make use of +the rights granted on the Work under this Licence. + + 3. Communication of the Source Code + +The Licensor may provide the Work either in its Source Code form, or as Executable +Code. If the Work is provided as Executable Code, the Licensor provides in +addition a machine-readable copy of the Source Code of the Work along with +each copy of the Work that the Licensor distributes or indicates, in a notice +following the copyright notice attached to the Work, a repository where the +Source Code is easily and freely accessible for as long as the Licensor continues +to distribute or communicate the Work. + + 4. Limitations on copyright + +Nothing in this Licence is intended to deprive the Licensee of the benefits +from any exception or limitation to the exclusive rights of the rights owners +in the Work, of the exhaustion of those rights or of other applicable limitations +thereto. + + 5. Obligations of the Licensee + +The grant of the rights mentioned above is subject to some restrictions and +obligations imposed on the Licensee. Those obligations are the following: + +Attribution right: The Licensee shall keep intact all copyright, patent or +trademarks notices and all notices that refer to the Licence and to the disclaimer +of warranties. The Licensee must include a copy of such notices and a copy +of the Licence with every copy of the Work he/she distributes or communicates. +The Licensee must cause any Derivative Work to carry prominent notices stating +that the Work has been modified and the date of modification. + +Copyleft clause: If the Licensee distributes or communicates copies of the +Original Works or Derivative Works, this Distribution or Communication will +be done under the terms of this Licence or of a later version of this Licence +unless the Original Work is expressly distributed only under this version +of the Licence — for example by communicating 'EUPL v. 1.2 only'. The Licensee +(becoming Licensor) cannot offer or impose any additional terms or conditions +on the Work or Derivative Work that alter or restrict the terms of the Licence. + +Compatibility clause: If the Licensee Distributes or Communicates Derivative +Works or copies thereof based upon both the Work and another work licensed +under a Compatible Licence, this Distribution or Communication can be done +under the terms of this Compatible Licence. For the sake of this clause, 'Compatible +Licence' refers to the licences listed in the appendix attached to this Licence. +Should the Licensee's obligations under the Compatible Licence conflict with +his/her obligations under this Licence, the obligations of the Compatible +Licence shall prevail. + +Provision of Source Code: When distributing or communicating copies of the +Work, the Licensee will provide a machine-readable copy of the Source Code +or indicate a repository where this Source will be easily and freely available +for as long as the Licensee continues to distribute or communicate the Work. + +Legal Protection: This Licence does not grant permission to use the trade +names, trademarks, service marks, or names of the Licensor, except as required +for reasonable and customary use in describing the origin of the Work and +reproducing the content of the copyright notice. + + 6. Chain of Authorship + +The original Licensor warrants that the copyright in the Original Work granted +hereunder is owned by him/her or licensed to him/her and that he/she has the +power and authority to grant the Licence. + +Each Contributor warrants that the copyright in the modifications he/she brings +to the Work are owned by him/her or licensed to him/her and that he/she has +the power and authority to grant the Licence. + +Each time You accept the Licence, the original Licensor and subsequent Contributors +grant You a licence to their contributions to the Work, under the terms of +this Licence. + + 7. Disclaimer of Warranty + +The Work is a work in progress, which is continuously improved by numerous +Contributors. It is not a finished work and may therefore contain defects +or 'bugs' inherent to this type of development. + +For the above reason, the Work is provided under the Licence on an 'as is' +basis and without warranties of any kind concerning the Work, including without +limitation merchantability, fitness for a particular purpose, absence of defects +or errors, accuracy, non-infringement of intellectual property rights other +than copyright as stated in Article 6 of this Licence. + +This disclaimer of warranty is an essential part of the Licence and a condition +for the grant of any rights to the Work. + + 8. Disclaimer of Liability + +Except in the cases of wilful misconduct or damages directly caused to natural +persons, the Licensor will in no event be liable for any direct or indirect, +material or moral, damages of any kind, arising out of the Licence or of the +use of the Work, including without limitation, damages for loss of goodwill, +work stoppage, computer failure or malfunction, loss of data or any commercial +damage, even if the Licensor has been advised of the possibility of such damage. +However, the Licensor will be liable under statutory product liability laws +as far such laws apply to the Work. + + 9. Additional agreements + +While distributing the Work, You may choose to conclude an additional agreement, +defining obligations or services consistent with this Licence. However, if +accepting obligations, You may act only on your own behalf and on your sole +responsibility, not on behalf of the original Licensor or any other Contributor, +and only if You agree to indemnify, defend, and hold each Contributor harmless +for any liability incurred by, or claims asserted against such Contributor +by the fact You have accepted any warranty or additional liability. + + 10. Acceptance of the Licence + +The provisions of this Licence can be accepted by clicking on an icon 'I agree' +placed under the bottom of a window displaying the text of this Licence or +by affirming consent in any other similar way, in accordance with the rules +of applicable law. Clicking on that icon indicates your clear and irrevocable +acceptance of this Licence and all of its terms and conditions. + +Similarly, you irrevocably accept this Licence and all of its terms and conditions +by exercising any rights granted to You by Article 2 of this Licence, such +as the use of the Work, the creation by You of a Derivative Work or the Distribution +or Communication by You of the Work or copies thereof. + + 11. Information to the public + +In case of any Distribution or Communication of the Work by means of electronic +communication by You (for example, by offering to download the Work from a +remote location) the distribution channel or media (for example, a website) +must at least provide to the public the information requested by the applicable +law regarding the Licensor, the Licence and the way it may be accessible, +concluded, stored and reproduced by the Licensee. + + 12. Termination of the Licence + +The Licence and the rights granted hereunder will terminate automatically +upon any breach by the Licensee of the terms of the Licence. + +Such a termination will not terminate the licences of any person who has received +the Work from the Licensee under the Licence, provided such persons remain +in full compliance with the Licence. + + 13. Miscellaneous + +Without prejudice of Article 9 above, the Licence represents the complete +agreement between the Parties as to the Work. + +If any provision of the Licence is invalid or unenforceable under applicable +law, this will not affect the validity or enforceability of the Licence as +a whole. Such provision will be construed or reformed so as necessary to make +it valid and enforceable. + +The European Commission may publish other linguistic versions or new versions +of this Licence or updated versions of the Appendix, so far this is required +and reasonable, without reducing the scope of the rights granted by the Licence. +New versions of the Licence will be published with a unique version number. + +All linguistic versions of this Licence, approved by the European Commission, +have identical value. Parties can take advantage of the linguistic version +of their choice. + + 14. Jurisdiction + + Without prejudice to specific agreement between parties, + +— any litigation resulting from the interpretation of this License, arising +between the European Union institutions, bodies, offices or agencies, as a +Licensor, and any Licensee, will be subject to the jurisdiction of the Court +of Justice of the European Union, as laid down in article 272 of the Treaty +on the Functioning of the European Union, + +— any litigation arising between other parties and resulting from the interpretation +of this License, will be subject to the exclusive jurisdiction of the competent +court where the Licensor resides or conducts its primary business. + + 15. Applicable Law + + Without prejudice to specific agreement between parties, + +— this Licence shall be governed by the law of the European Union Member State +where the Licensor has his seat, resides or has his registered office, + +— this licence shall be governed by Belgian law if the Licensor has no seat, +residence or registered office inside a European Union Member State. + +Appendix + +'Compatible Licences' according to Article 5 EUPL are: + + — GNU General Public License (GPL) v. 2, v. 3 + + — GNU Affero General Public License (AGPL) v. 3 + + — Open Software License (OSL) v. 2.1, v. 3.0 + + — Eclipse Public License (EPL) v. 1.0 + + — CeCILL v. 2.0, v. 2.1 + + — Mozilla Public Licence (MPL) v. 2 + + — GNU Lesser General Public Licence (LGPL) v. 2.1, v. 3 + +— Creative Commons Attribution-ShareAlike v. 3.0 Unported (CC BY-SA 3.0) for +works other than software + + — European Union Public Licence (EUPL) v. 1.1, v. 1.2 + +— Québec Free and Open-Source Licence — Reciprocity (LiLiQ-R) or Strong Reciprocity +(LiLiQ-R+). + +The European Commission may update this Appendix to later versions of the +above licences without producing a new version of the EUPL, as long as they +provide the rights granted in Article 2 of this Licence and protect the covered +Source Code from exclusive appropriation. + +All other changes or additions to this Appendix require the production of +a new EUPL version. diff --git a/README.md b/README.md new file mode 100644 index 0000000..b960bae --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +# website + +Run `docker-compose up` or `zola serve --base-url localhost` if you have zola installed. + +Built with [Zola](https://getzola.org). + diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..a3db8c8 --- /dev/null +++ b/config.toml @@ -0,0 +1,20 @@ +# The URL the site will be built for +base_url = "https://graven.dev/aalnix-test/public" +title = "Nix Aalborg" +description = "The Nix Aalborg user group" +compile_sass = true +highlight_code = true +highlight_theme = "gruvbox-light" +build_search_index = false + +theme = "lightspeed" + +sort_by = "date" + +[extra] +seo = true +author = "Nix Aalborg" +ogimage = "/logo.png" +zola = true +netlify = false +maintained_with_love = false diff --git a/content/2021-11-15-test-post.md b/content/2021-11-15-test-post.md new file mode 100644 index 0000000..4824cd2 --- /dev/null +++ b/content/2021-11-15-test-post.md @@ -0,0 +1,8 @@ ++++ +title = "A test post!" +description = "A post for testing!" ++++ + +# The post where testing happens + +Did I mention this is a test post? diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..8bc0069 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,3 @@ ++++ +sort_by = "date" ++++ diff --git a/content/pages/_index.md b/content/pages/_index.md new file mode 100644 index 0000000..800a244 --- /dev/null +++ b/content/pages/_index.md @@ -0,0 +1,3 @@ ++++ +render = false ++++ diff --git a/content/pages/about.md b/content/pages/about.md new file mode 100644 index 0000000..6609116 --- /dev/null +++ b/content/pages/about.md @@ -0,0 +1,6 @@ ++++ +title = "About us" +path = "about" ++++ + +Nix nerds in Aalborg. diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..a2c3f00 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,13 @@ +version: "2.4" + +services: + website: + working_dir: /website + image: balthek/zola:0.14.0 + container_name: zola + command: serve --interface 0.0.0.0 --port 8080 --base-url localhost + volumes: + - .:/website + ports: + - "8080:8080" + - "1024:1024" diff --git a/public/404.html b/public/404.html new file mode 100644 index 0000000..b442304 --- /dev/null +++ b/public/404.html @@ -0,0 +1,68 @@ + + + + + + + + 404: Page not found + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

+ Nix Aalborg +
The Nix Aalborg user group +

+
+
+ + + +

404: Page not found

+

Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. Head back home to try finding it again.

+ + + +
+
+ + + Built with Zola.
+ + +
+ +
+ + +
+ + + + + diff --git a/public/about/index.html b/public/about/index.html new file mode 100644 index 0000000..fc4985f --- /dev/null +++ b/public/about/index.html @@ -0,0 +1,74 @@ + + + + + + + + About us · Nix Aalborg + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

+ Nix Aalborg +
The Nix Aalborg user group +

+
+
+ + + +
+

About us

+ + + +

Nix nerds in Aalborg.

+ +
+ + + +
+
+ + + Built with Zola.
+ + +
+ +
+ + +
+ + + + + diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..309a344 Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..b4dc59d --- /dev/null +++ b/public/index.html @@ -0,0 +1,76 @@ + + + + + + + + Nix Aalborg · The Nix Aalborg user group + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

+ Nix Aalborg +
The Nix Aalborg user group +

+
+
+ + + + + + + +
+
+ + + Built with Zola.
+ + +
+ +
+ + +
+ + + + + diff --git a/public/lightning.png b/public/lightning.png new file mode 100644 index 0000000..e303139 Binary files /dev/null and b/public/lightning.png differ diff --git a/public/logo.png b/public/logo.png new file mode 100644 index 0000000..966899d Binary files /dev/null and b/public/logo.png differ diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..48c5f66 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,3 @@ +User-agent: * +Allow: / +Sitemap: https://aalnix.dk/sitemap.xml diff --git a/public/sitemap.xml b/public/sitemap.xml new file mode 100644 index 0000000..d7b9583 --- /dev/null +++ b/public/sitemap.xml @@ -0,0 +1,13 @@ + + + + https://aalnix.dk/ + + + https://aalnix.dk/about/ + + + https://aalnix.dk/test-post/ + 2021-11-15 + + diff --git a/public/style.css b/public/style.css new file mode 100644 index 0000000..b13bd62 --- /dev/null +++ b/public/style.css @@ -0,0 +1 @@ +html,body{background:#fffaf7;color:#2d2d2d;font:16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}a,a:visited{color:darkred;text-decoration:none}a:hover{text-decoration:underline}main{margin:auto;max-width:38rem;padding:0.8rem}pre{background:white;overflow:scroll;padding:1rem}td{border:1px solid #2d2d2d;padding:10px}img{height:auto;max-width:100%}.homepage-list{list-style:none;padding:1rem 0}.homepage-list li{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-bottom:10px}@media (max-width: 38rem){.homepage-list li a{width:100%}} diff --git a/public/test-post/index.html b/public/test-post/index.html new file mode 100644 index 0000000..1cecf89 --- /dev/null +++ b/public/test-post/index.html @@ -0,0 +1,78 @@ + + + + + + + + A test post! · Nix Aalborg + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

+ Nix Aalborg +
The Nix Aalborg user group +

+
+
+ + + +
+

A test post!

+ + +

Posted on

+ + +

The post where testing happens

+

Did I mention this is a test post?

+ +
+ + + +
+
+ + + Built with Zola.
+ + +
+ +
+ + +
+ + + + + diff --git a/static/logo.png b/static/logo.png new file mode 100644 index 0000000..966899d Binary files /dev/null and b/static/logo.png differ diff --git a/themes/lightspeed/.gitignore b/themes/lightspeed/.gitignore new file mode 100755 index 0000000..42d7438 --- /dev/null +++ b/themes/lightspeed/.gitignore @@ -0,0 +1,2 @@ +public + diff --git a/themes/lightspeed/LICENSE.md b/themes/lightspeed/LICENSE.md new file mode 100755 index 0000000..e05f2d5 --- /dev/null +++ b/themes/lightspeed/LICENSE.md @@ -0,0 +1,9 @@ +# Released under MIT License + +Copyright (c) 2019 Bradley Taunt. + +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. \ No newline at end of file diff --git a/themes/lightspeed/README.md b/themes/lightspeed/README.md new file mode 100644 index 0000000..53f459d --- /dev/null +++ b/themes/lightspeed/README.md @@ -0,0 +1,127 @@ +# Light Speed + +An insanely fast and performance-based Zola theme, ported from [Light Speed Jekyll](https://github.com/bradleytaunt/lightspeed). + +Some fun facts about the theme: + +* Perfect score on Google's Lighthouse audit +* Only ~700 bytes of CSS +* No JavaScript +* Now with SEO! + +Demo: [quirky-perlman-34d0da.netlify.com](https://quirky-perlman-34d0da.netlify.com) + +----- + +## Contents + +- [Installation](#installation) +- [Options](#options) + - [Title](#title) + - [Footer menu](#footer-menu) + - [SEO](#seo) + - [Footer text](#footer-text) + - [Sass](#Sass) +- [Original](#original) +- [License](#license) + +## Installation +First download this theme to your `themes` directory: + +```bash +$ cd themes +$ git clone https://github.com/carpetscheme/lightspeed.git +``` +and then enable it in your `config.toml`: + +```toml +theme = "lightspeed" +``` + +Posts should be placed directly in the `content` folder. + +To sort the post index by date, enable sort in your index section `content/_index.md`: + +```toml +sort_by = "date" +``` + +## Options + +### Title +Set a title and description in the config to appear in the site header: + +```toml +title = "Different strokes" +description = "for different folks" + +``` + +### Footer-menu +Set a field in `extra` with a key of `footer_links`: + +```toml +[extra] + +footer_links = [ + {url = "$BASE_URL/about", name = "About"}, + {url = "$BASE_URL/atom.xml", name = "RSS"}, + {url = "https://google.com", name = "Google"}, +] +``` + +If you put `$BASE_URL` in a url, it will automatically be replaced by the actual +site URL. + +Create pages such as `$BASE_URL/about` by placing them in a subfolder of the content directory, and specifying the path in the frontmatter: + +```toml +path = "about" +``` + +### SEO + +Most SEO tags are populated by the page metadata, but you can set the `author` and for the `og:image` tag provide the path to an image: + +```toml +[extra] + +author = "Grant Green" +ogimage = "Greenery.png" +``` + +### Footer-text + +By default the footer provides links to Zola and Netlify, and a tagline of "Maintained with :heart: for the web". +To disable any of those parts, and/or add a custom tagline of your own, the following options are available: + +```toml +[extra] + +zola = true +netlify = false +maintained_with_love = false +footer_tagline = "What if everything is an illusion and nothing exists? In that case, I definitely overpaid for my carpet." +``` + +### Sass + +Styles are compiled from sass and imported inline to the header :zap: + +You can overide the styles by enabling sass compilation in the config: + +```toml +compile_sass = true +``` + +...and placing a replacement `style.scss` file in your sass folder. + +## Original +This template is based on the Jekyll template [Light Speed Jekyll](https://github.com/bradleytaunt/lightspeed) by Bradley Taunt. + +## License + +Open sourced under the [MIT license](LICENSE.md). + +This project is open source except for example articles found in `content`. + diff --git a/themes/lightspeed/config.toml b/themes/lightspeed/config.toml new file mode 100644 index 0000000..9439b18 --- /dev/null +++ b/themes/lightspeed/config.toml @@ -0,0 +1,26 @@ +base_url = "https://quirky-perlman-34d0da.netlify.com" +title = "Light Speed" +description = "Zola theme with a perfect Lighthouse score" + +compile_sass = true +generate_feed = true + +highlight_code = true +highlight_theme = "gruvbox-light" + +[extra] + +seo = true +author = "El Carpet" +ogimage = "lightning.png" + +zola = true +netlify = true +maintained_with_love = true + +footer_links = [ + {url = "$BASE_URL/about", name = "About"}, + {url = "$BASE_URL/atom.xml", name = "RSS"}, + {url = "https://github.com/carpetscheme/lightspeed", name = "Source on Github"}, +] + diff --git a/themes/lightspeed/content/2019-02-18-hello-world.md b/themes/lightspeed/content/2019-02-18-hello-world.md new file mode 100644 index 0000000..4053f2c --- /dev/null +++ b/themes/lightspeed/content/2019-02-18-hello-world.md @@ -0,0 +1,12 @@ ++++ +title = "Hello World!" +description = "Post about hello world" ++++ + +Hello World! + +This is just a sample post. + +Vestibulum imperdiet adipiscing arcu, quis aliquam dolor condimentum dapibus. Aliquam fermentum leo aliquet quam volutpat et molestie mauris mattis. Suspendisse semper consequat velit in suscipit. Praesent blandit, mi id facilisis adipiscing, tortor tellus mollis quam, sed dignissim sapien diam ac lectus. Nunc eget ornare quam. Vivamus sit amet tortor dolor, non egestas ligula. Mauris nisi risus, semper nec blandit id, suscipit eget dolor. Sed placerat odio at erat porttitor varius. Phasellus ornare vestibulum dolor ac rhoncus. Mauris laoreet varius est eu rhoncus. Curabitur facilisis mauris eu purus pharetra vitae tincidunt nulla gravida. Duis sagittis, felis a luctus mattis, metus sem tempus velit, sit amet blandit tellus nisi id augue. + +Proin feugiat libero ac lorem mollis fermentum. Cras et lacus sodales nisl facilisis ornare. Sed dolor eros, pulvinar ac varius non, bibendum eget odio. Nulla facilisi. Pellentesque et nisi a tellus ullamcorper faucibus. Nullam sagittis tempor mi non mattis. Proin ultricies, enim sit amet bibendum tristique, ligula ante feugiat nunc, sit amet imperdiet tortor nisl et felis. Pellentesque et nisl dui, non dictum libero. Vivamus tempor ante ac leo suscipit a sodales ligula iaculis. Curabitur massa mi, semper sed bibendum eget, auctor in nulla. Quisque at mi in ligula viverra suscipit sed vitae leo. diff --git a/themes/lightspeed/content/2019-03-25-code-snippets.md b/themes/lightspeed/content/2019-03-25-code-snippets.md new file mode 100644 index 0000000..bdec958 --- /dev/null +++ b/themes/lightspeed/content/2019-03-25-code-snippets.md @@ -0,0 +1,36 @@ ++++ +title = "Code Snippets" +description = "Post about code snippets" ++++ + +Code blocks.. with automatic syntax highlighting! + +``` scala +def add(x: Int, y: Int): Int = x + y +println(add(1, 2)) // 3 +``` + +See [the docs](https://www.getzola.org/documentation/content/syntax-highlighting/) for options. + +### Shortcodes + +Zola defines a few default shortcodes, including to embed a [Github gist](https://gist.github.com). + +The arguments are: + +- `url`: the url to the gist (mandatory) +- `file`: by default, the shortcode will pull every file from the URL unless a specific filename is requested +- `class`: a class to add to the `
` surrounding the iframe + +Usage example: + +```md +{{/* gist(url="https://gist.github.com/Keats/e5fb6aad409f28721c0ba14161644c57") */}} + +{{/* gist(url="https://gist.github.com/Keats/e5fb6aad409f28721c0ba14161644c57", class="gist") */}} +``` + +Result example: + +{{ gist(url="https://gist.github.com/Keats/e5fb6aad409f28721c0ba14161644c57") }} + diff --git a/themes/lightspeed/content/2019-03-29-example-of-all-elements.md b/themes/lightspeed/content/2019-03-29-example-of-all-elements.md new file mode 100644 index 0000000..8627b3a --- /dev/null +++ b/themes/lightspeed/content/2019-03-29-example-of-all-elements.md @@ -0,0 +1,151 @@ ++++ +title = "Example of elements" +description = "Post showcasing elements" +[extra] +image = "favicon.ico" ++++ + +# h1 Heading +## h2 Heading +### h3 Heading +#### h4 Heading +##### h5 Heading +###### h6 Heading + + +## Horizontal Rules + +___ + +--- + +*** + + +## Emphasis + +**This is bold text** + +__This is bold text__ + +*This is italic text* + +_This is italic text_ + +~~Strikethrough~~ + + +## Blockquotes + + +> Blockquotes can also be nested... +>> ...by using additional greater-than signs right next to each other... +> > > ...or with spaces between arrows. + + +## Lists + +Unordered + ++ Create a list by starting a line with `+`, `-`, or `*` ++ Sub-lists are made by indenting 2 spaces: + + Facilisis in pretium nisl aliquet + - Nulla volutpat aliquam velit ++ Very easy! + +Ordered + +1. Lorem ipsum dolor sit amet +2. Consectetur adipiscing elit +3. Integer molestie lorem at massa + + +1. You can use sequential numbers... +1. ...or keep all the numbers as `1.` + +Start numbering with offset: + +57. foo +1. bar + + +## Code + +Inline `code` + +Indented code + + // Some comments + line 1 of code + line 2 of code + line 3 of code + + +Block code "fences" + +``` +Sample text here... +``` + +Syntax highlighting + +``` js +var foo = function (bar) { + return bar++; +}; + +console.log(foo(5)); +``` + +## Tables + +| Option | Description | +| ------ | ----------- | +| data | path to data files to supply the data that will be passed into templates. | +| engine | engine to be used for processing templates. Handlebars is the default. | +| ext | extension to be used for dest files. | + +Right aligned columns + +| Option | Description | +| ------:| -----------:| +| data | path to data files to supply the data that will be passed into templates. | +| engine | engine to be used for processing templates. Handlebars is the default. | +| ext | extension to be used for dest files. | + + +## Links + +[link text](http://github.com) + +[link with title](http://github.com "title text!") + + +## Images + +!["Still Life with Peaches and Grapes" by Auguste Renoir](https://images.metmuseum.org/CRDImages/ep/original/DT1876.jpg) +![Mille-fleurs tapestry with three medallions](https://images.metmuseum.org/CRDImages/es/original/DP360507.jpg "Mille-fleurs tapestry with three medallions") + +Like links, Images also have a footnote style syntax + +![The Unicorn is Attacked (from the Unicorn Tapestries][id] + +With a reference later in the document defining the URL location: + +[id]: https://images.metmuseum.org/CRDImages/cl/original/DP101128.jpg "The Unicorn is Attacked" + + +### [Footnotes](https://github.com/markdown-it/markdown-it-footnote) + +Footnote 1 link[^first]. + +Footnote 2 link[^second]. + +Duplicated footnote reference[^second]. + +[^first]: Footnote **can have markup** + +and multiple paragraphs. + +[^second]: Footnote text. + diff --git a/themes/lightspeed/content/_index.md b/themes/lightspeed/content/_index.md new file mode 100644 index 0000000..8bc0069 --- /dev/null +++ b/themes/lightspeed/content/_index.md @@ -0,0 +1,3 @@ ++++ +sort_by = "date" ++++ diff --git a/themes/lightspeed/content/pages/_index.md b/themes/lightspeed/content/pages/_index.md new file mode 100644 index 0000000..800a244 --- /dev/null +++ b/themes/lightspeed/content/pages/_index.md @@ -0,0 +1,3 @@ ++++ +render = false ++++ diff --git a/themes/lightspeed/content/pages/about.md b/themes/lightspeed/content/pages/about.md new file mode 100755 index 0000000..0bab0b7 --- /dev/null +++ b/themes/lightspeed/content/pages/about.md @@ -0,0 +1,16 @@ ++++ +title = "About This Theme" +path = "about" ++++ + +An insanely fast and performance-based Zola theme, ported from [Light Speed Jekyll](https://github.com/bradleytaunt/lightspeed). + +Some fun facts about the theme: + +* Perfect score on Google's Lighthouse audit +* Only ~700 bytes of CSS +* No JavaScript +* Now with SEO! + +For more information check out the [ReadMe on Github](https://github.com/carpetscheme/lightspeed). + diff --git a/themes/lightspeed/netlify.toml b/themes/lightspeed/netlify.toml new file mode 100644 index 0000000..aa41724 --- /dev/null +++ b/themes/lightspeed/netlify.toml @@ -0,0 +1,7 @@ +[build] +publish = "public" +command = "zola build" + +[build.environment] +ZOLA_VERSION = "0.11.0" + diff --git a/themes/lightspeed/sass/style.scss b/themes/lightspeed/sass/style.scss new file mode 100644 index 0000000..67a9e42 --- /dev/null +++ b/themes/lightspeed/sass/style.scss @@ -0,0 +1,50 @@ +html, +body { + background: #fffaf7; + color: #2d2d2d; + font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, + Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", + "Segoe UI Symbol"; +} +a, +a:visited { + color: darkred; + text-decoration: none; +} +a:hover { + text-decoration: underline; +} +main { + margin: auto; + max-width: 38rem; + padding: 0.8rem; +} +pre { + background: white; + overflow: scroll; + padding: 1rem; +} +td { + border: 1px solid #2d2d2d; + padding: 10px; +} +img { + height: auto; + max-width: 100%; +} +.homepage-list { + list-style: none; + padding: 1rem 0; +} +.homepage-list li { + align-items: center; + display: flex; + flex-wrap: wrap; + justify-content: space-between; + margin-bottom: 10px; +} +@media (max-width: 38rem) { + .homepage-list li a { + width: 100%; + } +} diff --git a/themes/lightspeed/screenshot.png b/themes/lightspeed/screenshot.png new file mode 100644 index 0000000..6070f1e Binary files /dev/null and b/themes/lightspeed/screenshot.png differ diff --git a/themes/lightspeed/static/favicon.ico b/themes/lightspeed/static/favicon.ico new file mode 100644 index 0000000..309a344 Binary files /dev/null and b/themes/lightspeed/static/favicon.ico differ diff --git a/themes/lightspeed/static/lightning.png b/themes/lightspeed/static/lightning.png new file mode 100644 index 0000000..e303139 Binary files /dev/null and b/themes/lightspeed/static/lightning.png differ diff --git a/themes/lightspeed/templates/404.html b/themes/lightspeed/templates/404.html new file mode 100755 index 0000000..ac398d8 --- /dev/null +++ b/themes/lightspeed/templates/404.html @@ -0,0 +1,7 @@ +{% extends "index.html" %} +{% block title %}404: Page not found{%endblock title %} + +{% block content %} +

404: Page not found

+

Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. Head back home to try finding it again.

+{% endblock content %} diff --git a/themes/lightspeed/templates/index.html b/themes/lightspeed/templates/index.html new file mode 100755 index 0000000..44051f2 --- /dev/null +++ b/themes/lightspeed/templates/index.html @@ -0,0 +1,98 @@ +{% import "macros.html" as macros %} + + + + {% block head %} + + + + + {% block title %}{{ config.title }} · {{ config.description }}{% endblock title %} + + + + + {% set data = load_data(path="public/style.css", format="plain") -%} + + + {% block seo -%} + + {% if config.extra.author -%} + + {%- endif %} + + + + + + {% if page.date -%} + + + {%- endif %} + + {% if page.earlier -%} + + {%- endif %} + {% if page.later -%} + + {%- endif %} + {%- endblock seo -%} + + {% block extra_head %} + {% endblock extra_head %} + + + {% endblock head %} + + +
+ + {% block header %} +
+

+ {{ config.title }} +
{{ config.description }} +

+
+
+ {% endblock header %} + + {% block content %} +
    + {% for post in section.pages %} + {{ macros::post_in_list(post=post) }} + {% endfor %} +
+ {% endblock content %} + + {% block footer %} +
+
+ {% if config.extra.footer_links %} + + {% endif %} + {% block taglines %} + + {%- if config.extra.zola or config.extra.zola is undefined -%}Built with Zola{%- endif -%} + {%- if config.extra.netlify %} & hosted on Netlify{%- endif -%} + {%- if config.extra.zola or config.extra.zola is undefined -%}.
{%- endif %} + {% if config.extra.maintained_with_love or config.extra.maintained_with_love is undefined%}Maintained with ♥ for the web.
{% endif %} + {% if config.extra.footer_tagline %}{{ config.extra.footer_tagline }}{% endif %} +
+ {% endblock taglines %} +
+ {% endblock footer %} + +
+ {% block after_main %} + {% endblock after_main %} + + + diff --git a/themes/lightspeed/templates/macros.html b/themes/lightspeed/templates/macros.html new file mode 100644 index 0000000..fc3230a --- /dev/null +++ b/themes/lightspeed/templates/macros.html @@ -0,0 +1,7 @@ +{% macro post_in_list(post) %} +
  • + {{ post.title }} + +
  • +{% endmacro post_in_list %} + diff --git a/themes/lightspeed/templates/page.html b/themes/lightspeed/templates/page.html new file mode 100755 index 0000000..5e18dea --- /dev/null +++ b/themes/lightspeed/templates/page.html @@ -0,0 +1,26 @@ +{% extends "index.html" %} + +{% block title %}{{ page.title }} · {{ config.title }}{% endblock title %} +{% block description %}{{ page.description | default(value=config.description) }}{% endblock description %} + +{% block ogtitle %}{{ page.title }}{% endblock ogtitle %} +{% block ogdesc %}{{ page.description }}{% endblock ogdesc %} +{% block ogurl %}{{ page.permalink | safe }}{% endblock ogurl%} +{% block ogimage -%} + {%- if page.extra.image -%}{{ get_url(path=page.extra.image) | safe }} + {%- elif config.extra.ogimage -%}{{ get_url(path=config.extra.ogimage) | safe }} + {%- endif -%} +{%- endblock ogimage %} + + +{% block content %} +
    +

    {{ page.title }}

    + + {% if page.date %} +

    Posted on

    + {% endif %} + + {{ page.content | safe }} +
    +{% endblock content %} diff --git a/themes/lightspeed/theme.toml b/themes/lightspeed/theme.toml new file mode 100644 index 0000000..2cbbf85 --- /dev/null +++ b/themes/lightspeed/theme.toml @@ -0,0 +1,16 @@ +name = "lightspeed" +description = "Zola theme with a perfect Lighthouse score" +license = "MIT" +homepage = "https://github.com/carpetscheme/lightspeed" +min_version = "0.10.0" +demo = "https://quirky-perlman-34d0da.netlify.com/" + +[author] +name = "El Carpet" +homepage = "https://github.com/carpetscheme" + +[original] +author = "Bradley Taunt" +homepage = "https://github.com/bradleytaunt" +repo = "https://github.com/bradleytaunt/lightspeed" +