Skip to content

Commit 66ecb17

Browse files
Rename slides and sort by priority
1 parent 2ffce07 commit 66ecb17

File tree

8 files changed

+25
-13
lines changed

8 files changed

+25
-13
lines changed

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ repository: qupath/qupath.github.io
99
collections:
1010
slides:
1111
_hide_content: true
12+
sort_by: priority

_includes/slideshow.html

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<!-- Slideshow component -->
22
<div class="slideshow-container standard-component">
33
<!-- Full-width images with number and caption text -->
4-
{% for slide in site.slides %}
4+
5+
{% assign slides_list = site.slides | sort:"priority" %}
6+
{% for slide in slides_list %}
7+
{% unless slide.hide %}
58
<div class="mySlides fade">
69
<div class="slide">
710
<div class="slide-text {{ slide.slide-text-class }}">
@@ -11,6 +14,7 @@ <h2>{{slide.slide-title }}</h2>
1114
<img src="{{ slide.slide-img }}" class="{{ slide.slide-img-class }}" alt="">
1215
</div>
1316
</div>
17+
{% endunless %}
1418
{% endfor %}
1519

1620
<!-- Next and previous buttons -->
@@ -22,9 +26,9 @@ <h2>{{slide.slide-title }}</h2>
2226
<br>
2327
<!-- The dots/circles -->
2428
<div style="text-align:center">
25-
<span class="dot" onclick="currentSlide(1)" tabindex="0"></span>
26-
<span class="dot" onclick="currentSlide(2)" tabindex="0"></span>
27-
<span class="dot" onclick="currentSlide(3)" tabindex="0"></span>
28-
<span class="dot" onclick="currentSlide(4)" tabindex="0"></span>
29-
<span class="dot" onclick="currentSlide(5)" tabindex="0"></span>
30-
</div>
29+
{% for slide in site.slides | sort:"priority" | reversed %}
30+
{% unless slide.hide %}
31+
<span class="dot" onclick="currentSlide({{ forloop.index }})" tabindex="0"></span>
32+
{% endunless %}
33+
{% endfor %}
34+
</div>
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ slide-title: Annotate faster
33
slide-content: QuPath has lots of tricks to annotate images quickly. See them in action in this <a href="https://twitter.com/petebankhead/status/1295965136646176768?s=20 t=ETG2R8JKrhtT-kSZdW-Cnw" target=blank >annotation tweetorial</a>.
44
slide-img: /assets/images/slideshow/annotation-snapping.jpg
55
slide-img-class: screenshot-img
6-
---
6+
priority: 5
7+
---
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
slide-title: Understand images
33
slide-content: Learn the core ideas behind analyzing images from QuPath’s creator, in the new interactive handbook <a href="https://bioimagebook.github.io/README.html" target=blank>Introduction to Bioimage Analysis</a>.
44
slide-img: /assets/images/slideshow/pete-teaching.png
5-
---
5+
priority: 6
6+
hide: true
7+
---
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ slide-title: Get started
33
slide-content: See how QuPath can help visualize & analyze complex images with our step-by-step guides on <a href="https://qupath.readthedocs.io/en/stable/" target=blank>ReadTheDocs</a>.
44
slide-img: /assets/images/slideshow/qupath-getting-started.png
55
slide-img-class: screenshot-img
6-
---
6+
priority: 3
7+
---
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ slide-content: Dive deeper into what QuPath can do by checking out the tutorials
44
slide-img: /assets/images/slideshow/qupath-youtube.png
55
slide-img-class: inverse screenshot-img
66
slide-text-class: inverse-text
7-
---
7+
priority: 4
8+
---
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ slide-content: <br> QuPath v0.6.0 is out now — featuring new tools and a bunch
44
slide-img: /assets/images/slideshow/qupath-jobs.png
55
slide-img-class: inverse
66
slide-text-class: inverse-text
7-
---
7+
priority: 1
8+
---
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
slide-title: From Zero to QuPath Hero!
33
slide-content: <br> Join Laura on her epic journey from humble beginnings to QuPath mastery in her new <a href="https://www.youtube.com/watch?v=MBrAVUsUdio&list=PLSCpSsEmyRpANBGQXB_oGslW9NIJz4A12&ab_channel=LauraNicolas-Saenz"target=blank>YouTube series</a>.
44
slide-img: /assets/images/slideshow/zero-hero-thumbnail.gif
5-
---
5+
priority: 2
6+
---

0 commit comments

Comments
 (0)