|
1 | 1 | {%- assign breadcrumbMarkup = '' -%} |
| 2 | +{%- assign pageUrlStart = page.url | slice: 0,6 -%} |
2 | 3 | {%- assign tocMarkup = content | toc -%} |
3 | 4 | {%- assign pageLang = language | default: config.lang -%} |
4 | 5 | {%- assign pageTitle = title | default: tag | default: page.inputPath -%} |
|
129 | 130 | data-opened-state-class="d-flex fd-column | maxh-sidebar | bc-neutral-100 bwidth-1 bstyle-dashed bcolor-neutral-500"> |
130 | 131 | <menu id="nav_primary_header" |
131 | 132 | class="d-flex fd-column | pos-sticky top-0 z-1 | m-0 p-0 {% if config.customLinks.size == 0 %}pb-7{% endif %} | ls-none bc-neutral-100 bbwidth-1 bbstyle-dashed bcolor-neutral-500" |
| 133 | + gap-5="md" |
132 | 134 | bradtl-3="md" |
133 | 135 | bradtr-3="md"> |
134 | 136 | <li class="d-flex ai-center"> |
|
147 | 149 | <input id="searchInput" |
148 | 150 | type="search" |
149 | 151 | name="search" |
150 | | - class="pl-5 pr-5 pt-3 pb-3 | fs-3 | bc-neutral-100 brad-4 bwidth-1 bstyle-dashed bcolor-neutral-500" |
| 152 | + class="pl-5 pr-5 pt-4 pb-4 | fs-3 | bc-neutral-100 brad-4 bwidth-1 bstyle-dashed bcolor-neutral-500" |
151 | 153 | placeholder="{{ messages.searchPlaceholder[pageLang] }}" |
152 | 154 | value=""> |
153 | 155 | <div class="d-flex ai-center | pos-absolute top-0 right-0 | h-100 mr-5"> |
|
166 | 168 | </form> |
167 | 169 | </li> |
168 | 170 | {% if config.customLinks.size > 0 %} |
169 | | - <li class="d-flex ai-center gap-5 | pl-5 pr-5"> |
| 171 | + <li class="d-flex ai-center fw-wrap"> |
170 | 172 | {% for item in config.customLinks %} |
171 | 173 | <a href="{{ item.url }}" |
172 | | - class="d-flex ai-center gap-1 | pt-5 pb-5 | fvs-wght-400 fs-2 lh-1 tt-uppercase td-none | c-neutral-900" |
| 174 | + class=" |
| 175 | + d-flex fg-1 {% if config.customLinks.size > 1 %}jc-center{% endif %} ai-center gap-1 |
| 176 | + pt-5 pb-5 {% if config.customLinks.size == 1 %}pl-5 pr-5{% else %}pl-2 pr-2{% endif %} |
| 177 | + fvs-wght-600 fs-1 lsp-3 lh-1 tt-uppercase td-none |
| 178 | + c-primary-500 |
| 179 | + btwidth-1 btstyle-dashed bcolor-neutral-300 |
| 180 | + {% if forloop.last == false %}brwidth-1 brstyle-dashed bcolor-neutral-300{% endif %}" |
173 | 181 | target="_blank"> |
174 | | - <span class="td-underline">{{ item.text }}</span> |
175 | | - <span class="icon-arrow-square-out"></span> |
| 182 | + {{ item.text }} |
| 183 | + <span class="icon-arrow-square-out c-primary-300"></span> |
176 | 184 | </a> |
177 | 185 | {% endfor %} |
178 | 186 | </li> |
179 | 187 | {% endif %} |
180 | 188 | </menu> |
| 189 | + {% if collections.myTags.size > 0 %} |
| 190 | + <a href="/tags/" |
| 191 | + class="d-flex fg-1 | pos-relative | w-100 pt-4 pb-4 pl-5 pr-5 | fs-4 td-none lh-5 tws-balance fvs-wght-500 | c-neutral-900 bbwidth-1 bbstyle-dashed bcolor-neutral-500"> |
| 192 | + Tags list |
| 193 | + </a> |
| 194 | + {% endif %} |
181 | 195 | {% assign menu = collections.all | eleventyNavigation | eleventyNavigationToHtml: site.navigationOptions %} |
182 | 196 | {% assign currentPageHrefAttribute = '<a href="' | append: page.url | append: '"' %} |
183 | 197 | {% capture currentPageReplacementAttribute %}{{ currentPageHrefAttribute }} aria-current="page"{% endcapture %} |
|
199 | 213 | w-100-minus-sidebar="md" |
200 | 214 | w-100="xs,sm"> |
201 | 215 | {% block content %} |
202 | | - <header class="d-flex fd-column | pt-5 pb-7"> |
| 216 | + <header class="d-flex fd-column | pt-5 {% if pageUrlStart != '/tags/' %}pb-7{% endif %}"> |
203 | 217 | {{ breadcrumbMarkup }} |
204 | 218 | <h1 class="mt-3 mb-0 | lsp-5 fvs-wght-700 tws-balance" |
205 | 219 | fs-10="md" |
|
216 | 230 | </p> |
217 | 231 | {% endif %} |
218 | 232 | {% if page.url != '/search/' %} |
| 233 | + {% if tags.size > 0 %} |
| 234 | + <nav id="page_tags" |
| 235 | + class="d-flex gap-2 fw-wrap | pl-5 pt-3 pb-3 | blwidth-1 blstyle-dashed bcolor-neutral-500"> |
| 236 | + {% for tagName in tags %} |
| 237 | + <a href="/tags/{{ tagName }}/" |
| 238 | + class=" |
| 239 | + d-flex ai-center gap-1 |
| 240 | + pl-2 pr-3 pt-1 pb-1 |
| 241 | + fs-2 lsp-2 td-none |
| 242 | + bc-primary-200 bwidth-1 bstyle-solid bcolor-primary-400 brad-1 bradtl-3 bradbl-3"> |
| 243 | + <span class="icon-tag-simple"></span> |
| 244 | + <span class="page_tag">{{ tagName }}</span> |
| 245 | + </a> |
| 246 | + {% endfor %} |
| 247 | + </nav> |
| 248 | + {% endif %} |
219 | 249 | <div class="d-flex ai-center | m-0 | blwidth-1 blstyle-dashed bcolor-neutral-500"> |
220 | 250 | <div class="pl-5 | bbwidth-1 bbstyle-dashed bcolor-neutral-500"></div> |
221 | 251 | <p class="d-flex ai-center gap-2 | m-0 pr-2 | fvs-wght-400 fs-3 lsp-3 lh-3 | c-neutral-700" |
222 | 252 | fs-2="xs"> |
223 | 253 | <span class="icon-calendar-dots fs-6"></span> |
224 | 254 | <span ws-nowrap="sm,md"> |
225 | 255 | <span class="ws-nowrap">{{ messages.lastModified[pageLang] }}</span> |
226 | | - {{ date | default: site.buildDate }} |
| 256 | + {{ page.date|dateString }} |
227 | 257 | </span> |
228 | 258 | </p> |
229 | 259 | <div class="pl-5 w-100 | bbwidth-1 bbstyle-dashed bcolor-neutral-500"></div> |
|
0 commit comments