Skip to content

Commit

Permalink
wip: new gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
nadarbreicq committed Apr 22, 2024
1 parent 481a26c commit 7926754
Show file tree
Hide file tree
Showing 170 changed files with 90 additions and 20 deletions.
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ collections:
sort_by: date
docs:
output: true
galleries:
output: true

defaults:
- scope:
Expand Down
10 changes: 10 additions & 0 deletions _galleries/belgique-2023.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
layout: gallery
panel: false
title: Belgique 2023
date: 2023-05-01 00:00:00 +0800
description: Coupe Eurobot de Belgique RobtiX au SparkOH!
folder: belgique-2023
nb-img: 6
card-img: 4.jpg
---
10 changes: 10 additions & 0 deletions _galleries/belgique-2024.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
layout: gallery
panel: false
title: Belgique 2024
date: 2024-04-22 00:00:00 +0800
description: Coupe Eurobot de Belgique RobtiX au SparkOH!
folder: belgique-2024
nb-img: 60
card-img: 55.jpg
---
10 changes: 10 additions & 0 deletions _galleries/cdr-2023.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
layout: gallery
panel: false
title: Coupe de France 2023
date: 2023-06-01 00:00:00 +0800
description: Coupe de France de robotique organisée par Planète Science.
folder: cdr-2023
nb-img: 30
card-img: 1.jpg
---
2 changes: 1 addition & 1 deletion _includes/embedded_carousel.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
{% for i in (1..include.nbimg) %}
{% assign img_path = "/carrousel/" | append: include.carrousel | append: "/" | append: i | append: ".jpg" %}
{% assign img_path = "/gallery/" | append: include.carrousel | append: "/" | append: i | append: ".jpg" %}
{% if i == 1 %}
<div class="carousel-item active">
<div style="overflow: hidden;">
Expand Down
14 changes: 0 additions & 14 deletions _includes/gallery.html

This file was deleted.

27 changes: 27 additions & 0 deletions _layouts/galleries.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
layout: page
---

{% assign galleries = site.galleries | sort: 'date' | reverse %}

<div class="row">
{% for gallery in galleries %}
<div class="col-sm-6 d-flex align-items-stretch" style="margin-bottom: 20px !important;">
<div class="card" style="border-radius: 30px; overflow: hidden;">
<a href="{{ gallery.url | relative_url }}" style="border-bottom: 0px !important;">
<img class="card-img-top"
src="../assets/img/gallery/{{ gallery.folder }}/{{ gallery.card-img }}"
width="auto"
height="300"
style="width: 100%; height: 300px; object-fit: cover; border-radius: 30px 30px 0 0;"
alt="{{ robot.title }}"
>
</a>
<div class="card-body">
<p class="title-card">{{ gallery.title }}<br></p>
<p class="card-text">{{ gallery.description }}</p>
</div>
</div>
</div>
{% endfor %}
</div>
19 changes: 19 additions & 0 deletions _layouts/gallery.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
layout: page
refactor: false
---

<div class="post-content mb-3">
{{ content }}
</div>

<div class="container">
<div class="row">
{% for i in (1..page.nb-img) %}
{% assign img_path = "../../assets/img/gallery/" | append: page.folder | append: "/" | append: i | append: ".jpg" %}
<div class="col-sm-6 col-md-4 col-lg-3 mb-4">
<img src="{{ img_path }}" alt="Image {{ i }}" style="width: 100%; height: 200px; object-fit: cover; display: block;">
</div>
{% endfor %}
</div>
</div>
2 changes: 0 additions & 2 deletions _posts/2024-04-22-belgique-2024.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ pin: false
post-image: assets/img/gallery/belgique-2024/55.JPG
---

{% include gallery.html folder='belgique-2024' count=60 %}

# Les séries de matchs

{% include match_display.html
Expand Down
2 changes: 1 addition & 1 deletion _tabs/categories.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
layout: categories_tags
title: Categories
icon: fas fa-stream
order: 5
order: 6
hide: false
---
8 changes: 8 additions & 0 deletions _tabs/galleries.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: galleries
title: Gallerie
icon: fas fa-image
order: 5
hide: false
panel: false
---
2 changes: 1 addition & 1 deletion _tabs/shop.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ layout: page
title: Shop
icon: fas fa-shopping-cart
redirection: https://store.streamelements.com/barbatroniclive
order: 6
order: 8
hide: false
---
2 changes: 1 addition & 1 deletion _tabs/tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ layout: tags
title: Tags
icon: fas fa-tag
hide: true
order: 6
order: 7
---
Binary file removed assets/img/carrousel/belgique-2023/4.jpg
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added assets/img/gallery/belgique-2023/4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file removed assets/img/gallery/belgique-2024/thumbnail-1.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-10.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-11.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-12.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-13.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-14.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-15.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-16.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-17.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-18.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-19.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-2.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-20.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-21.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-22.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-23.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-24.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-25.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-26.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-27.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-28.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-29.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-3.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-30.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-31.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-32.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-33.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-34.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-35.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-36.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-37.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-38.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-39.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-4.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-40.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-41.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-42.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-43.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-44.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-45.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-46.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-47.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-48.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-49.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-5.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-50.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-51.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-52.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-53.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-54.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-55.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-56.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-57.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-58.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-59.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-6.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-60.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-7.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-8.JPG
Diff not rendered.
Binary file removed assets/img/gallery/belgique-2024/thumbnail-9.JPG
Diff not rendered.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit 7926754

Please sign in to comment.