Change static file path

This commit is contained in:
Simon Martens
2023-02-13 20:50:57 +01:00
parent eb5c5d0980
commit 7f1e788c53
6 changed files with 62 additions and 60 deletions

View File

@@ -2,6 +2,42 @@ const eleventyNavigationPlugin = require("@11ty/eleventy-navigation");
module.exports = function (config) { 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) { config.addCollection("uebersetzungen", function(collectionApi) {
return collectionApi return collectionApi
.getFilteredByGlob("**/lists/uebersetzungen/*.html") .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 // Uses the semi-official "navigation"-plugin for eleventy
config.addPlugin(eleventyNavigationPlugin); config.addPlugin(eleventyNavigationPlugin);
// Set static folder, which copntent will be copied to the output folder // Set static folder, which copntent will be copied to the output folder
config.addPassthroughCopy({ "src/static/": "/" }); config.addPassthroughCopy({ "src/static/": "/static/" });
return { return {
// Set custom directories for dynamic pages, data, includes, layouts and finally the generated output // Set custom directories for dynamic pages, data, includes, layouts and finally the generated output

View File

@@ -6,7 +6,6 @@ eleventyNavigation:
order: 2 order: 2
--- ---
<div class="maincolumn"> <div class="maincolumn">
<div class="timeline"> <div class="timeline">
<div class="time">1751</div> <div class="time">1751</div>
<div class="entry">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.</div> <div class="entry">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.</div>
@@ -47,8 +46,8 @@ eleventyNavigation:
</div> </div>
<div class="image-with-legend mt-4 mb-8"> <div class="image-with-legend mt-4 mb-8">
<a href="/chronik/karte.png"> <a href="/static/chronik/karte.png">
<img class="contrast-125 drop-shadow-md mb-4" src="/chronik/karte.png"> <img class="contrast-125 drop-shadow-md mb-4" src="/static/chronik/karte.png">
</a> </a>
<div class="legende sm:flex sm:flex-row"> <div class="legende sm:flex sm:flex-row">
<table class="font-bold basis-1/2 shrink-0 grow-0 "> <table class="font-bold basis-1/2 shrink-0 grow-0 ">

View File

@@ -8,7 +8,6 @@ eleventyNavigation:
<div class="maincolumn"> <div class="maincolumn">
<p>Die folgenden Seiten sind dem Sturm-und-Drang-Dichter Jakob (Jacob) Michael Reinhold Lenz (175192) 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. <p>Die folgenden Seiten sind dem Sturm-und-Drang-Dichter Jakob (Jacob) Michael Reinhold Lenz (175192) 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.
<br> <br>

View File

@@ -26,13 +26,13 @@ eleventyNavigation:
{% set jahr = "" %} {% set jahr = "" %}
{% set currjahr = "" %} {% set currjahr = "" %}
{% set count = 0 %} {% set count = 0 %}
{%- for post in collections.sekundaer -%} {%- for entry in collections.sekundaer -%}
{% if count % 50 == 0 and jahr !== post.data.Jahr %} {% if count % 50 == 0 and jahr !== entry.data.Jahr %}
<option value="#{{ post.data.Jahr }}">{{ post.data.Jahr }}</option> <option value="#{{ entry.data.Jahr }}">{{ entry.data.Jahr }}</option>
{% set jahr = post.data.Jahr %} {% set jahr = entry.data.Jahr %}
{% endif %} {% endif %}
{% set count = count + 1 %} {% set count = count + 1 %}
{% set currjahr = post.data.Jahr %} {% set currjahr = entry.data.Jahr %}
{%- endfor -%} {%- endfor -%}
{%- if currjahr !== jahr %} {%- if currjahr !== jahr %}
<option value="#{{ currjahr }}">{{ currjahr }}</option> <option value="#{{ currjahr }}">{{ currjahr }}</option>
@@ -44,18 +44,18 @@ eleventyNavigation:
<div class="yearlist" id="list"> <div class="yearlist" id="list">
{% set jahr = "" %} {% set jahr = "" %}
{%- for post in collections.sekundaer -%} {%- for entry in collections.sekundaer -%}
{% if post.data.Jahr !== jahr %} {% if entry.data.Jahr !== jahr %}
{% if jahr !== "" %} {% if jahr !== "" %}
</div> </div>
</div> </div>
{% endif %} {% endif %}
{% set jahr = post.data.Jahr %} {% set jahr = entry.data.Jahr %}
<div class="category" id="{{ jahr }}"> <div class="category" id="{{ jahr }}">
<div class="categorytitle" >{{ jahr }}</div> <div class="categorytitle" >{{ jahr }}</div>
<div class="categorybody"> <div class="categorybody">
{% endif %} {% endif %}
<div class="searchable">{{ post.content | safe }}</div> <div class="searchable">{{ entry.content | safe }}</div>
{%- endfor -%} {%- endfor -%}
</div> </div>
</div> </div>

View File

@@ -1,7 +1,7 @@
<header class="flex flex-row justify-between desktop:justify-start desktop:block"> <header class="flex flex-row justify-between desktop:justify-start desktop:block">
<div class="flex flex-row desktop:block"> <div class="flex flex-row desktop:block">
<img class="h-20 desktop:h-auto desktop:px-12 desktop:pb-4 desktop:pt-8" src="/logo/JLA.png" alt="jla-Logo"> <img class="h-20 desktop:h-auto desktop:px-12 desktop:pb-4 desktop:pt-8" src="/static/logo/JLA.png" alt="jla-Logo">
<h1 class="px-3 py-2 pb-4 text-5xl font-bold text-center"> <h1 class="px-3 py-2 pb-4 text-5xl font-bold text-center">
{{ config.title }} {{ config.title }}
</h1> </h1>

View File

@@ -1,21 +1,9 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="de" dir="ltr" class="h-full"> <html lang="de" dir="ltr" class="h-full">
<head> <head>
<link rel="canonical" href="{{ config.url }}{{ page.url }}">
<link rel="stylesheet" href="/css/output.css" >
<title> <title>
{% if title and title != 'Home' %}{{title}} - {% endif %}{{ config.title }}</title> {% if title and title != 'Home' %}{{title}} - {% endif %}{{ config.title }}</title>
<!-- Icons -->
<!-- Enable if favicons installed into the static/img/ directory -->
{# <link rel="shortcut icon" type="image/png" href="/images/x16-favicon.png" sizes="16x16" />
<link rel="shortcut icon" type="image/png" href="/images/x32-favicon.png" sizes="32x32" />
<link rel="shortcut icon" type="image/png" href="/images/x64-favicon.png" sizes="64x64" />#}
<link rel="shortcut icon" type="image/png" href="/favicon.png"/>
<link rel="apple-touch-icon" type="image/png" href="/favicon.png"/>
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery.mark.min.js"></script>
<!-- Meta --> <!-- Meta -->
<meta name="description" content="{% if description %}{{ description }}{% else %}{{ config.description }}{% endif %}"> <meta name="description" content="{% if description %}{{ description }}{% else %}{{ config.description }}{% endif %}">
@@ -24,6 +12,19 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Language" content="en"> <meta http-equiv="Content-Language" content="en">
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="canonical" href="{{ config.url }}{{ page.url }}">
<!-- Resources -->
<!-- Enable if favicons installed into the static/img/ directory -->
{# <link rel="shortcut icon" type="image/png" href="/images/x16-favicon.png" sizes="16x16" />
<link rel="shortcut icon" type="image/png" href="/images/x32-favicon.png" sizes="32x32" />
<link rel="shortcut icon" type="image/png" href="/images/x64-favicon.png" sizes="64x64" />#}
<link rel="shortcut icon" type="image/png" href="/static/favicon.png"/>
<link rel="apple-touch-icon" type="image/png" href="/static/favicon.png"/>
<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/jquery.mark.min.js"></script>
<link rel="stylesheet" href="/static/css/output.css" >
<!-- Facebook --> <!-- Facebook -->
<meta property="og:title" content="{% if (title != 'Home') %}{{title}} - {% endif %}{{ config.title }}"> <meta property="og:title" content="{% if (title != 'Home') %}{{title}} - {% endif %}{{ config.title }}">