begin to phase in projects

Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
This commit is contained in:
Nico Schottelius 2020-01-04 13:50:01 +01:00
parent 8f1338e012
commit 3f23695b6a
5 changed files with 18 additions and 45 deletions

View File

@ -1,6 +1,9 @@
title: ungleich cms title: ungleich cms
--- ---
body: There is not much here - everything is stored below /u/. _model: page-2020
---
content: There is not much here - everything is stored below /u/.
You should actually not be able to see this page below ungleich.ch. If You should actually not be able to see this page below ungleich.ch. If
you do, please let us know. you do, please let us know.
---

View File

@ -1,3 +1,5 @@
_model: page-2020
---
title: /u/: the new home of ungleich title: /u/: the new home of ungleich
--- ---
body: We are changing our CMS and our blog to a static body: We are changing our CMS and our blog to a static

View File

@ -1,9 +1,6 @@
_model: projects
---
title: Projects title: Projects
--- ---
body: subtitle: Things we do at ungleich
---
This is a list of the projects:
* Project 1
* Project 2
* Project 3

View File

@ -9,8 +9,6 @@
<link rel="stylesheet" <link rel="stylesheet"
href="/u/static/bootstrap-4.4.1-dist/css/bootstrap.min.css"> href="/u/static/bootstrap-4.4.1-dist/css/bootstrap.min.css">
<title>{% block title %}Welcome to {% endblock %} | ungleich.ch</title> <title>{% block title %}Welcome to {% endblock %} | ungleich.ch</title>
</head> </head>
<body> <body>
@ -23,6 +21,7 @@
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
</button> </button>
<!-- MENU HERE -->
<div class="collapse navbar-collapse" id="navbarSupportedContent"> <div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto"> <ul class="navbar-nav mr-auto">
<li class="nav-item active"> <li class="nav-item active">
@ -37,6 +36,9 @@
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="/u/products/">Products</a> <a class="nav-link" href="/u/products/">Products</a>
</li> </li>
<li class="nav-item">
<a class="nav-link" href="/u/projects/">Projects</a>
</li>
</ul> </ul>
<form class="form-inline my-2 my-lg-0" <form class="form-inline my-2 my-lg-0"
action="https://search.ungleich.ch/yacysearch.html" method="get"> action="https://search.ungleich.ch/yacysearch.html" method="get">
@ -50,7 +52,7 @@
<div class="position-relative overflow-hidden p-3 p-md-5 m-md-3 text-center bg-light"> <div class="position-relative overflow-hidden p-3 p-md-5 m-md-3 text-center bg-light">
<div class="col-md-5 p-lg-5 mx-auto my-5"> <div class="col-md-5 p-lg-5 mx-auto my-5">
<h1 class="display-4 font-weight-normal">{{ self.title() }} <h1 class="display-4 font-weight-normal">{{ self.title() }}
<span class="badge badge-info">BETA</span></h1> <span class="badge badge-info">BETA</span></h1>
<p class="lead font-weight-normal"> <p class="lead font-weight-normal">
{% block subtitle %}{% endblock %} {% block subtitle %}{% endblock %}
</p> </p>
@ -61,12 +63,12 @@
{% block content %}{% endblock %} {% block content %}{% endblock %}
<hr/> <hr/>
<footer class="footer mt-auto py-3"> <footer class="footer mt-auto py-3">
<div class="container"> <div class="container">
<span class="text-muted">Copyright <span class="text-muted">Copyright
<a class=footer-link href="https://ungleich.ch">ungleich <a class=footer-link href="https://ungleich.ch">ungleich
glarus ag</a>.</span> glarus ag</a>.</span>
</div> </div>
</footer> </footer>

View File

@ -1,32 +0,0 @@
{% extends "layout-2020.html" %}
{% block title %}{{ this.title }}{% endblock %}
{% block subtitle %}{{ this.subtitle }}{% endblock %}
{% block content %}
<div class="container">
{% for product in this.children %}
{% if loop.first %}
<div class="row mb-3">
{% endif %}
<div class="col-md-4 mb-3">
<div class="card">
<div class="card-body">
<h5 class="card-title">{{ product.title }}</h5>
<p class="card-text">{{ product.subtitle }}</p>
<a class="btn btn-primary" href="{{ product|url }}">Check it out</a>
</div>
</div>
</div>
{% if loop.index is divisibleby 3 %}
</div>
<div class="row mb-3">
{% endif %}
{% if loop.last %}
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
{% endblock %}

1
templates/products.html Symbolic link
View File

@ -0,0 +1 @@
summary-page.html