~irimi1/sticker.catering

1f98c976cd246c0a3db64e656cf6c9ed3025e7c4 — Manuel GroƟ 4 months ago
Big bang
A  => .gitignore +1 -0
@@ 1,1 @@
/public

A  => config.toml +16 -0
@@ 1,16 @@
# The URL the site will be built for
base_url = "https://sticker.catering"
title = "sticker.catering"

# Whether to automatically compile all Sass files in the sass directory
compile_sass = true

# 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 to build a search index to be used later on by a JavaScript library
build_search_index = false

[extra]
	footer_text = "Contact: <a href=\"mailto:stickers@irimi.one\">stickers@irimi.one</a>"

A  => content/_index.md +7 -0
@@ 1,7 @@
+++
title = "Sticker Catering"

weight = 0
+++

The traveling sticker sharing box.

A  => content/past-events/_index.md +6 -0
@@ 1,6 @@
+++
title = "Past Events"
sort_by = "date"
+++

This only exists to compare the title, in case another subsection will be added some time in the future.

A  => content/past-events/revision-2018.md +7 -0
@@ 1,7 @@
+++
title = "Revision 2018"
date = 2018-03-30

[extra]
	link = "https://2018.revision-party.net/"
+++

A  => content/upcoming-events/37c3.md +7 -0
@@ 1,7 @@
+++
title = "37th Chaos Communication Congress"
date = 2020-12-27

[extra]
	link = "https://events.ccc.de/congress/2020/wiki/index.php/Main_Page"
+++

A  => content/upcoming-events/_index.md +6 -0
@@ 1,6 @@
+++
title = "Upcoming Events"
sort_by = "date"
+++

This only exists to compare the title, in case another subsection will be added some time in the future.

A  => sass/stickers.scss +39 -0
@@ 1,39 @@
$background-colour: #ffffff;
$main-colour: #000000;
$accent-colour: #4c6c91;

body {
	background-colour: $background-colour;
	color: $main-colour;
	font-family: "Hack", "Lucida Console", Monaco, monospace;
}

p {
	margin-left: 10px;
}

h1, h2, h3, h4, h5, h6 {
	display: table;
	padding: 4px 8px;
	text-transform: uppercase;
	background-color: $main-colour;
	color: $background-colour;
}

.event {
	margin: 3px 0 3px 0;
	display: table;
}

a {
	color: $accent-colour;
}

a:hover {
	color: $background-colour;
	background-color: $accent-colour;
}

footer {
	font-size: small;
}

A  => static/.htaccess +4 -0
@@ 1,4 @@
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{ENV:HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

A  => templates/index.html +40 -0
@@ 1,40 @@
<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>{% block title %}{{ config.title }}{% endblock title %}</title>
    <link rel="shortcut icon" type="image/png" href="/favicon.png"/>
    <link rel="shortcut icon" type="image/png" href="{{ config.base_url }}/favicon.png"/>
    <link rel="stylesheet" href="{{ config.base_url }}/stickers.css">
  </head>
  <body>
    <div class="container">
      <header>
          <h1>{{ config.title | upper}}</h1>
      </header>
      <main>
        {% block content %}
          <p>{{ section.content | safe }}</p>
          <p>
            {% for subsection in section.subsections | reverse %}
              {% set subsec = get_section(path=subsection) %}
              {% if subsec.title == "Upcoming Events" %}
                <h2>{{ subsec.title }}</h2>
                {% for page in subsec.pages | reverse %}
                  <span class="event">&emsp;&gt;&gt;&emsp;{{ page.date }}&emsp;&gt;&gt;&emsp;<a href="{{ page.extra.link }}">{{ page.title }}</a></span>
                {% endfor %}
              {% endif %}
              {% if subsec.title == "Past Events" %}
                <h2>{{ subsec.title }}</h2>
                {% for page in subsec.pages | reverse %}
                  <span class="event">&emsp;&gt;&gt;&emsp;{{ page.date }}&emsp;&gt;&gt;&emsp;<a href="{{ page.extra.link }}">{{ page.title }}</a></span>
                {% endfor %}
              {% endif %}
            {% endfor %}
          </p>
        {% endblock content %}
      </main>
      <footer>{{ config.extra.footer_text | safe}}</footer>
    </div>
  </body>
</html>