From c5620bccfb4fda522c900e5fd026faea9bb39ebc Mon Sep 17 00:00:00 2001 From: Christian Noss Date: Sat, 7 Oct 2023 20:03:31 +0200 Subject: [PATCH] Cleaned up a bit :) --- .eleventy.js | 2 +- src/_layouts/default.html | 22 ----- src/_layouts/modulbeschreibung.html | 135 ---------------------------- 3 files changed, 1 insertion(+), 158 deletions(-) delete mode 100644 src/_layouts/default.html delete mode 100644 src/_layouts/modulbeschreibung.html diff --git a/.eleventy.js b/.eleventy.js index 42e901f490..f64ea253b4 100755 --- a/.eleventy.js +++ b/.eleventy.js @@ -2,7 +2,7 @@ const htmlmin = require('html-minifier'); const markdownIt = require("markdown-it"); const yaml = require("js-yaml"); -const pathPrefix = (process.env.ELEVENTY_ENV === 'production') ? "" : ""; +const pathPrefix = (process.env.ELEVENTY_ENV === 'production') ? "medieninformatik-5.0ty" : ""; const ghPagesFolder = "docs"; const md = new markdownIt({ diff --git a/src/_layouts/default.html b/src/_layouts/default.html deleted file mode 100644 index f7974bda59..0000000000 --- a/src/_layouts/default.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - {{ site.data.settings.basic_settings.site_title }} // {% if page.title %}{{ page.title }} – {% endif %} - - - - - - - {% include header.html %} - - {{ content }} - - {% include footer.html %} - {% include scripts.html %} - - - diff --git a/src/_layouts/modulbeschreibung.html b/src/_layouts/modulbeschreibung.html deleted file mode 100644 index b2e40e4c86..0000000000 --- a/src/_layouts/modulbeschreibung.html +++ /dev/null @@ -1,135 +0,0 @@ ---- -layout: default ---- - -{% include /functions/resolve-names.html modulverantwortlich=page.modulverantwortlich %} - -
-
- -
-

{{ page.title }}{% include edit.html %}

-
- -
- - {% assign check = page.modulverantwortlich|strip_newlines %} - {% if check != "" %} -
Modulverantwortlich
-
{{modulverantwortliche}}
- {% endif %} - - {% assign check = page.verantwortlich|strip_newlines %} - {% if check != "" %} -
Verantwortlich
-
{{page.verantwortlich}}
- {% endif %} - - - {% assign check = page.kuerzel|strip_newlines %} - {% if check != "" %} -
Kürzel
-
{{page.kuerzel}}
- - {% endif %} - - {% assign check = page.untertitel|strip_newlines %} - {% if check != "" %} -
Untertitel
-
{{page.untertitel}}
- - {% endif %} - - {% assign check = page.studiensemester|strip_newlines %} - {% if check != "" %} -
Studiensemester
-
{{page.studiensemester}}
- - {% endif %} - - {% assign check = page.sprache|strip_newlines %} - {% if check != "" %} -
Sprache
-
{{page.sprache}}
- - {% endif %} - - {% assign check = page.zuordnung-zum-curriculum|strip_newlines %} - {% if check != "" %} -
Zuordnung zum Curriculum
-
{{page.zuordnung-zum-curriculum}}
- - {% endif %} - - {% assign check = page.lehrform-sws|strip_newlines %} - {% if check != "" %} -
Lehrform/SWS
-
{{page.lehrform-sws}}
- - {% endif %} - - {% assign check = page.arbeitsaufwand|strip_newlines %} - {% if check != "" %} -
Arbeitsaufwand
-
{{page.arbeitsaufwand}}
- - {% endif %} - - {% assign check = page.kreditpunkte|strip_newlines %} - {% if check != "" %} -
Kreditpunkte
-
{{page.kreditpunkte}}
- - {% endif %} - - {% assign check = page.voraussetzungen-nach-pruefungsordnung|strip_newlines %} - {% if check != "" %} -
Voraussetzungen nach Prüfungsordnung
-
{{page.voraussetzungen-nach-pruefungsordnung}}
- - {% endif %} - - {% assign check = page.empfohlene-voraussetzungen|strip_newlines %} - {% if check != "" %} -
Empfohlene Voraussetzungen
-
{{page.empfohlene-voraussetzungen}}
- {% endif %} - - {% assign check = page.infourl|strip_newlines %} - {% if check != "" %} -
Weitere Informationen zum Modul
-
{{page.infourl}}
- {% endif %} - - {% assign check = page.studienleistungen|strip_newlines %} - {% if check != "" %} -
Studienleistungen
-
- {% include /functions/format-studienleistungen.html studienleistungen=page.studienleistungen %} - {{studienleistungen_html}} -
- {% endif %} - -
-
- -
- {{ content }} - - {% assign check = page.kuerzel|strip_newlines %} - {% if check != "" %} - {% include /functions/list-children.html parent=check %} - {% endif %} - - {% assign check = page.parent|strip_newlines %} - {% if check != "" %} - {% assign parentModules = site.modulbeschreibungen-bachelor-bpo4|where:"kuerzel",check|sort:'title' %} - {% assign parentModul = parentModules|first %} -
-

Dies ist ein Teilmodul des Moduls {{parentModul.title}}.

- - {% endif %} - -
- -
\ No newline at end of file