mirror of
				https://github.com/Theodor-Springmann-Stiftung/jacoblenz.git
				synced 2025-10-29 17:25:33 +00:00 
			
		
		
		
	Added filter functionality to list
This commit is contained in:
		| @@ -16,23 +16,26 @@ eleventyNavigation: | ||||
|     <p class="max-w-[80ch]">Hinweise auf neue Lenz-Publikationen werden dankbar aufgenommen; ebenso Ergänzungen und Korrekturen zur älteren Literatur. Das Lenz Archiv Heidelberg arbeitet daran, eine Forschungsbibliothek einzurichten, die möglichst alle hier verzeichneten Titel in Original oder Kopie umfasst.  | ||||
| </div> | ||||
|  | ||||
| <div class="flex flex-row sticky top-0"> | ||||
| <div class="z-10 border-r-2 border-slate-400 bg-emerald-100 px-4 py-2 self-start w-full"> | ||||
| {% set jahr = "" %} | ||||
| {% set count = 1 %} | ||||
| <a href="#top">↑</a>   | ||||
| {%- for post in collections.sekundaer -%} | ||||
|     {% if count % 80 == 0 and jahr !== post.data.Jahr %} | ||||
|         <a class="underline decoration-dotted" href="#{{ post.data.Jahr }}">{{ post.data.Jahr }}</a>   | ||||
|         {% set jahr = post.data.Jahr %} | ||||
|     {% endif %} | ||||
|     {% set count = count + 1 %} | ||||
| {%- endfor -%} | ||||
| </div> | ||||
| <div class="text-xl pl-4 pr-1 grow-0 min-w-[4rem] font-bold order-2"></div> | ||||
|  | ||||
| <div class="sticky top-0 z-20"> | ||||
|   <div class="flex flex-row"> | ||||
|     <div class="z-10 bg-slate-100 px-4 py-2 self-start w-full"> | ||||
|     <input class="w-full p-0.5 my-1 mb-2 border border-slate-300" type="text" name="keyword" class="form-control input-sm" placeholder="Liste durchsuchen..."> | ||||
|     {% set jahr = "" %} | ||||
|     {% set count = 1 %} | ||||
|     <a href="#top">↑</a>   | ||||
|     {%- for post in collections.sekundaer -%} | ||||
|         {% if count % 80 == 0 and jahr !== post.data.Jahr %} | ||||
|             <a class="underline decoration-dotted" href="#{{ post.data.Jahr }}">{{ post.data.Jahr }}</a>   | ||||
|             {% set jahr = post.data.Jahr %} | ||||
|         {% endif %} | ||||
|         {% set count = count + 1 %} | ||||
|     {%- endfor -%} | ||||
|     </div> | ||||
|   </div> | ||||
| </div> | ||||
|  | ||||
| <div class="mt-4"> | ||||
| <div class="mt-4" id="list"> | ||||
|   {% set jahr = "" %} | ||||
|   {%- for post in collections.sekundaer -%} | ||||
|     {% if post.data.Jahr !== jahr %} | ||||
| @@ -41,11 +44,11 @@ eleventyNavigation: | ||||
|         </div> | ||||
|       {% endif %} | ||||
|       {% set jahr = post.data.Jahr %} | ||||
|       <div class="flex flex-row w-full" id="{{ jahr }}"> | ||||
|       <div class="text-xl pr-1 pl-3 py-2 grow-0 min-w-[4rem] font-bold self-start z-0 sticky top-0 order-2" >{{ jahr }}</div> | ||||
|       <div class="flex flex-row w-full category" id="{{ jahr }}"> | ||||
|       <div class="text-xl pr-1 pl-3 py-2 grow-0 min-w-[4rem] font-bold self-start z-0 sticky top-20 order-2" >{{ jahr }}</div> | ||||
|       <div class="px-4 border-r-2 grow py-2 border-slate-400"> | ||||
|     {% endif %} | ||||
|     <div class="mb-3 pl-6 -indent-6 max-w-[90ch]">{{ post.content | safe }}</div> | ||||
|     <div class="mb-3 pl-6 -indent-6 max-w-[90ch] searchable">{{ post.content | safe }}</div> | ||||
|   {%- endfor -%} | ||||
|   </div> | ||||
|   </div> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Simon Martens
					Simon Martens