eleventy init for tdf website

Pascal 7 days ago
parent 72c2df18ea
commit 617e7d8765
  1. 63
      .eleventy.js
  2. 3
      .gitignore
  3. 2
      .prettierignore
  4. 14
      .prettierrc
  5. 21
      LICENSE
  6. 16
      README.md
  7. 21
      THIRD_PARTY_LICENSES.md
  8. 0
      css/styles-4.7.css
  9. 4
      netlify.toml
  10. 1877
      package-lock.json
  11. 33
      package.json
  12. 0
      public/style/bg.png
  13. 0
      public/style/logo.png
  14. 0
      public/style/reset.css
  15. 0
      public/style/style.css
  16. 0
      public/style/ufo.png
  17. 0
      public/tdf1/index.html
  18. 0
      public/tdf1/index_files/11317(1).png
  19. 0
      public/tdf1/index_files/11317(2).png
  20. 0
      public/tdf1/index_files/11317(3).png
  21. 0
      public/tdf1/index_files/11317(4).png
  22. 0
      public/tdf1/index_files/11317(5).png
  23. 0
      public/tdf1/index_files/11317.png
  24. 0
      public/tdf1/index_files/11318(1).png
  25. 0
      public/tdf1/index_files/11318(2).png
  26. 0
      public/tdf1/index_files/11318(3).png
  27. 0
      public/tdf1/index_files/11318(4).png
  28. 0
      public/tdf1/index_files/11318(5).png
  29. 0
      public/tdf1/index_files/11318.png
  30. 0
      public/tdf1/index_files/11319(1).png
  31. 0
      public/tdf1/index_files/11319(2).png
  32. 0
      public/tdf1/index_files/11319(3).png
  33. 0
      public/tdf1/index_files/11319(4).png
  34. 0
      public/tdf1/index_files/11319(5).png
  35. 0
      public/tdf1/index_files/11319.png
  36. 0
      public/tdf1/index_files/BMBF_de.png
  37. 0
      public/tdf1/index_files/CCTLogo.webp
  38. 0
      public/tdf1/index_files/amnesty.webp
  39. 0
      public/tdf1/index_files/app.css
  40. 0
      public/tdf1/index_files/app.js
  41. 0
      public/tdf1/index_files/crypto.png
  42. 0
      public/tdf1/index_files/daasi.webp
  43. 0
      public/tdf1/index_files/embed-31abec0e3f0382e4d60ae9f3056d454f04784e6907e8229bf615fb3dc2c74374.css
  44. 0
      public/tdf1/index_files/embed-5878c36753678fb0ad8598a649abf089144996f7a60c6992a16ebf41349273f8.js
  45. 0
      public/tdf1/index_files/embed.html
  46. 0
      public/tdf1/index_files/fablab.webp
  47. 0
      public/tdf1/index_files/franz.webp
  48. 0
      public/tdf1/index_files/glassroom.svg
  49. 0
      public/tdf1/index_files/iconet.webp
  50. 0
      public/tdf1/index_files/kimaker.webp
  51. 0
      public/tdf1/index_files/logo.png
  52. 0
      public/tdf1/index_files/marker-icon-3d253116ec4ba0e1f22a01cdf1ff7f120fa4d89a6cd0933d68f12951d19809b4.png
  53. 0
      public/tdf1/index_files/marker-shadow-a2d94406ba198f61f68a71ed8f9f9c701122c0c33b775d990edceae4aece567f.png
  54. 0
      public/tdf1/index_files/matomo.php
  55. 0
      public/tdf1/index_files/oikos.jpg
  56. 0
      public/tdf1/index_files/piraten.webp
  57. 0
      public/tdf1/index_files/prototype-fund.svg
  58. 0
      public/tdf1/index_files/shedhalle.png
  59. 0
      public/tdf1/index_files/tddf.webp
  60. 0
      public/tdf1/index_files/wit.webp
  61. 0
      public/tdf2/font/TitilliumWeb-Bold.ttf
  62. 0
      public/tdf2/font/TitilliumWeb-Regular.ttf
  63. 0
      public/tdf2/image/CCTLogo.webp
  64. 0
      public/tdf2/image/assemblies.png
  65. 0
      public/tdf2/image/costs.png
  66. 0
      public/tdf2/image/daasi_logo.png
  67. 0
      public/tdf2/image/dates.png
  68. 0
      public/tdf2/image/event.png
  69. 0
      public/tdf2/image/kims_logo.png
  70. 0
      public/tdf2/image/neon-scene.png
  71. 0
      public/tdf2/image/no_budget_logo.svg
  72. 0
      public/tdf2/image/pagina_logo.png
  73. 0
      public/tdf2/image/participate.png
  74. 0
      public/tdf2/image/shedhalle.png
  75. 0
      public/tdf2/image/shedhalle_logo.png
  76. 0
      public/tdf2/image/tdf-web-wide.png
  77. 0
      public/tdf2/image/tuebingen_logo.png
  78. 0
      public/tdf2/index.html
  79. 0
      public/tdf2/styles.css
  80. 0
      public/tdf3/en/imprint.html
  81. 0
      public/tdf3/en/index.html
  82. 0
      public/tdf3/en/participate.html
  83. 0
      public/tdf3/en/recap.html
  84. 0
      public/tdf3/font/TitilliumWeb-Bold.ttf
  85. 0
      public/tdf3/font/TitilliumWeb-Regular.ttf
  86. 0
      public/tdf3/image/01.jpg
  87. 0
      public/tdf3/image/02.jpg
  88. 0
      public/tdf3/image/03.jpg
  89. 0
      public/tdf3/image/04.jpg
  90. 0
      public/tdf3/image/05.jpg
  91. 0
      public/tdf3/image/06.jpg
  92. 0
      public/tdf3/image/07.jpg
  93. 0
      public/tdf3/image/08.jpg
  94. 0
      public/tdf3/image/09.jpg
  95. 0
      public/tdf3/image/10.jpg
  96. 0
      public/tdf3/image/11.jpg
  97. 0
      public/tdf3/image/12.jpg
  98. 0
      public/tdf3/image/AVAT_logo.png
  99. 0
      public/tdf3/image/CCTLogo.webp
  100. 0
      public/tdf3/image/assemblies.png
  101. Some files were not shown because too many files have changed in this diff Show More

@ -0,0 +1,63 @@
const i18n = require('eleventy-plugin-i18n');
const translations = require('./src/_data/i18n');
module.exports = function (eleventyConfig) {
// Plugins
eleventyConfig.addPlugin(i18n, {
defaultLanguage: 'de',
localesDirectory: 'src',
// optional: customize the URL structure
urlPrefix: locale => (locale === 'de' ? '' : `/${locale}`),
translations,
fallbackLocales: {
'*': 'de'
}
});
// TEMP demo of what could be an i18n-aware plural package?
eleventyConfig.addFilter('pluralize', function (term, count = 1) {
// Poorman's pluralize for now...
return count === 1 ? term : `${term}s`;
});
eleventyConfig.addFilter('localizedPermalink', (slug, locale) => {
const newPath = locale === 'de' ? `${slug.slice(3)}.html` : `${slug}.html`;
return `${newPath}`;
});
// these folders will be copied into webroot
// e.g. /image => /_site/image
eleventyConfig.addPassthroughCopy('image');
eleventyConfig.addPassthroughCopy('css');
eleventyConfig.addPassthroughCopy('font');
// contents of public folder will be copied into webroot
// e.g. /public/something.html => /_site/something.html
eleventyConfig.addPassthroughCopy({ "public": "." });
// Browsersync
// Redirect from root to default language root during --serve
// Can also be handled by netlify.toml?
eleventyConfig.setBrowserSyncConfig({
callbacks: {
ready: function (err, bs) {
bs.addMiddleware('*', (req, res) => {
if (req.url === '/') {
res.writeHead(302, {
location: '/en/'
});
res.end();
}
});
}
}
});
// Configuration
return {
dir: {
input: 'src'
},
markdownTemplateEngine: 'njk'
};
};

3
.gitignore vendored

@ -22,6 +22,9 @@ Icon
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
.netlify
_site
node_modules
# Directories potentially created on remote AFP share
.AppleDB

@ -0,0 +1,2 @@
node_modules
_site

@ -0,0 +1,14 @@
{
"singleQuote": true,
"trailingComma": "none",
"arrowParens": "avoid",
"overrides": [
{
"files": "*.css",
"options": {
"printWidth": 140,
"singleQuote": false
}
}
]
}

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2025 Chaostreff Tübingen e. V.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

@ -0,0 +1,16 @@
# TDF Eleventy
Based on the demo site [`eleventy-plugin-i18n-demo`](https://github.com/adamduncan/eleventy-plugin-i18n-demo).
# Setup
Install
`npm install`
Run local webserver
`npx @11ty/eleventy --serve`
Note:
the index.js containing translations won't automatically be updated, you may need to restart the webserver for it to reflect the changes

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2020 Adam Duncan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

@ -0,0 +1,4 @@
[[redirects]]
from = "/"
to = "/en"
status = 301

1877
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -0,0 +1,33 @@
{
"name": "eleventy-plugin-i18n-demo",
"version": "0.1.0",
"description": "Demo site for eleventy-plugin-i18n",
"main": "index.js",
"scripts": {
"start": "npm run serve",
"serve": "cross-env ELEVENTY_ENV=development npx eleventy --serve",
"build": "cross-env ELEVENTY_ENV=production npx eleventy",
"debug": "cross-env DEBUG=* npx eleventy"
},
"keywords": [],
"repository": {
"type": "git",
"url": "git+https://github.com/adamduncan/eleventy-plugin-i18n-demo.git"
},
"author": "Adam Duncan <mail@adamduncandesigns.com> (https://adamduncandesigns.com)",
"bugs": {
"url": "https://github.com/adamduncan/eleventy-plugin-i18n-demo/issues"
},
"homepage": "https://github.com/adamduncan/eleventy-plugin-i18n-demo#readme",
"license": "MIT",
"devDependencies": {
"@11ty/eleventy": "^3.1.2",
"cross-env": "^7.0.2",
"lodash.get": "^4.4.2",
"prettier": "^2.0.5",
"templite": "^1.1.0"
},
"dependencies": {
"eleventy-plugin-i18n": "^0.1.3"
}
}

Before

Width:  |  Height:  |  Size: 972 KiB

After

Width:  |  Height:  |  Size: 972 KiB

Before

Width:  |  Height:  |  Size: 469 KiB

After

Width:  |  Height:  |  Size: 469 KiB

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

Before

Width:  |  Height:  |  Size: 8.7 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Before

Width:  |  Height:  |  Size: 43 B

After

Width:  |  Height:  |  Size: 43 B

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 1.6 MiB

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 1.6 MiB

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Before

Width:  |  Height:  |  Size: 2.0 MiB

After

Width:  |  Height:  |  Size: 2.0 MiB

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 1.6 MiB

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Before

Width:  |  Height:  |  Size: 720 KiB

After

Width:  |  Height:  |  Size: 720 KiB

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Before

Width:  |  Height:  |  Size: 293 KiB

After

Width:  |  Height:  |  Size: 293 KiB

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 104 KiB

Before

Width:  |  Height:  |  Size: 115 KiB

After

Width:  |  Height:  |  Size: 115 KiB

Before

Width:  |  Height:  |  Size: 163 KiB

After

Width:  |  Height:  |  Size: 163 KiB

Before

Width:  |  Height:  |  Size: 144 KiB

After

Width:  |  Height:  |  Size: 144 KiB

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 128 KiB

Before

Width:  |  Height:  |  Size: 178 KiB

After

Width:  |  Height:  |  Size: 178 KiB

Before

Width:  |  Height:  |  Size: 157 KiB

After

Width:  |  Height:  |  Size: 157 KiB

Before

Width:  |  Height:  |  Size: 179 KiB

After

Width:  |  Height:  |  Size: 179 KiB

Before

Width:  |  Height:  |  Size: 215 KiB

After

Width:  |  Height:  |  Size: 215 KiB

Before

Width:  |  Height:  |  Size: 96 KiB

After

Width:  |  Height:  |  Size: 96 KiB

Before

Width:  |  Height:  |  Size: 130 KiB

After

Width:  |  Height:  |  Size: 130 KiB

Before

Width:  |  Height:  |  Size: 148 KiB

After

Width:  |  Height:  |  Size: 148 KiB

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save