Commit 44b7fb56 authored by Antoine Derouin's avatar Antoine Derouin 🤘
Browse files

[Initial] Install Hugo & Theme

parents
Pipeline #408 passed with stages
in 44 seconds
last 99 versions
> 1%
IE 11
maintained node versions
not dead
node_modules
.DS_Store
.env
public/
resources/_gen/
themes/artherapee/assets/svg/optimized/
themes/artherapee/assets/svg/symbols/
themes/artherapee/static/favicons/
themes/artherapee/layouts/partials/symbols.svg.html
\ No newline at end of file
image: iacmac/alpine-hugo-npm
variables:
GIT_SUBMODULE_STRATEGY: recursive
pages:
script:
- npm install
- npx gulp svg
- npx gulp favicon
- hugo
artifacts:
paths:
- public
only:
- develop
public/**/*
dist/**/*
{
"extends": [
"stylelint-config-standard",
"stylelint-config-recess-order"
],
"plugins": [
"stylelint-no-px"
],
"rules": {
"no-descending-specificity": null,
"number-leading-zero": "never",
"no-eol-whitespace": [
true,
{
"ignore": [
"empty-lines"
]
}
],
"at-rule-empty-line-before": [
"always",
{
"ignore": [
"inside-block",
"blockless-after-same-name-blockless",
"blockless-after-blockless"
]
}
],
"meowtec/no-px": [
true,
{
"ignore": [
"1px",
"$seize",
"$base-font-size",
"$grid-breakpoints"
],
"ignoreFunctions": [
"rem",
"#{rem"
]
}
],
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": [
"extend",
"at-root",
"debug",
"warn",
"error",
"if",
"else",
"for",
"each",
"while",
"mixin",
"include",
"content",
"return",
"function"
]
}
],
"selector-type-no-unknown": [
true,
{
"ignoreTypes": [
"ngx-smart-modal",
"ngx-tab",
"ngx-datatable",
"datatable-header-cell",
"my-date-range-picker",
"my-date-picker",
"ng-select"
]
}
]
}
}
\ No newline at end of file
![ART Francophone](themes/artherapee/assets/favicon.png)
# ART Francophone
Site statique à base de [HUGO](https://gohugo.io/).
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: false
---
theme: artherapee
languageCode: fr-fr
DefaultContentLanguage: fr
baseURL: /
enableRobotsTXT: true
title: ART Francophone
params:
sitename: 🚧DEV ARTherapee.fr
Description: "Bienvenue sur la communauté francophone de ART. Aide, tutos, échanges…"
\ No newline at end of file
baseURL: https://antoined.page.kher.nl/artherapee
params:
sitename: ARTherapee.fr
const { watch, src, dest, series, parallel } = require("gulp");
const rename = require("gulp-rename");
const del = require("del");
const svgmin = require("gulp-svgmin");
const svgSprite = require("gulp-svg-sprites");
const realFavicon = require ('gulp-real-favicon');
// const fs = require('fs');
// Dossiers principaux
const dir = {
app: "themes/artherapee/", // dossier de travail
assets: "themes/artherapee/assets/",
theme: "themes/artherapee/static/", // dossier final du thème
nodeModules: "node_modules/",
favicons: "themes/artherapee/static/favicons/"
};
// Chemins spécifiques
const paths = {
svg: {
src: dir.assets + "svg/src/**/*.svg",
optimized: dir.assets + "svg/optimized/",
symbols: dir.assets + "svg/symbols/",
dest: dir.app + "layouts/partials/"
},
favicon: {
src: dir.assets + "favicon.png",
dest: dir.favicons,
datafile: dir.favicons + "faviconData.json",
urlManifest: '/app/images/favicons'
}
};
//------------------------------------------------------------
// Conversion des SVG (pictos et/ou autres) en symbol
//------------------------------------------------------------
// Clean le dossier 'optimized' avant d'effectuer la tâche svgOptimize
function cleanOptimize() {
return del(paths.svg.optimized, {
force: true
});
}
// Optimise les SVG (nettoyage)
function svgOptimize() {
return src(paths.svg.src)
.pipe(
svgmin({
plugins: [
{ removeViewBox: false },
{ convertPathData: { noSpaceAfterFlags: false } },
{ mergePaths: { noSpaceAfterFlags: false } },
// { removeAttrs: { attrs: '(fill|stroke|class|id)' } },
// { removeStyleElement: true }
]
})
)
.pipe(dest(paths.svg.optimized));
}
// Création des sprites SVG en mode symbols
function svgSymbols() {
return src(paths.svg.optimized + "**/*.svg")
.pipe(
svgSprite({
mode: "symbols",
selector: "i-%f",
preview: {
// Création du fichier de preview html
symbols: "preview.html"
}
})
)
.pipe(dest(paths.svg.symbols));
}
// Transforme le fichier symbols.svg en fichier PHP pour pouvoir l'inclure en template_part
function transformSpriteFile() {
return src(paths.svg.symbols + "svg/symbols.svg")
.pipe(rename("symbols.svg.html"))
.pipe(dest(paths.svg.dest));
}
//------------------------------------------------------------
// Real Favicon Generator
//------------------------------------------------------------
// Generate the icons. This task takes a few seconds to complete.
// You should run it at least once to create the icons. Then,
// you should run it whenever RealFaviconGenerator updates its
// package (see the check-for-favicon-update task below).
function favicon(done) {
realFavicon.generateFavicon({
masterPicture: paths.favicon.src,
dest: paths.favicon.dest,
iconsPath: "/",
design: {
ios: {
pictureAspect: 'noChange',
assets: {
ios6AndPriorIcons: false,
ios7AndLaterIcons: false,
precomposedIcons: false,
declareOnlyDefaultIcon: true
}
},
desktopBrowser: {},
windows: {
pictureAspect: 'noChange',
backgroundColor: '#000000',
onConflict: 'override',
assets: {
windows80Ie10Tile: false,
windows10Ie11EdgeTiles: {
small: false,
medium: true,
big: false,
rectangle: false
}
}
},
androidChrome: {
pictureAspect: 'noChange',
themeColor: '#ffffff',
manifest: {
startUrl: paths.favicon.urlManifest,
display: 'standalone',
orientation: 'notSet',
onConflict: 'override',
declared: true
},
assets: {
legacyIcon: false,
lowResolutionIcons: false
}
},
safariPinnedTab: {
pictureAspect: 'silhouette',
themeColor: '#5bbad5'
}
},
settings: {
scalingAlgorithm: 'Mitchell',
errorOnImageTooSmall: false,
readmeFile: false,
htmlCodeFile: false,
usePathAsIs: false
},
markupFile: paths.favicon.datafile
}, function() {
done();
});
};
//------------------------------------------------------------
// WATCHES
//------------------------------------------------------------
function watches() {
watch(paths.svg.src, svg);
watch(paths.favicon.src, favicon);
}
//------------------------------------------------------------
// TASKS
//------------------------------------------------------------
const svg = series(cleanOptimize, svgOptimize, svgSymbols, transformSpriteFile);
exports.svg = svg;
exports.watches = watches;
exports.favicon = favicon;
exports.default = parallel(
favicon,
svg
);
This diff is collapsed.
{
"name": "buddge",
"version": "1.0.0",
"main": "index.js",
"repository": "https://gitlab.biig.fr/plateforme-leads/buddge",
"author": "Biig° <integration@biig.fr>",
"dependencies": {
"include-media": "^1.4.9",
"normalize-scss": "^7.0.0",
"postcss-syntax": "^0.36.2"
},
"devDependencies": {
"del": "^5.1.0",
"eslint": "^5.16.0",
"eslint-config-google": "^0.13.0",
"gulp": "^4.0.2",
"gulp-real-favicon": "^0.3.2",
"gulp-rename": "^1.4.0",
"gulp-svg-sprites": "^4.1.2",
"gulp-svgmin": "^2.2.0",
"prettier-eslint": "^9.0.0",
"prettier-stylelint": "^0.4.2",
"stylelint": "^10.1.0",
"stylelint-config-recess-order": "^2.0.2",
"stylelint-config-standard": "^18.3.0",
"stylelint-no-px": "^0.12.1"
}
}
This diff is collapsed.
var slider = tns({
container: "#carousel",
mode: "carousel",
axis: "horizontal",
slideBy: 'page',
navPosition: "bottom",
items: 1,
controls: false,
arrowKeys: true,
autoplay: true,
mouseDrag: true,
autoplayButtonOutput: false,
});
\ No newline at end of file
*,
*::before,
*::after {
box-sizing: inherit;
}
::selection {
color: $color-font;
background: $color-primary;
}
::-moz-selection {
color: $color-font;
background: $color-primary;
}
html {
box-sizing: border-box;
color: $color-font;
background-color: $color-background;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: auto;
}
html,
body {
min-height: 100%;
}
body {
font-family: $font-primary;
}
a {
color: $color-primary;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
.container {
width: 100%;
max-width: $container-width;
margin: auto;
}
// List of components
@import "components/tiny-slider";
@import "components/embed-responsive";
@import "components/mark";
@import "components/btn";
@import "components/skip-links";
@import "components/title";
// Core
@import "init/mixins";
@import "init/variables";
.btn {
position: relative;
display: block;
width: rem(500px);
max-width: 75%;
padding: rem(20px);
margin: rem(15px) auto;
font-size: 1.6em;
text-align: center;
border: solid .1em $color-primary;
border-radius: .25em;
transition-duration: .3s;
&:hover {
color: $color-font;
text-decoration: none;
background-color: $color-primary;
}
&__icon {
top: 0;
display: block;
width: 100%;
padding: 0 25%;
fill: currentColor;
@include media(">=md") {
position: absolute;
width: 1.25em;
height: 100%;
padding: 0;
}
}
&--discord {
color: $discord;
border-color: $discord;
&:hover {
background-color: $discord;
}
}
&--yellow {
color: $yellow;
border-color: $yellow;
&:hover {
background-color: $yellow;
}
}
&--green {
color: $green;
border-color: $green;
&:hover {
background-color: $green;
}
}
}
.boutons {
@include media(">=md") {
display: flex;
}
}
.embed-responsive {
position: relative;
display: block;
width: 100%;
padding: 0;
overflow: hidden;
&::before {
display: block;
content: "";
}
.embed-responsive-item,
iframe,
embed,
object,
video {
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}
&-16by9::before {
padding-top: 56.25%;
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment