From 1da4a393a41a96f92f776d7d22a279975a360b92 Mon Sep 17 00:00:00 2001 From: zaaarf Date: Fri, 22 Dec 2023 00:42:32 +0100 Subject: [PATCH] feat: proper main page --- LICENSE | 4 + README.md | 129 --------------------- config.toml | 69 ++++++++++-- sass/logo.scss | 44 ++++++++ screenshot.png | Bin 60381 -> 0 bytes templates/header.html | 19 ++-- templates/index.html | 34 ++---- templates/logo.html | 30 +++++ templates/shortcodes/image.html | 8 ++ templates/svg.html | 194 ++++++++++++++++++++++++++++++++ theme.toml | 12 +- 11 files changed, 363 insertions(+), 180 deletions(-) delete mode 100644 README.md create mode 100644 sass/logo.scss delete mode 100644 screenshot.png create mode 100644 templates/logo.html create mode 100644 templates/shortcodes/image.html create mode 100644 templates/svg.html diff --git a/LICENSE b/LICENSE index ddf88ac..2bd6d6a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,10 @@ The MIT License (MIT) +Copyright (c) 2018 Track3 +Copyright (c) 2019 panr +Copyright (c) 2019 Djordje Atlialp Copyright (c) 2023 Speyll Lyes +Copyright (c) 2023 zaaarf 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 diff --git a/README.md b/README.md deleted file mode 100644 index 221e8ff..0000000 --- a/README.md +++ /dev/null @@ -1,129 +0,0 @@ -# anemone - -Introducing "anemone," a minimalist [Zola](https://www.getzola.org) theme that prioritizes clean CSS and avoids heavy JavaScript. Enjoy a seamless user experience with lightning-fast load times. Let your content take center stage in a clutter-free, elegant design that enhances readability. Responsive and efficient, anemone brings focus to your ideas. - -You can browse the demo website [here](https://anemone.pages.dev/) -I also use it on my own [website.](https://speyllsite.pages.dev/) - -Anemone is a versatile Zola theme that comes with both light and dark variants. You can easily switch between the light and dark themes to suit your preferences. - -![Anemone Light and Dark Theme](screenshot.png) - -### Installation - -To get started with Anemone, follow these simple steps: - -1. Download the theme to your `themes` directory: - -```bash -cd themes -git clone https://github.com/Speyll/anemone -``` - -2. Enable Anemone in your `config.toml`: - -```toml -theme = "anemone" -``` - -### Options - -Anemone provides various options to customize your website: - -#### Default Taxonomies - -To use tags, add the following code to a page's metadata: - -```toml -[taxonomies] -tags = ["tag1", "tag2"] -``` - -#### Pages List in Homepage - -Enable listing of pages in the homepage by adding the following code to `config.toml`: - -```toml -[extra] -list_pages = true -``` - -#### Multilanguage - -The theme has a built-in feature that allows you to use multiple languages. For detailed instructions on how to use this feature, you can refer to the [Zola Multilingual documentation](https://www.getzola.org/documentation/content/multilingual/). This documentation provides additional information on how to make the most out of this multilingual capability. - -```toml -[languages.fr] -weight = 2 -title = "anemone" -languageName = "Français" -languageCode = "fr" -``` -#### Multilanguage-Ready Navigation Bar - -Customize the header navigation links with the following code in the `extra` section of `config.toml`: - -```toml -[extra] - -header_nav = [ - { url = "/", name_en = "/home/", name_fr = "/accueil/" }, - { url = "/about", name_en = "/about/", name_fr = "/concernant/" }, - { url = "/journal", name_en = "/journal/", name_fr = "/journal/" }, - { url = "/blog", name_en = "/blog/", name_fr = "/blog/" } -] -``` - -#### Default Theme - -To configure the default theme, simply utilize the `default_theme` variable and set it to either `light` or `dark`: - -```toml -[extra] -default_theme = "light" -``` - -#### Display Author Name in Blog Posts - -Customize the display of the author's name in your blog posts by toggling the `display_author` variable to either `true` or `false`: - -```toml -[extra] -display_author = true -``` - -### Webrings - -Add a webring with a shortcode: - -```html -{{ webring(prev="#", webring="#", webringName="Random Webring", next="#") }} -``` - -#### Add Table of Contents (TOC) to Pages - -In a page's frontmatter, set `extra.toc` to `true`: - -```toml -[extra] -toc = true -``` - -### Extra Data - -- Set the `author` in both the main config and in pages' metadata. -- Use the `image` variable in pages to add an image to HTML `` tags. -- Similarly, set `favicon` in the main config, and it will be used as the site icon. - -#### Disable Twitter Card - -Twitter metatags are generated by default. To disable them, set `extra.twitter_card` to `false` in `config.toml`: - -```toml -[extra] -twitter_card = true -``` - -### License - -The Anemone theme is available as open source under the terms of the [MIT License](LICENSE). diff --git a/config.toml b/config.toml index 284b43e..2cf593d 100644 --- a/config.toml +++ b/config.toml @@ -1,10 +1,17 @@ +## Zola stuff +## Customize these as you see fit, unless otherwise specified. base_url = "https://anemone.pages.dev" description = "A minimalist Zola theme that prioritizes clean CSS and avoids heavy JavaScript. Enjoy a seamless user experience with lightning-fast load times. Let your content take center stage in a clutter-free, elegant design that enhances readability. Responsive and efficient, anemone brings focus to your ideas." compile_sass = false -minify_html = true generate_feed = true default_language = "en" +# IMPORTANT! Keep this disabled: HTML minifying currently breaks our CSS! +# We use CSS in