diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-02-11 22:52:06 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-02-11 22:52:06 +0100 |
| commit | ff882ce4cdad850977004bdcf9199e8a4ad779d5 (patch) | |
| tree | d164e42281e6e855a86cb6a5f8709466f99ec21b /index.html | |
| parent | 075377f99c7000ff37130c390916c8466fb13ec2 (diff) | |
| download | mitjafelicijan.com-ff882ce4cdad850977004bdcf9199e8a4ad779d5.tar.gz | |
Added exclusion of draft posts from list
Diffstat (limited to 'index.html')
| -rw-r--r-- | index.html | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -15,7 +15,7 @@ until it surrenders its mysteries to you.</i></p> | |||
| 15 | <ul itemscope itemtype="https://schema.org/SiteNavigationElement" role="list" aria-label="Articles" class="list"> | 15 | <ul itemscope itemtype="https://schema.org/SiteNavigationElement" role="list" aria-label="Articles" class="list"> |
| 16 | <meta itemprop="name" content="Article list"> | 16 | <meta itemprop="name" content="Article list"> |
| 17 | {% for post in site.posts %} | 17 | {% for post in site.posts %} |
| 18 | {% if post.type == "post" %} | 18 | {% if post.type == "post" and post.draft == false %} |
| 19 | <li> | 19 | <li> |
| 20 | <a href="{{ post.url }}">{{ post.title }}</a> | 20 | <a href="{{ post.url }}">{{ post.title }}</a> |
| 21 | </li> | 21 | </li> |
| @@ -27,7 +27,7 @@ until it surrenders its mysteries to you.</i></p> | |||
| 27 | <ul itemscope itemtype="https://schema.org/SiteNavigationElement" role="list" aria-label="Notes" class="list"> | 27 | <ul itemscope itemtype="https://schema.org/SiteNavigationElement" role="list" aria-label="Notes" class="list"> |
| 28 | <meta itemprop="name" content="Note list"> | 28 | <meta itemprop="name" content="Note list"> |
| 29 | {% for post in site.posts %} | 29 | {% for post in site.posts %} |
| 30 | {% if post.type == "note" %} | 30 | {% if post.type == "note" and post.draft == false %} |
| 31 | <li> | 31 | <li> |
| 32 | <a href="{{ post.url }}">{{ post.title }}</a> | 32 | <a href="{{ post.url }}">{{ post.title }}</a> |
| 33 | </li> | 33 | </li> |
