Termine Refactor
This commit is contained in:
		| @@ -7,12 +7,25 @@ | ||||
|         <ul class="list-unstyled"> | ||||
|           {{ range .Params.events }} | ||||
|           <li class="d-md-table mb-4 w-100 border-bottom hover-shadow"> | ||||
|             <div class="d-md-table-cell text-center p-4 bg-primary text-white mb-4 mb-md-0 termin-tc"><span class="h2 d-block">{{ time.Format "2" .date}}</span> <span class="d-block">{{ time.Format "Jan 2006" .date}}</span> {{ with .enddate }} <br> bis {{ time.Format "2 Jan 2006" . }} {{end}}</div> | ||||
|             <div class="d-md-table-cell px-4 vertical-align-middle mb-4 mb-md-0 p-2"> | ||||
|               <p href="{{ .Permalink }}" class="h4 mb-3 d-block">{{ .title }}</p> | ||||
|               <p class="mb-0">{{ .summary | truncate 100 }}</p> | ||||
|             <div class="d-md-table-cell text-center p-4 bg-primary text-white mb-4 mb-md-0 termin-tc"> | ||||
|               <span class="h2 d-block">{{ time.Format "2" .date}}</span> | ||||
|               <span class="d-block">{{ time.Format "Jan 2006" .date}}</span> | ||||
|               {{ with .enddate }} | ||||
|                 <br> | ||||
|                 bis {{ time.Format "2 Jan 2006" . }} | ||||
|               {{ end }} | ||||
|             </div> | ||||
|             <div class="d-md-table-cell text-right pr-0 pr-md-4 p-2"><p><i class="mdi mdi-map-marker-radius-outline icon-s text-primary mr-2"></i>{{ .location | markdownify }}</p></div> | ||||
|             <div class="d-md-table-cell px-4 vertical-align-middle mb-4 mb-md-0 p-2"> | ||||
|               <p class="h4 mb-0 d-block">{{ .title }}</p> | ||||
|             </div> | ||||
|             {{ with .location }} | ||||
|             <div class="d-md-table-cell text-right pr-0 pr-md-4 p-2 vertical-align-middle"> | ||||
|               <p> | ||||
|                 <i class="mdi mdi-map-marker-radius-outline icon-s text-primary mr-2"></i> | ||||
|                 {{ . | markdownify }} | ||||
|               </p> | ||||
|             </div> | ||||
|             {{ end }} | ||||
|           </li> | ||||
|           {{ end }} | ||||
|         </ul> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user