Skip to content

Commit

Permalink
Move from cactus to jekyll, add mastodon link, update footer year
Browse files Browse the repository at this point in the history
  • Loading branch information
tiefpunkt committed Apr 1, 2024
1 parent 26a3b62 commit 14ea9eb
Show file tree
Hide file tree
Showing 50 changed files with 385 additions and 3,563 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,10 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: build website
run: |
cactus build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Build
uses: actions/jekyll-build-pages@v1
- name: deploy website
shell: bash
env:
Expand All @@ -32,4 +25,4 @@ jobs:
mkdir -p ~/.ssh
echo "${SSH_PRIVATE_KEY}" | base64 -d > ${HOME}/.ssh/deploy.id_rsa
chmod 700 ${HOME}/.ssh/deploy.id_rsa
rsync -azL -e "ssh -i ${HOME}/.ssh/deploy.id_rsa -o StrictHostKeyChecking=no" --delete --progress .build/ [email protected]:/var/www/vhosts/munichmakerlab.de/www/htdocs/
rsync -azL -e "ssh -i ${HOME}/.ssh/deploy.id_rsa -o StrictHostKeyChecking=no" --delete --progress _site/ [email protected]:/var/www/vhosts/munichmakerlab.de/www/htdocs/
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.build
env*
*.pyc
_site
.sass-cache
.jekyll-cache
.jekyll-metadata
vendor
id_rsa*
File renamed without changes.
25 changes: 25 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
permalink: /404.html
layout: default
---

<style type="text/css" media="screen">
.container {
margin: 10px auto;
max-width: 600px;
text-align: center;
}
h1 {
margin: 30px 0;
font-size: 4em;
line-height: 1;
letter-spacing: -1px;
}
</style>

<div class="container">
<h1>404</h1>

<p><strong>Page not found :(</strong></p>
<p>The requested page could not be found.</p>
</div>
33 changes: 33 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
source "https://rubygems.org"
# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "~> 4.3.2"
# This is the default theme for new Jekyll sites. You may change this to anything you like.
# gem "minima", "~> 2.5"
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.12"
end

# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
platforms :mingw, :x64_mingw, :mswin, :jruby do
gem "tzinfo", ">= 1", "< 3"
gem "tzinfo-data"
end

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]

# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
# do not have a Java counterpart.
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
55 changes: 55 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Welcome to Jekyll!
#
# This config file is meant for settings that affect your whole blog, values
# which you are expected to set up once and rarely edit after that. If you find
# yourself editing this file very often, consider using Jekyll's data files
# feature for the data you need to update frequently.
#
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
#
# If you need help with YAML syntax, here are some quick references for you:
# https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml
# https://learnxinyminutes.com/docs/yaml/
#
# Site settings
# These are used to personalize your new site. If you look in the HTML files,
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.

title: Munich Maker Lab
email: [email protected]
description: >- # this means to ignore newlines until "baseurl:"
Write an awesome description for your new site here. You can edit this
line in _config.yml. It will appear in your document head meta (for
Google search results) and in your feed.xml site description.
baseurl: "" # the subpath of your site, e.g. /blog
url: "https://munichmakerlab.de" # the base hostname & protocol for your site, e.g. http://example.com
#twitter_username: jekyllrb
#github_username: jekyll

# Build settings
#theme: minima
plugins:
- jekyll-feed

# Exclude from processing.
# The following items will not be processed, by default.
# Any item listed under the `exclude:` key here will be automatically added to
# the internal "default list".
#
# Excluded items can be processed by explicitly listing the directories or
# their entries' file path in the `include:` list.
#
# exclude:
# - .sass-cache/
# - .jekyll-cache/
# - gemfiles/
# - Gemfile
# - Gemfile.lock
# - node_modules/
# - vendor/bundle/
# - vendor/cache/
# - vendor/gems/
# - vendor/ruby/
91 changes: 43 additions & 48 deletions templates/base.html → _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,24 @@
<meta name="description" content="">
<meta name="author" content="">

<title>{% block title %}Munich Maker Lab{% endblock %}</title>
<title>{{ page.title }}</title>

<!-- Bootstrap Core CSS -->
<link href="{% static '/static/css/bootstrap.min.css' %}" rel="stylesheet">
<link href="/static/css/bootstrap.min.css" rel="stylesheet">

<!-- Custom CSS -->
<link href="{% static '/static/css/clean-blog.min.css' %}" rel="stylesheet">
<link href="{% static '/static/css/mumalab.css' %}" rel="stylesheet">
<link href="/static/css/clean-blog.min.css" rel="stylesheet">
<link href="/static/css/mumalab.css" rel="stylesheet">

<!-- Custom Fonts -->
<link href="{% static '/static/css/font-awesome.min.css' %}" rel="stylesheet" type="text/css">
<link href="{% static '/static/css/font-lora.css' %}" rel='stylesheet' type='text/css'>
<link href=""{% static '/static/css/font-opensans.css' %}" rel='stylesheet' type='text/css'>
<link href="/static/css/fontawesome.min.css" rel="stylesheet" />
<link href="/static/css/brands.min.css" rel="stylesheet" />
<link href="/static/css/solid.min.css" rel="stylesheet" />
<link href="/static/css/v4-font-face.min.css" rel="stylesheet" />
<link href="/static/css/font-lora.css" rel='stylesheet' type='text/css'>
<link href="/static/css/font-opensans.css" rel='stylesheet' type='text/css'>

{% block custom_css %} {% endblock %}
{{ page.custom_css }}

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
Expand Down Expand Up @@ -106,14 +109,14 @@ <h4 class="modal-title">Space Status</h4>

<!-- Page Header -->
<!-- Set your background image for this header on the line below. -->
<header class="intro-header" style="background-image: url('{% block header_img %}{% static '/static/img/bg_main.png' %}{% endblock %}')">
<header class="intro-header" style="background-image: url('{{ page.header_image }}')">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<div class="site-heading">
<h1>{% block headline %} Munich Maker Lab{% endblock %}</h1>
<h1>{{ page.headline }}</h1>
<hr class="small">
<span class="subheading">{% block sub_headline %} Munich's freshest hackerspace{% endblock %}</span>
<span class="subheading">{{ page.sub_headline }}</span>
</div>
</div>
</div>
Expand All @@ -122,21 +125,7 @@ <h1>{% block headline %} Munich Maker Lab{% endblock %}</h1>

<!-- Main Content -->
<div class="container">
{% block content_container %}
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
{% block content %}
<div id="log">loading...</div>
<!-- Pager -->
<ul class="pager">
<li class="next">
<a href="http://log.munichmakerlab.de/">View all posts in the Log &rarr;</a>
</li>
</ul>
{% endblock %}
</div>
</div>
{% endblock %}
{{ content }}
</div>

<hr>
Expand All @@ -147,63 +136,71 @@ <h1>{% block headline %} Munich Maker Lab{% endblock %}</h1>
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<ul class="list-inline text-center">
<li>
<a rel="me" href="https://chaos.social/@munichmakerlab">
<span class="fa-stack fa-1x">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-mastodon fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
<li>
<a href="https://twitter.com/munichmakerlab">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-twitter fa-stack-1x fa-inverse"></i>
<span class="fa-stack fa-1x">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-twitter fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
<li>
<a href="https://www.instagram.com/munichmakerlab">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-instagram fa-stack-1x fa-inverse"></i>
<span class="fa-stack fa-1x">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-instagram fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
<li>
<a href="https://www.facebook.com/munichmakerlab">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-facebook fa-stack-1x fa-inverse"></i>
<span class="fa-stack fa-1x">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-facebook fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
<li>
<a href="http://log.munichmakerlab.de">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-tumblr fa-stack-1x fa-inverse"></i>
<span class="fa-stack fa-1x">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-tumblr fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
<li>
<a href="https://github.com/munichmakerlab">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-github fa-stack-1x fa-inverse"></i>
<span class="fa-stack fa-1x">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-github fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
</ul>
<p class="copyright text-muted">
Munich Maker Lab e.V. 2023<br>
Munich Maker Lab e.V. 2024<br>
<a href="imprint.html">Impressum/Imprint</a> - <a href="privacy.html">Datenschutzerklärung/Privacy Policy</a><br> Edit this page on <a href="https://github.com/munichmakerlab/website">Github</a></p>
</div>
</div>
</div>
</footer>

<!-- jQuery -->
<script src="{% static '/static/js/jquery.js' %}"></script>
<script src="/static/js/jquery.js"></script>

<!-- Bootstrap Core JavaScript -->
<script src="{% static '/static/js/bootstrap.min.js' %}"></script>
<script src="/static/js/bootstrap.min.js"></script>

<!-- Custom Theme JavaScript -->
<script src="{% static '/static/js/clean-blog.min.js' %}"></script>
<script src="/static/js/clean-blog.min.js"></script>

<script>
$(function() {
Expand All @@ -224,9 +221,7 @@ <h1>{% block headline %} Munich Maker Lab{% endblock %}</h1>
</script>


{% block custom_js %}

{% endblock %}
{{ page.custom_js }}
</body>

</html>
9 changes: 9 additions & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
layout: default
---

<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
{{ content }}
</div>
</div>
19 changes: 7 additions & 12 deletions pages/about.html → about.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
{% extends "base.html" %}

{% block title %}About Us{% endblock %}

{% block header_img %}{% static '/static/img/bg_make.png' %}{% endblock %}

{% block headline %}About Us{% endblock %}

{% block sub_headline %}What's the Munich Maker Lab?{% endblock %}

{% block content %}
---
layout: page
title: About Us
header_image: /static/img/bg_make.png
headline: About Us
sub_headline: What's the Munich Maker Lab?
---
<p>The Munich Maker Lab is a non-profit organization, creating an open community workspace, where you can learn, teach, share, make, hack, create, enjoy or simply relax. We try to create an environment that supports the do-it-yourself-, hacker-, and maker-culture by providing workspace, tools and infrastructure to our members and everyone else.</p>

<p><a href="statues.html">Our statues</a> and <a href="scaleoffees.html">our scale of fees</a></p>
Expand All @@ -26,4 +22,3 @@ <h2 class="section-heading">Support us</h2>
</blockquote>
Make sure to send us an email to <a href="mailto:[email protected]?subject=Donation">[email protected]</a>, so we can get you your receipt.
</p>
{% endblock %}
Loading

0 comments on commit 14ea9eb

Please sign in to comment.