Structure initiale
commit
e0ac6488eb
@ -0,0 +1,19 @@
|
|||||||
|
const { DateTime } = require("luxon");
|
||||||
|
|
||||||
|
module.exports = function (eleventyConfig) {
|
||||||
|
eleventyConfig.addPassthroughCopy("./src/css/styles.css");
|
||||||
|
eleventyConfig.addPassthroughCopy("./src/img");
|
||||||
|
|
||||||
|
eleventyConfig.addFilter("readableDate", (dateObj) => {
|
||||||
|
return DateTime.fromJSDate(dateObj, { zone: "utc" })
|
||||||
|
.setLocale("fr")
|
||||||
|
.toFormat("dd LLL yyyy");
|
||||||
|
});
|
||||||
|
|
||||||
|
return {
|
||||||
|
dir: {
|
||||||
|
input: "src",
|
||||||
|
output: "public",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
};
|
@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "npm"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "daily"
|
@ -0,0 +1,7 @@
|
|||||||
|
node_modules/
|
||||||
|
|
||||||
|
public/
|
||||||
|
|
||||||
|
src/css/styles.css
|
||||||
|
|
||||||
|
.dccache
|
@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2020 Marc Amos
|
||||||
|
|
||||||
|
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,3 @@
|
|||||||
|
[build]
|
||||||
|
publish = "public/"
|
||||||
|
command = "npm run build"
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,36 @@
|
|||||||
|
{
|
||||||
|
"name": "jet",
|
||||||
|
"version": "2.0.0",
|
||||||
|
"description": "It's (j)ust (e)leventy and (t)ailwind … OK, and a few other things; it's still *really* small though.",
|
||||||
|
"scripts": {
|
||||||
|
"clean": "rimraf public src/css/styles.css",
|
||||||
|
"dev": "npm run clean && postcss src/css/tailwind.css > src/css/styles.css && eleventy --serve",
|
||||||
|
"build": "npm run clean && NODE_ENV=production postcss src/css/tailwind.css > src/css/styles.css && eleventy"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://marcamos@github.com/marcamos/jet.git"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"eleventy",
|
||||||
|
"11ty",
|
||||||
|
"tailwind",
|
||||||
|
"tailwindcss",
|
||||||
|
"purgecss"
|
||||||
|
],
|
||||||
|
"author": "marc amos",
|
||||||
|
"license": "ISC",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/marcamos/jet/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://github.com/marcamos/jet#readme",
|
||||||
|
"devDependencies": {
|
||||||
|
"@11ty/eleventy": "^0.11.1",
|
||||||
|
"autoprefixer": "^10.2.5",
|
||||||
|
"cssnano": "^4.1.10",
|
||||||
|
"postcss": "^8.2.8",
|
||||||
|
"postcss-cli": "^8.3.1",
|
||||||
|
"rimraf": "^3.0.2",
|
||||||
|
"tailwindcss": "^2.0.4"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
const tailwindcss = require('tailwindcss');
|
||||||
|
const cssnano = require('cssnano');
|
||||||
|
const autoprefixer = require('autoprefixer');
|
||||||
|
const plugins = [tailwindcss(), autoprefixer(), cssnano()];
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
plugins
|
||||||
|
};
|
@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
layout: base.html
|
||||||
|
title: Changelog - Sans.pub
|
||||||
|
---
|
||||||
|
|
||||||
|
<div class="max-w-lg mx-auto mt-20 px-4">
|
||||||
|
<h1 class="font-semibold text-6xl mb-6">Changelog</h1>
|
||||||
|
<p class="text-gray-500">
|
||||||
|
Nouveautés, mises à jour et améliorations apportées à Sans.pub
|
||||||
|
</p>
|
||||||
|
<p class="text-xs underline mt-2">
|
||||||
|
<a href="/">< Retourner à l'accueil</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{%- for changelog in collections.changelog -%}
|
||||||
|
<hr class="w-11/12 border-gray-200 mx-auto my-16" />
|
||||||
|
<div class="max-w-lg mt-6 mx-auto">
|
||||||
|
<h2 class="text-3xl">{{ changelog.data.title }}</h2>
|
||||||
|
<p class="mb-6 text-gray-500 text-sm font-extralight">
|
||||||
|
{{changelog.data.date | readableDate}}
|
||||||
|
</p>
|
||||||
|
|
||||||
|
{{changelog.templateContent}}
|
||||||
|
</div>
|
||||||
|
{%- endfor -%}
|
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"tags": ["changelog"]
|
||||||
|
}
|
@ -0,0 +1,5 @@
|
|||||||
|
@tailwind base;
|
||||||
|
|
||||||
|
@tailwind components;
|
||||||
|
|
||||||
|
@tailwind utilities;
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,11 @@
|
|||||||
|
module.exports = {
|
||||||
|
purge: {
|
||||||
|
content: ['./src/**/*.html']
|
||||||
|
},
|
||||||
|
darkMode: false, // or 'media' or 'class'
|
||||||
|
theme: {
|
||||||
|
extend: {},
|
||||||
|
},
|
||||||
|
variants: {},
|
||||||
|
plugins: [],
|
||||||
|
}
|
Loading…
Reference in New Issue