minor: add support for multiple links in event items store category
This commit is contained in:
parent
ff3e9595f5
commit
69b2a1599b
1 changed files with 9 additions and 4 deletions
|
|
@ -177,16 +177,21 @@ function EventItems() {
|
||||||
<h6 class="dash-ctitle2">${x.date}</h6>
|
<h6 class="dash-ctitle2">${x.date}</h6>
|
||||||
<h5 class="dash-ctitle">${x.name}</h5>
|
<h5 class="dash-ctitle">${x.name}</h5>
|
||||||
</div>
|
</div>
|
||||||
${x.link !== undefined ? `
|
${x.link !== undefined ? typeof(x.link) !== "object" ? `
|
||||||
<div class="col-auto d-flex align-items-center">
|
<div class="col-auto d-flex align-items-center">
|
||||||
<a class="text-muted" href="${x.link}">
|
<a class="text-muted" href="${x.link}">
|
||||||
<span class="d-none d-lg-inline">${x.link.startsWith('https://polytoria.com/places/') ? 'Event Place' : 'Blog Post'}</span>
|
<span class="d-none d-lg-inline">${x.link.startsWith('https://polytoria.com/places/') ? 'Event Place' : 'Blog Post'}</span>
|
||||||
<i class="fas fa-angle-right ms-2"></i>
|
<i class="fas fa-angle-right ms-2"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
`
|
` : x.link.map(l => `
|
||||||
: ''
|
<div class="col-auto d-flex align-items-center">
|
||||||
}
|
<a class="text-muted" href="${l.link}">
|
||||||
|
<span class="d-none d-lg-inline">${l.label}</span>
|
||||||
|
<i class="fas fa-angle-right ms-2"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
`).join('') : ''}
|
||||||
</div>
|
</div>
|
||||||
<div class="card card-dash mcard mb-3" style="animation-delay: 0.27s;">
|
<div class="card card-dash mcard mb-3" style="animation-delay: 0.27s;">
|
||||||
<div class="card-body p-0 m-1 scrollFadeContainer">
|
<div class="card-body p-0 m-1 scrollFadeContainer">
|
||||||
|
|
|
||||||
Reference in a new issue