Ajout de template pour css, html et sh

This commit is contained in:
Yann 2022-01-27 15:28:19 +01:00
parent 0717b586f9
commit 50128c28c7
3 changed files with 33 additions and 0 deletions

15
data/tpl/header-css.tpl Normal file
View File

@ -0,0 +1,15 @@
# Reset (Source: https://css-tricks.com/notes-on-josh-comeaus-custom-css-reset/)
* {
margin: 0;
padding: 0;
}
html, body {
height: 100%;
}
img, picture, video, canvas, svg {
display: block;
max-width: 100%;
}
p, h1, h2, h3, h4, h5, h6 {
overflow-wrap: break-word;
}

12
data/tpl/header-html.tpl Normal file
View File

@ -0,0 +1,12 @@
<!doctype html>
<html lang='fr'>
<head>
¦ <meta charset='utf-8'>
¦ <title>Title</title>
¦ <link rel='stylesheet' href='style.css'>
</head>
<body>
<script src='myScript.js'></script>
</body>
</html>

6
data/tpl/header-sh.tpl Normal file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env sh
# exit on error
set -e
# no undefined variables
set -u