48 lines
1.4 KiB
Plaintext
48 lines
1.4 KiB
Plaintext
<div class="i-annc index-announcement-21">
|
|
<h3 class="i-annc__page-title">{{page-title}}</h3>
|
|
<ul class="i-annc__list row" data-level="0" data-list="announcements">
|
|
<li class="i-annc__item">
|
|
<div class="i-annc__content-wrap">
|
|
<div class=" row">
|
|
<div class="i-annc__meta col-sm-2">
|
|
<span class="i-annc__postdate-wrap " date-format="%Y-%m-%d">
|
|
<span class="i-annc__postdate">{{postdate}}</span>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-10">
|
|
<span class="i-annc__status-wrap" data-list="statuses" data-level="1">
|
|
<span class="i-annc__status label status {{status-class}}">{{status}}</span>
|
|
</span>
|
|
<h4 class="i-annc__entry-title">
|
|
<a class="i-annc__title" href="{{link_to_show}}">{{title}}</a>
|
|
</h4>
|
|
<p class="i-annc__subtitle">{{subtitle}}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</div>
|
|
{{pagination_goes_here}}
|
|
<script>
|
|
function postdate() {
|
|
var len = $('.i-annc__postdate').length;
|
|
var date = $('.i-annc__postdate');
|
|
|
|
for (let i=0; i<len; i++) {
|
|
newDate = date[i].innerText.slice(9,10)
|
|
newYear = date[i].innerText.slice(0,7 )
|
|
date[i].innerHTML= '';
|
|
date[i].append(newYear)
|
|
|
|
var date2 = document.createElement('span');
|
|
date2.className = 'new-date';
|
|
date2.textContent = newDate;
|
|
date[i].appendChild(date2);
|
|
}
|
|
}
|
|
|
|
postdate();
|
|
</script>
|