My personal website vittoriogioda.com
blog portfolio personal-website

chore: add new collection item and update description formatting

+17 -3
+5
hugo.toml
··· 148 148 [[params.collection]] 149 149 name = "Altered DMN functional connectivity with mobile phone addiction" 150 150 url = "https://e-century.us/files/ijcem/12/2/ijcem0078031.pdf" 151 + description = "Healt" 152 + 153 + [[params.collection]] 154 + name = "What Excessive Screen Time Does to the Adult Brain" 155 + url = "https://lifestylemedicine.stanford.edu/what-excessive-screen-time-does-to-the-adult-brain/" 151 156 description = "Healt"
+2 -2
layouts/collection/collection.html
··· 7 7 </p> 8 8 </header> 9 9 <main class="page-content" aria-label="Content"> 10 - {{ range site.Params.collection }} 10 + {{ range collections.Reverse site.Params.collection }} 11 11 <article class="post-item"> 12 12 <h4 class="post-item-title"> 13 13 <a href="{{ .url }}" rel="noopener noreferrer">{{ .name }}</a> 14 14 </h4> 15 15 {{ with .description }} 16 - <p class="post-item-meta">{{ . }}</p> 16 + <span class="post-item-meta">{{ . }}</span> 17 17 {{ end }} 18 18 </article> 19 19 {{ end }}
+10 -1
public/collection/index.html
··· 147 147 148 148 <article class="post-item"> 149 149 <h4 class="post-item-title"> 150 + <a href="https://lifestylemedicine.stanford.edu/what-excessive-screen-time-does-to-the-adult-brain/" rel="noopener noreferrer">What Excessive Screen Time Does to the Adult Brain</a> 151 + </h4> 152 + 153 + <span class="post-item-meta">Healt</span> 154 + 155 + </article> 156 + 157 + <article class="post-item"> 158 + <h4 class="post-item-title"> 150 159 <a href="https://e-century.us/files/ijcem/12/2/ijcem0078031.pdf" rel="noopener noreferrer">Altered DMN functional connectivity with mobile phone addiction</a> 151 160 </h4> 152 161 153 - <p class="post-item-meta">Healt</p> 162 + <span class="post-item-meta">Healt</span> 154 163 155 164 </article> 156 165