Skip to content

Commit

Permalink
simplified "layouts" directory structure and frontmatter
Browse files Browse the repository at this point in the history
  • Loading branch information
NotLe0n committed Dec 11, 2024
1 parent e47f133 commit 8dae7b6
Show file tree
Hide file tree
Showing 49 changed files with 10 additions and 64 deletions.
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ Jeder Artikel beginnt mit einem front-matter der so aussieht:
+++
title = ""
weight = 1
type = "article"
+++
```

Das Feld `title` gibt den Text an, der in der Seitenleiste für den Artikel angezeigt wird. `weight` bestimmt die Reihenfolge. `type` muss auf "article" bleiben. Diese Felder müssen immer ausgefüllt werden.
Das Feld `title` gibt den Text an, der in der Seitenleiste für den Artikel angezeigt wird. `weight` bestimmt die Reihenfolge. Diese Felder müssen immer ausgefüllt werden.

Der Pfad der Datei bestimmt die URL des Artikels.

Expand All @@ -48,8 +47,6 @@ Diese Datei beginnt mit einem front-matter, welches so aussieht:
+++
title = ""
weight = 1
type = "article"
layout = "single"
+++
```

Expand All @@ -58,13 +55,12 @@ Das HTML für die Website außerhalb der Artikel befindet sich im [`/layouts`](/

[`/_default/baseof.html`](/layouts/_default/baseof.html) ist das Kern der Website und bindet alle partials ein.

[`/article/single.html`](/layouts/article/single.html) enthält das Layout für Artikel.

[`/partials`](/layouts/partials/) enthält kleinere Teile der Website:
- [`artikel.html`](/layouts/partials/artikel.html)
- [`head.html`](/layouts/partials/head.html)
- [`header.html`](/layouts/partials/header.html)
- [`sidebar.html`](/layouts/partials/sidebar.html)
- [`artikel.html`](/layouts/partials/artikel.html): Fügt das Markdown ein.
- [`head.html`](/layouts/partials/head.html): HTML head
- [`header.html`](/layouts/partials/header.html): Der Header über jedem Artikel.
- [`sidebar.html`](/layouts/partials/sidebar.html): Die Seitenleiste mit allen links.
- [`navigation.html`](/layouts/partials/navigation.html): Die Navigation am unteren der Seite.

[`/layouts/404.html`](/layouts/404.html) definiert die Fehlermeldung falls eine Seite nicht gefunden wurde.

Expand Down
1 change: 0 additions & 1 deletion archetypes/default.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
+++
title = ""
weight = 1
type = "article"
+++
1 change: 0 additions & 1 deletion content/DE/Beispielprogramme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Beispielprogramme"
weight = 4
type = "article"
+++

# Beispielprogramme
Expand Down
1 change: 0 additions & 1 deletion content/DE/Der Kompilierer.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Der Kompilierer"
weight = 4
type = "article"
+++

# Der Kompilierer
Expand Down
1 change: 0 additions & 1 deletion content/DE/Einstieg/Einrichten.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Einrichten"
weight = 1
type = "article"
+++

# Entwicklungsumgebung einrichten
Expand Down
1 change: 0 additions & 1 deletion content/DE/Einstieg/Erstes Programm.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Erstes Programm"
weight = 3
type = "article"
+++

# Erstes Programm
Expand Down
1 change: 0 additions & 1 deletion content/DE/Einstieg/Installation.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Installation"
weight = 2
type = "article"
+++

# Installation
Expand Down
1 change: 0 additions & 1 deletion content/DE/Einstieg/Updates.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Updates"
weight = 4
type = "article"
+++

# Updates
Expand Down
2 changes: 0 additions & 2 deletions content/DE/Einstieg/_index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
+++
title = "Einstieg"
weight = 1
type = "article"
layout = "single"
+++

# Einstieg
Expand Down
1 change: 0 additions & 1 deletion content/DE/Fehlermeldungen.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Fehlermeldungen"
weight = 5
type = "article"
+++

# Fehlermeldungen
Expand Down
1 change: 0 additions & 1 deletion content/DE/Programmierung/Datentypen.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Datentypen"
weight = 1
type = "article"
+++

# Datentypen
Expand Down
1 change: 0 additions & 1 deletion content/DE/Programmierung/Funktionen/Anwendung.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Funktionsdeklarationen"
weight = 1
type = "article"
+++

# Funktionsdeklarationen
Expand Down
1 change: 0 additions & 1 deletion content/DE/Programmierung/Funktionen/Beispiele.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Beispiele"
weight = 4
type = "article"
+++

# Beispiele
Expand Down
1 change: 0 additions & 1 deletion content/DE/Programmierung/Funktionen/Externe Funktionen.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Externe Funktionen"
weight = 3
type = "article"
+++

# Externe Funktionen
Expand Down
1 change: 0 additions & 1 deletion content/DE/Programmierung/Funktionen/Referenzen.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Referenzen"
weight = 2
type = "article"
+++

# Referenzen
Expand Down
2 changes: 0 additions & 2 deletions content/DE/Programmierung/Funktionen/_index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
+++
title = "Funktionen"
weight = 6
type = "article"
layout = "single"
+++

# Funktionen
Expand Down
1 change: 0 additions & 1 deletion content/DE/Programmierung/Kombinationen.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Kombinationen"
weight = 7
type = "article"
+++

# Kombinationen
Expand Down
1 change: 0 additions & 1 deletion content/DE/Programmierung/Module.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Module"
weight = 8
type = "article"
+++

# Module
Expand Down
1 change: 0 additions & 1 deletion content/DE/Programmierung/Operatoren.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Operatoren"
weight = 3
type = "article"
+++

# Mathematische Operatoren
Expand Down
1 change: 0 additions & 1 deletion content/DE/Programmierung/Typkonvertierung.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Typkonvertierung"
weight = 2
type = "article"
+++

# Typkonvertierung
Expand Down
1 change: 0 additions & 1 deletion content/DE/Programmierung/Variablen.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Variablen"
weight = 4
type = "article"
+++

# Variablen
Expand Down
1 change: 0 additions & 1 deletion content/DE/Programmierung/Verzweigungen und Schleifen.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Verzweigungen"
weight = 5
type = "article"
+++

# Verzweigungen
Expand Down
2 changes: 0 additions & 2 deletions content/DE/Programmierung/_index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
+++
title = "Programmierung"
weight = 2
type = "article"
layout = "single"
+++

# Programmierung
Expand Down
2 changes: 0 additions & 2 deletions content/DE/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
+++
title = "Startseite"
type = "article"
layout = "single"
+++

# Die Deutsche Programmiersprache (DDP)
Expand Down
1 change: 0 additions & 1 deletion content/EN/Beispielprogramme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Example programs"
weight = 4
type = "article"
+++

# Example programs
Expand Down
1 change: 0 additions & 1 deletion content/EN/Der Kompilierer.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
+++
title = "The Compiler"
weight = 4
type = "article"
+++
<todo></todo>
1 change: 0 additions & 1 deletion content/EN/Einstieg/Einrichten.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Setup"
weight = 1
type = "article"
+++

# Set up development environment
Expand Down
1 change: 0 additions & 1 deletion content/EN/Einstieg/Erstes Programm.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "First program"
weight = 3
type = "article"
+++

# First program
Expand Down
1 change: 0 additions & 1 deletion content/EN/Einstieg/Installation.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Installation"
weight = 2
type = "article"
+++

# Installation
Expand Down
1 change: 0 additions & 1 deletion content/EN/Einstieg/Updates.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Updates"
weight = 4
type = "article"
+++

# Updates
Expand Down
2 changes: 0 additions & 2 deletions content/EN/Einstieg/_index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
+++
title = "Getting Started"
weight = 1
type = "article"
layout = "single"
+++

# Getting Started
Expand Down
1 change: 0 additions & 1 deletion content/EN/Fehlermeldungen.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Errorcodes"
weight = 5
type = "article"
+++

# Errorcodes
Expand Down
1 change: 0 additions & 1 deletion content/EN/Programmierung/Datentypen.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Data types"
weight = 1
type = "article"
+++

# Data types
Expand Down
1 change: 0 additions & 1 deletion content/EN/Programmierung/Funktionen/Anwendung.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Function declarations"
weight = 1
type = "article"
+++

# Function declarations
Expand Down
1 change: 0 additions & 1 deletion content/EN/Programmierung/Funktionen/Beispiele.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Beispiele"
weight = 4
type = "article"
+++

# Examples
Expand Down
1 change: 0 additions & 1 deletion content/EN/Programmierung/Funktionen/Externe Funktionen.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "External functions"
weight = 3
type = "article"
+++

# External functions
Expand Down
1 change: 0 additions & 1 deletion content/EN/Programmierung/Funktionen/Referenzen.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "References"
weight = 2
type = "article"
+++

# References
Expand Down
2 changes: 0 additions & 2 deletions content/EN/Programmierung/Funktionen/_index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
+++
title = "Functions"
weight = 6
type = "article"
layout = "single"
+++

# Functions
Expand Down
1 change: 0 additions & 1 deletion content/EN/Programmierung/Kombinationen.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Combinations"
weight = 7
type = "article"
+++

# Combinations
Expand Down
1 change: 0 additions & 1 deletion content/EN/Programmierung/Module.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Modules"
weight = 7
type = "article"
+++

# Modules
Expand Down
1 change: 0 additions & 1 deletion content/EN/Programmierung/Operatoren.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Operators"
weight = 3
type = "article"
+++

# Mathematical operators
Expand Down
1 change: 0 additions & 1 deletion content/EN/Programmierung/Typkonvertierung.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Type conversion"
weight = 2
type = "article"
+++

# Type conversion
Expand Down
1 change: 0 additions & 1 deletion content/EN/Programmierung/Variablen.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Variables"
weight = 4
type = "article"
+++

# Variables
Expand Down
1 change: 0 additions & 1 deletion content/EN/Programmierung/Verzweigungen und Schleifen.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Branches and Loops"
weight = 5
type = "article"
+++

# Branches
Expand Down
2 changes: 0 additions & 2 deletions content/EN/Programmierung/_index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
+++
title = "Programming"
weight = 2
type = "article"
layout = "single"
+++

# Programming
Expand Down
Loading

0 comments on commit 8dae7b6

Please sign in to comment.