From e35a10e109c8cee063b34849f399250b4c9b8de9 Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Sun, 11 Jun 2023 15:58:41 +0200 Subject: [PATCH] Start new website based on ZOla and Bulma --- .gitignore | 4 +++ config.toml | 33 ++++++++++++++++++++++++ content/_index.md | 2 ++ package.json | 5 ++++ sass/style.scss | 5 ++++ templates/base.html | 60 ++++++++++++++++++++++++++++++++++++++++++++ templates/index.html | 1 + yarn.lock | 8 ++++++ 8 files changed, 118 insertions(+) create mode 100644 .gitignore create mode 100644 config.toml create mode 100644 content/_index.md create mode 100644 package.json create mode 100644 sass/style.scss create mode 100644 templates/base.html create mode 100644 templates/index.html create mode 100644 yarn.lock diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..4c9df5f6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*~ + +/node_modules/ +/public/ diff --git a/config.toml b/config.toml new file mode 100644 index 00000000..9dc6ce46 --- /dev/null +++ b/config.toml @@ -0,0 +1,33 @@ +base_url = "https://teckids.org" + +title = "Teckids" +description = "Eine verstehbare (digitale) Welt – Gemeinsam, für Alle" + +output_dir = "public" +compile_sass = true +build_search_index = true +generate_feed = true +hard_link_static = true +#minify_html = true + +taxonomies = [ +] + +[markdown] +highlight_code = false + +external_links_target_blank = true +external_links_no_referrer = true + +[slugify] +paths_keep_dates = true + +[search] +include_title = true +include_description = true +include_path = false +include_content = true + +index_format = "elasticlunr_json" + +[extra] diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 00000000..ac36e062 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/package.json b/package.json new file mode 100644 index 00000000..0504140c --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "bulma": "^0.9.4" + } +} diff --git a/sass/style.scss b/sass/style.scss new file mode 100644 index 00000000..a0545076 --- /dev/null +++ b/sass/style.scss @@ -0,0 +1,5 @@ +@charset "utf-8"; + +$family-sans-serif: "Roboto", sans-serif; + +@import "../node_modules/bulma/bulma.sass"; diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 00000000..f6ac586b --- /dev/null +++ b/templates/base.html @@ -0,0 +1,60 @@ +<!DOCTYPE html> +<html lang="{{ lang }}"> + <head> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + + {% block meta %} + {% if config.description %}<meta name="description" content="{{ config.description }}" />{% endif %} + <link rel="alternate" type="application/atom+xml" href="{{ get_url(path="atom.xml", trailing_slash=false) }}" /> + {% endblock %} + + <link rel="stylesheet" href="{{ get_url(path="fonts/roboto/index.css") }}" /> + <link rel="stylesheet" href="{{ get_url(path="fonts/font-awesome/css/all.css") }}" /> + <link rel="stylesheet" href="{{ get_url(path="style.css") }}" /> + + <title>{% block title %}{{ config.title }}{% endblock %}</title> + </head> + + <body class="has-navbar-fixed-top"> + <header> + <nav class="navbar is-fixed-top is-transparent" role="navigation" aria-label="main navigation"> + <div class="navbar-brand"> + <a href="{{ get_url(path="@/_index.md") }}" class="navbar-item">{{ config.title }}</a> + </div> + + <div class="navbar-menu"> + <div class="navbar-start"> + <div class="navbar-item has-dropdown is-hoverable"> + <a href="#" class="navbar-item">Projekte</a> + <div class="navbar-dropdown"> + TBA + </div> + </div> + + <div class="navbar-item has-dropdown is-hoverable"> + <a href="#" class="navbar-item">Informationen für…</a> + <div class="navbar-dropdown"> + TBA + </div> + </div> + + <div class="navbar-item has-dropdown is-hoverable"> + <a href="#" class="navbar-item">Teckids-Gemeinschaft</a> + <div class="navbar-dropdown"> + TBA + </div> + </div> + + <div class="navbar-item has-dropdown is-hoverable"> + <a href="#" class="navbar-item">Updates</a> + <div class="navbar-dropdown"> + TBA + </div> + </div> + </div> + </div> + </nav> + </header> + </body> +</html> diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 00000000..94d9808c --- /dev/null +++ b/templates/index.html @@ -0,0 +1 @@ +{% extends "base.html" %} diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 00000000..e7a071ee --- /dev/null +++ b/yarn.lock @@ -0,0 +1,8 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +bulma@^0.9.4: + version "0.9.4" + resolved "https://registry.yarnpkg.com/bulma/-/bulma-0.9.4.tgz#0ca8aeb1847a34264768dba26a064c8be72674a1" + integrity sha512-86FlT5+1GrsgKbPLRRY7cGDg8fsJiP/jzTqXXVqiUZZ2aZT8uemEOHlU1CDU+TxklPEZ11HZNNWclRBBecP4CQ== -- GitLab