mirror of
				https://github.com/pawroman/zola-theme-terminimal.git
				synced 2025-10-30 23:56:15 +01:00 
			
		
		
		
	macros:post: sort tags alphabetically
Sort tags alphabetically before displaying them.
This commit is contained in:
		
							parent
							
								
									8f549fea12
								
							
						
					
					
						commit
						b1148b47ef
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -94,7 +94,7 @@ | |||
|                 :: tags:  | ||||
|                 {%- set sep = " " -%} | ||||
|             {% endif -%} | ||||
|             {%- for tag in page.taxonomies.tags %} | ||||
|             {%- for tag in page.taxonomies.tags | sort | unique(case_sensitive=false) %} | ||||
|                 <a class="post-tag" href="{{ get_taxonomy_url(kind='tags', name=tag) | safe }}">#{{ tag }}</a> | ||||
|                 {%- if not loop.last %}{{ sep | safe }}{% endif -%} | ||||
|             {% endfor -%} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Heitor Pascoal de Bittencourt
						Heitor Pascoal de Bittencourt