From 1195a639ae4cbba7aae35c6aa25298195ad12346 Mon Sep 17 00:00:00 2001 From: vitrinekast Date: Tue, 26 Mar 2024 17:05:38 +0100 Subject: [PATCH] return the block --- print.css | 19 +++++++------------ templates/book.jinja | 14 ++++++++++++-- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/print.css b/print.css index a318399..a687615 100644 --- a/print.css +++ b/print.css @@ -326,18 +326,13 @@ q { src: url("../fonts/CascadiaCode-Bold.ttf"); } -:root { - font-size: 16px; -} - body { font-family: "CascadiaCode VTT"; - font-size: .8em; - border:2em solid green; + font-size: .8rem; + margin: 0 2rem; } article { - border: 3em solid orange; page-break-after: always; text-align: left; text-justify: none; @@ -363,10 +358,10 @@ dd { mark { background: yellow; display: block; - padding: 0.5em; + padding: 0.5rem; font-family: "DuctusRegular"; - margin-bottom: 1em; - margin-right: 1em; + margin-bottom: 1rem; + margin-right: 1rem; white-space: normal; text-align: left; text-justify: none; @@ -381,10 +376,10 @@ h6 { font-family: "DuctusRegular"; text-align: left; text-justify: none; - font-size: 1.5em; + font-size: 1.5rem; } p { - margin-bottom: 1em; + margin-bottom: 1rem; font-family: "CascadiaCode VTT"; text-align: left; text-justify: none; diff --git a/templates/book.jinja b/templates/book.jinja index ad1cc12..154a915 100644 --- a/templates/book.jinja +++ b/templates/book.jinja @@ -73,8 +73,18 @@ Users are assigned to groups, which allow them rights to read or edit files, run commands or apply infrastructural changes. For chopchop, we all have 'sudo rights': the ability to perform any command, including the more sensitive ones. Sudo is a command that's short for 'superuser do', with it, a user has more privileges, like installing or updating a package or performing a restart. - - + + + {% if users_created_today is defined %} + + {% if users_created_today|length > 0 %} + {{last_user_name}} user was added, and the network of trust grew ever so slightly. Users will be trusted with not just the keys and passwords to the "house" which is the server, but with a portion of responsibility to keep it afloat and contribute to what makes it a community of practices (and network of knowledge and dependence). + {% else %} + No new users were created today. The trust network remains the same size. + {% endif %} + + {% endif %} + {% if list_package_installs|length > 0 %}

tldr@chopchop:~ $ grep 'install' /var/log/dpkg.log

Something here in the if statement is not working