commit 2498b5e59cb6215ed8dbcb069ab9af60f3a7d491 Author: Rebecca Turner Date: Tue Mar 12 16:52:10 2024 -0700 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c75eecc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/public diff --git a/README.md b/README.md new file mode 100644 index 0000000..4f411e1 --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# [lix.systems] + +Built with [Zola][zola]. + +```sh +zola serve +zola build +zola check +``` + +[zola]: https://www.getzola.org/ +[lix.systems]: https://lix.systems/ diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..d935ad3 --- /dev/null +++ b/config.toml @@ -0,0 +1,21 @@ +# The URL the site will be built for +base_url = "https://lix.systems" + +# The site title and description; used in feeds by default. +title = "Lix" +description = "A fresh take on Nix focused on stability and UX" + +# Whether to build a search index to be used later on by a JavaScript library +build_search_index = false + +# Generate atom/rss feeds. +generate_feed = true + +[markdown] +# Whether to do syntax highlighting +# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola +highlight_code = false + +# Whether smart punctuation is enabled (changing quotes, dashes, dots in their typographic form) +# For example, `...` into `…`, `"quote"` into `“curly”` etc +smart_punctuation = true diff --git a/content/404.md b/content/404.md new file mode 100644 index 0000000..8206cf2 --- /dev/null +++ b/content/404.md @@ -0,0 +1,10 @@ +--- +title: '404' +description: '404: file not found' +extra: + hidden: true +--- + +# 404: File not found + +Sorry! If you expected to see something here, [drop me a line](/contact)! diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..ac027f6 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,6 @@ +--- +permalink: / +layout: main +--- + +Lix is a fresh take on Nix focused on stability and user experience. diff --git a/content/about.md b/content/about.md new file mode 100644 index 0000000..00bfd37 --- /dev/null +++ b/content/about.md @@ -0,0 +1,10 @@ +--- +title: about +extra: + # Visible in the top-bar + hidden: true +--- + +# about + +# why Lix? diff --git a/content/contribute.md b/content/contribute.md new file mode 100644 index 0000000..6f87cfb --- /dev/null +++ b/content/contribute.md @@ -0,0 +1,14 @@ +--- +title: contribute +extra: + # Visible in the top-bar + hidden: true +--- + +# contribute to Lix + +## filing bugs + +## making changes + +## code review diff --git a/content/doc.md b/content/doc.md new file mode 100644 index 0000000..353e9e4 --- /dev/null +++ b/content/doc.md @@ -0,0 +1,8 @@ +--- +title: documentation +extra: + # Visible in the top-bar + hidden: true +--- + +# documentation diff --git a/content/install.md b/content/install.md new file mode 100644 index 0000000..d095ab5 --- /dev/null +++ b/content/install.md @@ -0,0 +1,8 @@ +--- +title: install Lix +extra: + # Visible in the top-bar + hidden: true +--- + +# install Lix diff --git a/content/switch.md b/content/switch.md new file mode 100644 index 0000000..f280e7f --- /dev/null +++ b/content/switch.md @@ -0,0 +1,11 @@ +--- +title: switch from Nix +extra: + # Visible in the top-bar + hidden: true +--- + +# switch from Nix + +Already use and love Nix? We do too! Here's how to try out or switch to Lix +from an existing Nix install. diff --git a/content/test.md b/content/test.md new file mode 100644 index 0000000..3dd418b --- /dev/null +++ b/content/test.md @@ -0,0 +1,88 @@ +--- +title: markup test page +description: a page to demonstrate markup and take advantage of all the features of + markdown +toc: true +extra: + hidden: true +--- + +# markup test page + +i don't ever actually use six titles. but here's a test page so i can figure out +what theyd look like if i did. nothing differentiates titles 3--6. solution: +don't use them. + +text from [lipsum.com] + + + +# 1: title + +*Lorem* **ipsum** ***dolor*** *`sit`* **`amet,`** ***`consectetur`*** +[adipiscing](#) [`elit`](#). Maecenas dignissim elementum ipsum sit amet +pellentesque. Vestibulum vel cursus urna. Aenean sollicitudin, leo gravida +tempus luctus, mi dolor ornare nulla, at placerat tortor ex vitae urna. ❤ +100/200 + +## 2: subtitle + +Maecenas dignissim elementum ipsum sit amet pellentesque. + +1. A list +2. A list +3. A list + ``` + xyz + code + here + ``` + +4. Another item + 1. A sub-item + 2. A sub-item + 1. A sub-sub item +5. A final item + +### 3: subsubtitle + +Vestibulum vel cursus urna. + +* An unordered list +* an unordered list +* Aenean sollicitudin, leo gravida tempus luctus, mi dolor ornare nulla, at + placerat tortor ex vitae urna. + +#### 4: ??? title + +Aenean sollicitudin, leo gravida tempus luctus, mi dolor ornare nulla, at +placerat tortor ex vitae urna. + +> A blockquote. Lorem Ipsum is simply dummy text of the printing and typesetting +> industry. Lorem Ipsum has been the industry's standard dummy text ever since +> the 1500s, when an unknown printer took a galley of type and scrambled it to +> make a type specimen book. It has survived not only five centuries, but also +> the leap into electronic typesetting, remaining essentially unchanged. It was +> popularised in the 1960s with the release of Letraset sheets containing Lorem +> Ipsum passages, and more recently with desktop publishing software like Aldus +> PageMaker including versions of Lorem Ipsum. +> +>> A nested blockquote. Contrary to popular belief, Lorem Ipsum is not simply +>> random text. It has roots in a piece of classical Latin literature from 45 +>> BC, making it over 2000 years old. + +* This list has paragraph tags + +* This list has paragraph tags within the `
  • ` tags. + +* Aawuefoufeououuu + +##### 5: title + +Filler + +###### 6: paragraph + +Filler + +[lipsum.com]: https://www.lipsum.com/ diff --git a/static/android-chrome-192x192.png b/static/android-chrome-192x192.png new file mode 100644 index 0000000..995aa44 Binary files /dev/null and b/static/android-chrome-192x192.png differ diff --git a/static/android-chrome-512x512.png b/static/android-chrome-512x512.png new file mode 100644 index 0000000..7fa6895 Binary files /dev/null and b/static/android-chrome-512x512.png differ diff --git a/static/apple-touch-icon.png b/static/apple-touch-icon.png new file mode 100644 index 0000000..e2e7c27 Binary files /dev/null and b/static/apple-touch-icon.png differ diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..4599ba7 Binary files /dev/null and b/static/favicon.ico differ diff --git a/static/favicon.svg b/static/favicon.svg new file mode 100644 index 0000000..825c82a --- /dev/null +++ b/static/favicon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/manifest.json b/static/manifest.json new file mode 100644 index 0000000..7b8fb87 --- /dev/null +++ b/static/manifest.json @@ -0,0 +1,21 @@ +{ + "lang": "en-US", + "display": "standalone", + "name": "Lix", + "short_name": "Lix", + "description": "A fresh take on Nix focused on stability and UX", + "theme_color": "#D362A4", + "background_color": "#170A0D", + "icons": [ + { + "src": "/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ] +} diff --git a/static/styles/main.css b/static/styles/main.css new file mode 100644 index 0000000..e9269c5 --- /dev/null +++ b/static/styles/main.css @@ -0,0 +1,146 @@ +body { + --background-color: #fff; + --text-color: #000; + --light-text-color: #D52D00; + --highlight-color: #A30262; + --body-width: 800px; + + font: 16px/20px "Segoe UI", "-apple-system", sans-serif; + background-color: var(--background-color); + color: var(--text-color); + display: flex; + flex-direction: column; +} + +@media (prefers-color-scheme: dark) { + body { + --background-color: #170a0d; + --text-color: #fff; + --light-text-color: #FF9A56; + --highlight-color: #d362a4; + } +} + +h1, +h2, +h3 { + font-size: 1rem; + font-weight: 300; + margin: 1em 0 0.5em 0; +} + +.headerlink { + text-decoration: none; + color: var(--light-text-color); + display: none; +} + +.headerlink::before { + content: '#'; +} + +.headerlink:hover { + text-decoration: underline; +} + +:hover>.headerlink { + display: inline-block; + min-width: 1em; + margin-left: -1em; +} + +h1 { + font-size: 2rem; + font-weight: 500; +} + +h1:first-child { + margin-top: 0.5em; +} + +h2 { + font-size: 1.5rem; + font-weight: 400; +} + +h3 { + font-weight: initial; +} + +a { + color: var(--highlight-color); +} + +main, +header { + margin: auto; + max-width: var(--body-width); + text-align: left; +} + +main { + padding-bottom: 5em; +} + +img { + max-width: 100%; +} + +hr { + max-width: 5em; + border: none; + border-bottom: 5px dotted var(--highlight-color); + margin: 3em auto; + height: 0; +} + +nav ul { + display: flex; + flex-wrap: wrap; + list-style: none; + margin: 0; + padding: 0; +} + +nav li { + margin-right: 1em; +} + +nav li:not(:first-child)::before { + content: "•"; + margin-right: 1em; +} + +.description { + font-style: italic; +} + +.date { + color: var(--light-text-color); +} + +aside { + float: right; + margin-left: 1rem; + max-width: calc(var(--body-width) * 0.33); +} + +/* Code line numbers. */ +.gutter>pre>.line { + color: var(--light-text-color); + margin-right: 0.5em; +} + +pre { + white-space: pre-wrap; +} + +@media (max-width: 550px) { + + /* Chosen because it looks good :) */ + aside { + float: none; + margin-left: 0; + max-width: 100%; + } +} diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..94d9808 --- /dev/null +++ b/templates/404.html @@ -0,0 +1 @@ +{% extends "base.html" %} diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..32fe880 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,85 @@ +{%- if section -%} +{#- Zola's `section` and `page` variables share many fields, so we set `page` +to whichever one is present and access common fields through that variable to +simplify templating. -#} +{%- set page = section -%} +{%- endif -%} +{%- if not page -%} +{#- Hack: Zola's 404.html doesn't get rendered with `page` or `section` set to +anything. -#} +{%- set page = get_page(path="404.md") -%} +{%- endif -%} + + + + +{% if page.title %}{{ page.title }} @ {% endif %}{{ config.title }} + + + + + + + + + + + + + +
    +
    + + +
    +
    + {{ page.content|safe }} + {% block post_content %}{% endblock -%} + {%- if section.subsections or section.pages -%} + {% block ls_title -%} + {#-

    further reading

    -#} + {%- endblock %} +
      + {%- endif %} + {% block ls -%} + {%- if section.subsections -%} + {% for subsection_path in section.subsections %} + {%- set subsection = get_section(path=subsection_path, metadata_only=true) %} +
    • {{ subsection.title }} + {%- if subsection.description -%} + : {{ subsection.description }} + {%- endif -%} + {%- if subsection.date -%} + : {{ subsection.date }} + {%- endif -%} +
    • + {% endfor %} + {%- endif %} + {%- if section.pages -%} + {% for subsection in section.pages %} + {% if subsection.extra.hidden %}{% continue %}{% endif -%} +
    • {{ subsection.title }} + {%- if subsection.description -%} + : {{ subsection.description }} + {%- endif -%} + {%- if subsection.date %} + ({{ subsection.date }}) + {%- endif -%} +
    • + {% endfor %} + {%- endif %} + {%- if section.subsections or section.pages -%} +
    + {%- endif %} + {%- endblock %} +
    +
    diff --git a/templates/blog.html b/templates/blog.html new file mode 100644 index 0000000..289d123 --- /dev/null +++ b/templates/blog.html @@ -0,0 +1,4 @@ +{% extends "base.html" %} +{% block ls_title %} +

    posts

    +{%- endblock %} diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..94d9808 --- /dev/null +++ b/templates/index.html @@ -0,0 +1 @@ +{% extends "base.html" %} diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..94d9808 --- /dev/null +++ b/templates/page.html @@ -0,0 +1 @@ +{% extends "base.html" %} diff --git a/templates/section.html b/templates/section.html new file mode 100644 index 0000000..94d9808 --- /dev/null +++ b/templates/section.html @@ -0,0 +1 @@ +{% extends "base.html" %}