commit
e0ac6488eb
17 changed files with 8092 additions and 0 deletions
@ -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 @@ |
|||
v14 |
@ -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,36 @@ |
|||
# jet 🛩 |
|||
It’s (j)ust (e)leventy and (t)ailwind … OK, and a few other things; it’s still *really* small though. |
|||
|
|||
* [View on Netlify](https://marcamos-jet.netlify.com/) |
|||
* [View on GitHub](https://github.com/marcamos/jet#readme) |
|||
|
|||
[](https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2Fmarcamos%2Fjet.git) [](https://app.netlify.com/start/deploy?repository=https://github.com/marcamos/jet) |
|||
|
|||
## Goal |
|||
[Eleventy](https://www.11ty.dev/) and [Tailwind CSS](https://tailwindcss.com/) are my favorite things right now. |
|||
|
|||
While learning how to use Eleventy, I came across [a few starter projects](https://www.11ty.dev/docs/starter/) that combine it with Tailwind CSS, which is _amazing_, but they also come with so much more. |
|||
|
|||
Personally, I _only_ want Eleventy and Tailwind … and, taking the desire for simplicity one step further, I only want to use them via NPM scripts. |
|||
|
|||
So, I made this and it seems to work 🤷♀️ |
|||
|
|||
## How you can use it |
|||
1. [Create your own new repo from jet’s template](https://github.com/marcamos/jet/generate), or [clone this one](https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/cloning-a-repository) |
|||
2. Install dependencies: `npm i` |
|||
3. Start development: `npm run dev` |
|||
4. Visit http://localhost:8080 to see your work-in-progress |
|||
5. Do super-fun Eleventy and Tailwind things |
|||
6. When you’re done: `npm run build` |
|||
7. Host your project somewhere ([Netlify](https://www.netlify.com/) and [Vercel](https://vercel.com/) are nice options) |
|||
|
|||
That’s it 🕺 |
|||
|
|||
## A Note on Tailwind CSS v2.x |
|||
**As of November 25th, 2020, jet has been updated to utilize Tailwind CSS v2.0.** If you want to upgrade your project from Tailwind CSS v1.x to v2.x, the Tailwind folks have a _wonderful_ [Upgrade Guide](https://tailwindcss.com/docs/upgrading-to-v2) you should review. |
|||
|
|||
|
|||
## Disclaimer |
|||
I _originally_ built this in about an hour through trial-and-error, so I'm sure there's _a lot_ of room for improvement. |
|||
|
|||
If you try it and find issues, or think of improvements, please [file an issue](https://github.com/marcamos/jet/issues/new) and/or [create a pull request](https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request). |
@ -0,0 +1,3 @@ |
|||
[build] |
|||
publish = "public/" |
|||
command = "npm run build" |
File diff suppressed because it is too large
@ -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,15 @@ |
|||
<!doctype html> |
|||
<html lang="en"> |
|||
<head> |
|||
<meta charset="utf-8"> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|||
<meta name="description" content="It’s (j)ust (e)leventy and (t)ailwind … OK, and a few other things; it’s still really small though."> |
|||
<title>{{ title }}</title> |
|||
<link rel="stylesheet" href="/css/styles.css"> |
|||
</head> |
|||
<body class="font-sans"> |
|||
<main> |
|||
{{ content | safe }} |
|||
</main> |
|||
</body> |
|||
</html> |
@ -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,25 @@ |
|||
--- |
|||
title: Mises à jour et nouveau site |
|||
date: 2021-03-19 |
|||
permalink: false |
|||
--- |
|||
|
|||
## Nouveau site |
|||
|
|||
C'est chose faite : sans.pub a un nouveau site ! |
|||
|
|||
## Mises à jour |
|||
|
|||
Les logiciels suivants ont été mis à jour : |
|||
|
|||
### Nextcloud 21 |
|||
|
|||
La version 21 est la dernière version de l'outil.\ |
|||
Elle améliore les performances générales, vous devriez voir une navigation plus rapide dans vos dossiers. |
|||
|
|||
Cette version ajoute également de nouvelles fonctionnalités collaboratives.\ |
|||
Un tableau blanc vous permet de collaborer.\ |
|||
Les fichiers textes permettent une meilleure édition collaborative, notamment par l'utilisation de couleurs afin de déterminer qui a effectué des modifications.\ |
|||
Cela se rapproche encore un peu plus des [Pads](https://pad.sans.pub/) que vous connaissez. |
|||
|
|||
[Voir plus de détails](https://www.cachem.fr/nextcloud-21-disponible/) |
@ -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