Skip to content

Commit 6355f0c

Browse files
committed
Refactor: Shorten code to generate profile IDs
1 parent 941cbaa commit 6355f0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sessions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ thumbnail: timetable.png
2828

2929
<div class="row text-left">
3030
{% for session in site.data.sessions %}
31-
{% assign profile_id = forloop.index | prepend: '00' | slice: -2, 2 | prepend: 'profile' %}
31+
{% assign profile_id = forloop.index | prepend: 'profile-' %}
3232
<div class="col-md-6 col-12 p-3" id="{{data.title}}">
3333
<h4 class="ws-title">{{ session.title }}</h4>
3434
<p>

0 commit comments

Comments
 (0)