Skip to content

Commit

Permalink
Merge pull request #41 from ClubCedille/antoinebou12-patch-1
Browse files Browse the repository at this point in the history
Antoinebou12 patch 1
  • Loading branch information
antoinebou12 authored Jan 15, 2024
2 parents 7093747 + e723f71 commit db4cda9
Show file tree
Hide file tree
Showing 51 changed files with 3,192 additions and 2,009 deletions.
32 changes: 32 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const through = require('through2');
var path = {
src: {
html: "source/*.html",
blog: "source/blog/*.html",
others: "source/*.+(php|ico|png)",
htminc: "source/partials/**/*.htm",
incdir: "source/partials/",
Expand Down Expand Up @@ -57,6 +58,34 @@ gulp.task("html:build", function () {
}));
});

// Blog
gulp.task("blog:build", function () {
return gulp
.src(path.src.blog)
.pipe(plumber({
errorHandler: function (err) {
console.error('Error in plugin "' + err.plugin + '": ' + err.message);
this.emit('end');
}
}))
.pipe(through.obj(function (file, enc, cb) {
this.push(file);
cb();
}, function (cb) {
if (this._transformState.writechunk) {
console.log('Processing file:', this._transformState.writechunk.relative);
}
cb();
}))
.pipe(fileinclude({
basepath: path.src.incdir,
}))
.pipe(gulp.dest(path.build.dirDev))
.pipe(bs.reload({
stream: true,
}));
});

// SCSS
gulp.task("scss:build", function () {
return gulp
Expand Down Expand Up @@ -126,6 +155,7 @@ gulp.task("clean", function (cb) {
// Watch Task
gulp.task("watch:build", function () {
gulp.watch(path.src.html, gulp.series("html:build"));
gulp.watch(path.src.blog, gulp.series("blog:build"));
gulp.watch(path.src.htminc, gulp.series("html:build"));
gulp.watch(path.src.scss, gulp.series("scss:build"));
gulp.watch(path.src.js, gulp.series("js:build"));
Expand All @@ -139,6 +169,7 @@ gulp.task(
gulp.series(
"clean",
"html:build",
"blog:build",
"js:build",
"scss:build",
"images:build",
Expand All @@ -159,6 +190,7 @@ gulp.task(
"build",
gulp.series(
"html:build",
"blog:build",
"js:build",
"scss:build",
"images:build",
Expand Down
95 changes: 4 additions & 91 deletions source/blog-grid.html
Original file line number Diff line number Diff line change
@@ -1,103 +1,16 @@
@@include('blocks/scroller.htm')
@@include('header.htm')

@@include('blocks/navigation.html',{"blog":"active", "blogGrid":"active"})
@@include('blocks/navigation.html',{"blog":"active"})

@@include('blocks/page-title.htm', { "page-name": "Our blog", "title": "Blog articles" })
@@include('blocks/page-title.htm', { "page-name": "Blog", "title": "Articles" })

<section class="section blog-wrap bg-gray">
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-6 mb-5">
<div class="blog-item">
<img loading="lazy" src="images/blog/1.jpg" alt="blog" class="img-fluid rounded">

<div class="blog-item-content bg-white p-5">
<div class="blog-item-meta bg-gray pt-2 pb-1 px-3">
<span class="text-muted text-capitalize d-inline-block mr-3"><i class="ti-pencil-alt mr-2"></i>Creativity</span>
<span class="text-muted text-capitalize d-inline-block mr-3"><i class="ti-comment mr-2"></i>5 Comments</span>
<span class="text-black text-capitalize d-inline-block mr-3"><i class="ti-time mr-1"></i> 28th January</span>
</div>

<h3 class="mt-3 mb-3"><a href="blog-single.html">Improve design with typography?</a></h3>
<p class="mb-4">Non illo quas blanditiis repellendus laboriosam minima animi. Consectetur accusantium
pariatur repudiandae!</p>

<a href="blog-single.html" class="btn btn-small btn-main btn-round-full">Learn More</a>
</div>
</div>
</div>

<div class="col-lg-6 col-md-6 mb-5">
<div class="blog-item">
<img loading="lazy" src="images/blog/2.jpg" alt="blog" class="img-fluid rounded">

<div class="blog-item-content bg-white p-5">
<div class="blog-item-meta bg-gray pt-2 pb-1 px-3">
<span class="text-muted text-capitalize d-inline-block mr-3"><i class="ti-pencil-alt mr-2"></i>Design</span>
<span class="text-muted text-capitalize d-inline-block mr-3"><i class="ti-comment mr-2"></i>5 Comments</span>
<span class="text-black text-capitalize d-inline-block mr-3"><i class="ti-time mr-1"></i> 28th January</span>
</div>

<h3 class="mt-3 mb-3"><a href="blog-single.html">Interactivity connect consumer</a></h3>
<p class="mb-4">Non illo quas blanditiis repellendus laboriosam minima animi. Consectetur accusantium
pariatur repudiandae!</p>

<a href="blog-single.html" class="btn btn-small btn-main btn-round-full">Learn More</a>
</div>
</div>
</div>

<div class="col-lg-6 col-md-6 mb-5">
<div class="blog-item">
<img loading="lazy" src="images/blog/3.jpg" alt="blog" class="img-fluid rounded">

<div class="blog-item-content bg-white p-5">
<div class="blog-item-meta bg-gray pt-2 pb-1 px-3">
<span class="text-muted text-capitalize d-inline-block mr-3"><i class="ti-pencil-alt mr-2"></i>Community</span>
<span class="text-muted text-capitalize d-inline-block mr-3"><i class="ti-comment mr-2"></i>5 Comments</span>
<span class="text-black text-capitalize d-inline-block mr-3"><i class="ti-time mr-1"></i> 28th January</span>
</div>

<h3 class="mt-3 mb-3"><a href="blog-single.html">Marketing Strategy to bring more affect</a></h3>
<p class="mb-4">Non illo quas blanditiis repellendus laboriosam minima animi. Consectetur accusantium
pariatur repudiandae!</p>

<a href="blog-single.html" class="btn btn-small btn-main btn-round-full">Learn More</a>
</div>
</div>
</div>
<div class="col-lg-6 col-md-6 mb-5">
<div class="blog-item">
<img loading="lazy" src="images/blog/4.jpg" alt="blog" class="img-fluid rounded">

<div class="blog-item-content bg-white p-5">
<div class="blog-item-meta bg-gray pt-2 pb-1 px-3">
<span class="text-muted text-capitalize d-inline-block mr-3"><i class="ti-pencil-alt mr-2"></i>Marketing</span>
<span class="text-muted text-capitalize d-inline-block mr-3"><i class="ti-comment mr-2"></i>5 Comments</span>
<span class="text-black text-capitalize d-inline-block mr-3"><i class="ti-time mr-1"></i> 28th January</span>
</div>

<h3 class="mt-3 mb-3"><a href="blog-single.html">Marketing Strategy to bring more affect</a></h3>
<p class="mb-4">Non illo quas blanditiis repellendus laboriosam minima animi. Consectetur accusantium
pariatur repudiandae!</p>

<a href="blog-single.html" class="btn btn-small btn-main btn-round-full">Learn More</a>
</div>
</div>
</div>
</div>

<div class="row justify-content-center mt-5">
<div class="col-lg-6 text-center">
<nav class="navigation pagination d-inline-block">
<div class="nav-links">
<a class="prev page-numbers" href="#">Prev</a>
<span aria-current="page" class="page-numbers current">1</span>
<a class="page-numbers" href="#">2</a>
<a class="next page-numbers" href="#">Next</a>
</div>
</nav>
@@include('blocks/blog-item.htm', {"image_src": "images/blog/vol/nombre_de_vol_de_vehicule_moteur_par_annee_hua975f8a3d854aa424a332774bd6b821d_25312_1024x0_resize_q75_box.jpg", "date": "1 Janvier 2024", "title": "Étude des vols de voitures", "summary": "Montréal", "link": "vol-de-voiture.html"})
@@include('blocks/blog-item.htm', {"image_src": "images/blog/vol/nombre_de_vol_de_vehicule_moteur_par_annee_hua975f8a3d854aa424a332774bd6b821d_25312_1024x0_resize_q75_box.jpg", "date": "1 Janvier 2024", "title": "Expérimentation Des Indicateurs Technique", "summary": "Backtest", "link": "experimentation-indicator-technique.html"})
</div>
</div>
</div>
Expand Down
178 changes: 0 additions & 178 deletions source/blog-sidebar.html

This file was deleted.

Loading

0 comments on commit db4cda9

Please sign in to comment.