Browse Source

restructured project (closes #5)

pull/21/head
Samuel Philipp 2 months ago
parent
commit
c89867c3d9
40 changed files with 19 additions and 35 deletions
  1. +4
    -4
      .eleventy.js
  2. +1
    -1
      package.json
  3. +0
    -8
      sites/de/404.md
  4. +0
    -8
      sites/en/404.md
  5. +1
    -1
      src/_data/services.json
  6. +1
    -1
      src/_includes/layouts/services.njk
  7. +12
    -12
      src/_includes/services-extended.html

+ 4
- 4
.eleventy.js View File

@ -1,20 +1,20 @@
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation");
module.exports = function(eleventyConfig) {
eleventyConfig.addWatchTarget("./scss/");
eleventyConfig.addWatchTarget("./src/scss/");
eleventyConfig.addPlugin(eleventyNavigationPlugin);
eleventyConfig.setUseGitIgnore(false);
eleventyConfig.addPassthroughCopy({
"img": "img",
"font": "font",
"src/img": "img",
"src/font": "font",
"node_modules/@fortawesome/fontawesome-free/webfonts/": "font",
"node_modules/flag-icon-css/flags/4x3/(de|us)*": "flags"
});
return {
dir: {
input: "sites",
input: "src",
includes: "_includes",
layouts: "_includes/layouts",
output: "dist"

+ 1
- 1
package.json View File

@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "website for sp-codes.de",
"scripts": {
"compile-sass": "node-sass --output-style compressed --importer=node_modules/node-sass-tilde-importer scss/main.scss dist/css/main.css",
"compile-sass": "node-sass --output-style compressed --importer=node_modules/node-sass-tilde-importer src/scss/main.scss dist/css/main.css",
"watch:eleventy": "eleventy --serve",
"watch:sass": "npm run compile-sass -- --watch",
"start": "npm-run-all compile-sass --parallel watch:*",

+ 0
- 8
sites/de/404.md View File

@ -1,8 +0,0 @@
---
layout: base.njk
key: 404
title: Nicht gefunden
---
# Nicht gefunden
Diese Seite existiert (noch) nicht. Schau später nochmal vorbei, oder fang von vorne an: [Home](/{{locale}}/)

+ 0
- 8
sites/en/404.md View File

@ -1,8 +0,0 @@
---
layout: base.njk
key: 404
title: Not Found
---
# Not Found
This page does not exist (yet). Come back later or take a look at the beginning: [Home](/{{locale}}/)

sites/_data/services.json → src/_data/services.json View File


sites/_includes/layouts/services.njk → src/_includes/layouts/services.njk View File


sites/_includes/services-extended.html → src/_includes/services-extended.html View File


Loading…
Cancel
Save