|
| 1 | +--- |
| 2 | +layout: page |
| 3 | +title: CSS Wizardry Blog Archives |
| 4 | +page-class: page--archive |
| 5 | +permalink: /blog/ |
| 6 | +--- |
| 7 | + |
| 8 | +<section class="posts"> |
| 9 | + |
| 10 | + {% assign random = site.time | date: "%s%N" | modulo: site.posts.size %} |
| 11 | + |
| 12 | + <p>I have written <b>{{ site.posts | size }}</b> post on this site, mostly |
| 13 | + covering CSS, architecture, performance, and web development. Find |
| 14 | + a reverse-chronological list of them below, or, at random, why not read |
| 15 | + <a href="{{ site.posts[random].url }}"><cite>{{ site.posts[random].title }}</cite></a> <small>(<time>{{ site.posts[random].date | date: "%Y" }}</time>)</small>?</p> |
| 16 | + |
| 17 | + {% for post in site.posts %} |
| 18 | + {% assign currentDate = post.date | date: "%Y" %} |
| 19 | + {% if currentDate != myDate %} |
| 20 | + {% unless forloop.first %}</ol>{% endunless %} |
| 21 | + <hr /> |
| 22 | + <h2 id=year-{{ currentDate }}>{{ currentDate }}</h2> |
| 23 | + <ol reversed> |
| 24 | + {% assign myDate = currentDate %} |
| 25 | + {% endif %} |
| 26 | + <li> |
| 27 | + <b><time datetime="{{ post.date | date: "%Y-%m-%d" }}">{{ post.date | date: "%B %d" }}</time></b> |
| 28 | + <br> |
| 29 | + <a href="{{ post.url }}" style="view-transition-name: x-{{ post.date | date: '%Y-%m-%d' }}">{{ post.title }}</a> |
| 30 | + </li> |
| 31 | + {% if forloop.last %}</ol>{% endif %} |
| 32 | + {% endfor %} |
| 33 | + |
| 34 | + <script type="application/ld+json"> |
| 35 | + { |
| 36 | + "@context": "https://schema.org", |
| 37 | + "@type": "BreadcrumbList", |
| 38 | + "itemListElement": [{ |
| 39 | + "@type": "ListItem", |
| 40 | + "position": 1, |
| 41 | + "name": "CSS Wizardry", |
| 42 | + "item": "https://csswizardry.com/" |
| 43 | + },{ |
| 44 | + "@type": "ListItem", |
| 45 | + "position": 2, |
| 46 | + "name": "Blog", |
| 47 | + "item": "https://csswizardry.com/archive/" |
| 48 | + }] |
| 49 | + } |
| 50 | + </script> |
| 51 | + |
| 52 | +</section> |
0 commit comments