diff --git a/.eleventy.js b/.eleventy.js index aeb5410..ea737dd 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -2,6 +2,42 @@ const eleventyNavigationPlugin = require("@11ty/eleventy-navigation"); module.exports = function (config) { + // Configures the development server + config.setServerOptions({ + // Default values are shown: + + // Whether the live reload snippet is used + liveReload: true, + + // Whether DOM diffing updates are applied where possible instead of page reloads + domDiff: true, + + // The starting port number + // Will increment up to (configurable) 10 times if a port is already in use. + port: 8080, + + // Additional files to watch that will trigger server updates + // Accepts an Array of file paths or globs (passed to `chokidar.watch`). + // Works great with a separate bundler writing files to your output folder. + // e.g. `watch: ["_site/**/*.css"]` + watch: [], + + // Show local network IP addresses for device testing + showAllHosts: true, + + // Use a local key/certificate to opt-in to local HTTP/2 with https + https: { + // key: "./localhost.key", + // cert: "./localhost.cert", + }, + + // Change the default file encoding for reading/serving files + encoding: "utf-8", + }); + + + // Collections: Übersetzungen, Sekundärliteratur, Theateraufführungen, Selbstständige und unselbstständige Drucke, Poshume Ausgaben, Forschungbibliografie + // Reads in the Collections based on folder name and sorts them according to the rules provided by the function config.addCollection("uebersetzungen", function(collectionApi) { return collectionApi .getFilteredByGlob("**/lists/uebersetzungen/*.html") @@ -116,44 +152,11 @@ module.exports = function (config) { }); }); - - config.setServerOptions({ - // Default values are shown: - - // Whether the live reload snippet is used - liveReload: true, - - // Whether DOM diffing updates are applied where possible instead of page reloads - domDiff: true, - - // The starting port number - // Will increment up to (configurable) 10 times if a port is already in use. - port: 8080, - - // Additional files to watch that will trigger server updates - // Accepts an Array of file paths or globs (passed to `chokidar.watch`). - // Works great with a separate bundler writing files to your output folder. - // e.g. `watch: ["_site/**/*.css"]` - watch: [], - - // Show local network IP addresses for device testing - showAllHosts: true, - - // Use a local key/certificate to opt-in to local HTTP/2 with https - https: { - // key: "./localhost.key", - // cert: "./localhost.cert", - }, - - // Change the default file encoding for reading/serving files - encoding: "utf-8", - }); - // Uses the semi-official "navigation"-plugin for eleventy config.addPlugin(eleventyNavigationPlugin); // Set static folder, which copntent will be copied to the output folder - config.addPassthroughCopy({ "src/static/": "/" }); + config.addPassthroughCopy({ "src/static/": "/static/" }); return { // Set custom directories for dynamic pages, data, includes, layouts and finally the generated output diff --git a/src/dynamic/chronik.njk b/src/dynamic/chronik.njk index a1e5ca1..5e4b994 100644 --- a/src/dynamic/chronik.njk +++ b/src/dynamic/chronik.njk @@ -6,7 +6,6 @@ eleventyNavigation: order: 2 ---
-
1751
Am 23. Januar (12. Januar nach dem Kalender alten Stils) wird Jacob Michael Reinhold Lenz im livländischen Seßwegen (Casvaine) als Sohn des Pastors und späteren Generalsuperintendenten von Livland Christian David und der Pastorentocher Dorothea Lenz (geb. Neoknapp) geboren.
@@ -47,8 +46,8 @@ eleventyNavigation:
- - + +
diff --git a/src/dynamic/index.njk b/src/dynamic/index.njk index 6af3897..00b0e89 100644 --- a/src/dynamic/index.njk +++ b/src/dynamic/index.njk @@ -8,7 +8,6 @@ eleventyNavigation:
-

Die folgenden Seiten sind dem Sturm-und-Drang-Dichter Jakob (Jacob) Michael Reinhold Lenz (1751–92) gewidmet. In Heidelberg sollen das Nachlassmaterial und die Forschungsliteratur zu Lenz in Kopie oder Original an einem Ort versammelt werden. Sein Nachlass liegt auf Standorte in ganz Europa verteilt; ein Handschriftenverzeichnis gibt hierüber detailliert Auskunft. Die selbständigen sowie die unselbständigen Drucke zu Lebzeiten sind online verzeichnet und als Faksimilie zugänglich. Ein Verzeichnis der posthumen Ausgaben, eine Forschungsbibliographie und eine Aufstellung der Theateraufführungen ab 1950 geben einen Einblick in die Resonanz, die das Lenzsche Werk hervorgerufen hat und immer noch hervorbringt.
diff --git a/src/dynamic/sekundaerliteratur.njk b/src/dynamic/sekundaerliteratur.njk index e4090cd..800c69e 100644 --- a/src/dynamic/sekundaerliteratur.njk +++ b/src/dynamic/sekundaerliteratur.njk @@ -26,13 +26,13 @@ eleventyNavigation: {% set jahr = "" %} {% set currjahr = "" %} {% set count = 0 %} - {%- for post in collections.sekundaer -%} - {% if count % 50 == 0 and jahr !== post.data.Jahr %} - - {% set jahr = post.data.Jahr %} + {%- for entry in collections.sekundaer -%} + {% if count % 50 == 0 and jahr !== entry.data.Jahr %} + + {% set jahr = entry.data.Jahr %} {% endif %} {% set count = count + 1 %} - {% set currjahr = post.data.Jahr %} + {% set currjahr = entry.data.Jahr %} {%- endfor -%} {%- if currjahr !== jahr %} @@ -44,18 +44,18 @@ eleventyNavigation:

{% set jahr = "" %} - {%- for post in collections.sekundaer -%} - {% if post.data.Jahr !== jahr %} + {%- for entry in collections.sekundaer -%} + {% if entry.data.Jahr !== jahr %} {% if jahr !== "" %}
{% endif %} - {% set jahr = post.data.Jahr %} + {% set jahr = entry.data.Jahr %}
{{ jahr }}
{% endif %} -
{{ post.content | safe }}
+
{{ entry.content | safe }}
{%- endfor -%}
diff --git a/src/includes/header.njk b/src/includes/header.njk index e8e3ed9..8a1debc 100644 --- a/src/includes/header.njk +++ b/src/includes/header.njk @@ -1,7 +1,7 @@
- jla-Logo + jla-Logo

{{ config.title }}

diff --git a/src/layouts/base.njk b/src/layouts/base.njk index 9a43016..59a93eb 100644 --- a/src/layouts/base.njk +++ b/src/layouts/base.njk @@ -1,21 +1,9 @@ - - - {% if title and title != 'Home' %}{{title}} - {% endif %}{{ config.title }} - - - {# - - #} - - - - @@ -24,6 +12,19 @@ + + + + + {# + + #} + + + + + +