|
1 | 1 | {% set branch = "main" %} |
| 2 | +{% from "macros/contentType.njk" import getContentType %} |
2 | 3 |
|
3 | 4 | </div> |
4 | 5 | <div class="container-fluid"> |
|
63 | 64 | <input type="checkbox" name="columns" class="wb-tagfilter-ctrl" value="col_1" checked> {% if locale === "en" %}Title{% else %}Titre{% endif %} |
64 | 65 | </label> |
65 | 66 | </li> |
66 | | - <li class="checkbox"> |
67 | | - <label> |
68 | | - <input type="checkbox" name="columns" class="wb-tagfilter-ctrl" value="col_2" checked> {% if locale === "en" %}Other language link{% else %}Lien vers d'autres langues{% endif %} |
69 | | - </label> |
70 | | - </li> |
71 | 67 | <li class="checkbox"> |
72 | 68 | <label> |
73 | 69 | <input type="checkbox" name="columns" class="wb-tagfilter-ctrl" value="col_3" checked> {{ pageList[locale].tagsText }} |
|
126 | 122 | <thead> |
127 | 123 | <tr> |
128 | 124 | <th data-wb-tags="col_1">{% if locale === "en" %}Title{% else %}Titre{% endif %}</th> |
129 | | - <th data-wb-tags="col_2">{% if locale === "en" %}Other language link{% else %}Lien vers d'autres langues{% endif %}</th> |
130 | 125 | <th data-wb-tags="col_3">{{ pageList[locale].tagsText }}</th> |
131 | 126 | <th data-wb-tags="col_4">{{ pageList[locale].subjectsText }}</th> |
132 | 127 | <th data-wb-tags="col_5">{% if locale === "en" %}Role{% else %}Rôle{% endif %}</th> |
|
148 | 143 | {% else %} |
149 | 144 | {% set missingToggle = "Version anglais manquante" %} |
150 | 145 | {% endif %} |
151 | | - {% if '/main/' in entry.inputPath %} |
152 | | - {% if locale === "en" %} |
153 | | - {% set contentType = "Landing Page" %} |
154 | | - {% else %} |
155 | | - {% set contentType = "Page d'atterrissage" %} |
156 | | - {% endif %} |
157 | | - {% elif '/pages/' in entry.inputPath %} |
158 | | - {% if locale === "en" %} |
159 | | - {% set contentType = "Content Page" %} |
160 | | - {% else %} |
161 | | - {% set contentType = "Page de contenu" %} |
162 | | - {% endif %} |
163 | | - {% elif '/links/' in entry.inputPath %} |
164 | | - {% if locale === "en" %} |
165 | | - {% set contentType = "Link" %} |
166 | | - {% else %} |
167 | | - {% set contentType = "Lien" %} |
168 | | - {% endif %} |
169 | | - {% else %} |
170 | | - {% if locale === "en" %} |
171 | | - {% set contentType = "Page" %} |
172 | | - {% else %} |
173 | | - {% set contentType = "Page" %} |
174 | | - {% endif %} |
175 | | - {% endif %} |
176 | 146 | {% if entry.data.locale == locale %} |
177 | 147 | {% if entry.data.redirect %} |
178 | 148 | {% elif entry.inputPath.endsWith('.csv.njk') %} |
179 | 149 | {% else %} |
180 | 150 | <tr{% for items in isLanding[6] %}{% if items === "m" %} class="success" data-wb-tags="isLanding"{% else %} data-wb-tags="isPage"{% endif %}{% endfor %}> |
181 | 151 | <td data-wb-tags="col_1"> |
182 | 152 | <a href="{{ entry.url }}">{{ entry.data.title | safe }}</a></td> |
183 | | - <td data-wb-tags="col_2"> |
184 | | - {% if entry.data.toggle %} |
185 | | - <a href="{{ pathPrefix }}{{ otherLocale }}/{{ entry.data.toggle }}" hreflang="{{ otherLang }}">{% if locale === "en" %}French version{% else %}Version anglaise{% endif %} <span class="wb-inv">{% if locale === "en" %}of{% else %}de{% endif %} {{ entry.data.title | safe }}</span></a> |
186 | | - {% else %} |
187 | | - <strong>{{ missingToggle }}</strong> |
188 | | - {% endif %} |
189 | | - </td> |
190 | 153 | <td data-wb-tags="col_3"> |
191 | 154 | {% for item in entry.data.tags %} |
192 | 155 | <span class="label label-info">{{ item }}</span> |
|
204 | 167 | <td data-wb-tags="col_6">{{ entry.data.layout or "" }}</td> |
205 | 168 | <td data-wb-tags="col_7">{{ entry.date | postDate if entry.date else "" }}</td> |
206 | 169 | <td data-wb-tags="col_8">{{ entry.data.gitCreated | postDate if entry.data.gitCreated else "" }}</td> |
207 | | - <td data-wb-tags="col_9">{{ contentType }}</td> |
| 170 | + <td data-wb-tags="col_9">{{ getContentType(entry.inputPath, locale) }}</td> |
208 | 171 | <td data-wb-tags="col_10"><code><a href="https://github.com/gc-da11yn/gc-da11yn.github.io/tree/{{ branch }}{{ newPath }}">{{ newPath }}</a></code></td> |
209 | 172 | </tr> |
210 | 173 | {% endif %} |
|
0 commit comments