unterhaufen + ui
This commit is contained in:
		
							
								
								
									
										7
									
								
								layouts/_default/superhaufen.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								layouts/_default/superhaufen.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| <div class="card border-primary rounded-0 hover-shadow mb-5"> | ||||
|     <div class="card-body"> | ||||
|       <h4 class="card-title"><a href="{{ .Permalink }}">{{ .Title | truncate 20 }}</a></h4> | ||||
|       <a href="{{ .Permalink }}" class="btn btn-primary btn-sm">{{ i18n "show_more"}}</a> | ||||
|     </div> | ||||
| </div> | ||||
|    | ||||
| @@ -35,8 +35,8 @@ | ||||
|         {{ $topics = $topics | append (slice (slice .Params.Title 200)) }} | ||||
|         {{ end }} | ||||
|         {{ range .Params.topics }} | ||||
|           {{ if .superhaufen }} | ||||
|           {{ $topics  = $topics | append (slice (slice .title 30 .superlink  "superhaufen" )) }} | ||||
|           {{ if .superhaufen.enable }} | ||||
|           {{ $topics  = $topics | append (slice (slice .title 30 (.superhaufen.link | urlize)  "superhaufen" )) }} | ||||
|           {{ else }} | ||||
|           {{ $topics  = $topics | append (slice (slice .title 30 (md5 .title) )) }} | ||||
|           {{ end }} | ||||
| @@ -49,7 +49,7 @@ | ||||
|               click: function (item) { | ||||
|                 if (item[1] != 200 || (item[1] == 200 && item[2] == "pretext")) { | ||||
|                   if( item[3] == "superhaufen" ) { | ||||
|                     window.location.href = "/superhaufen/" + item[2]; | ||||
|                     window.location.href = "{{ `/superhaufen/` | relLangURL }}" + item[2]; | ||||
|                   } else { | ||||
|                    $('#' + item[2]).modal('show'); | ||||
|                   } | ||||
|   | ||||
| @@ -5,7 +5,7 @@ | ||||
| 		<div class="row"> | ||||
| 			{{ range .Data.Pages }} | ||||
| 				<div class="col-lg-4 col-sm-6"> | ||||
| 				{{ .Render "fach" }} | ||||
| 				{{ .Render "superhaufen" }} | ||||
| 				</div> | ||||
| 			{{ end }} | ||||
| 		</div> | ||||
|   | ||||
| @@ -24,6 +24,18 @@ | ||||
|               <div class="content"> | ||||
|                 {{ .content | markdownify }} | ||||
|               </div> | ||||
|               {{ range .unterhaufen }} | ||||
|                 <div class="container mb-0"> | ||||
|                   <div class="card border-primary rounded-0 hover-shadow mb-5"> | ||||
|                     <div class="card-body mb-0"> | ||||
|                       <details class="mb-0"> | ||||
|                       <summary class="mb-0">{{ .title }}</summary> | ||||
|                       <div class="content"><p class="content">{{ .content }}</p></div> | ||||
|                       </details> | ||||
|                     </div> | ||||
|                   </div> | ||||
|                 </div> | ||||
|               {{ end }} | ||||
|             </div> | ||||
|           </div> | ||||
|         </div> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user