mirror of
				https://github.com/pawroman/zola-theme-terminimal.git
				synced 2025-10-31 08:06:15 +01:00 
			
		
		
		
	Skip draft pages in archive
This commit is contained in:
		
							parent
							
								
									4848ae1c72
								
							
						
					
					
						commit
						0577f22e54
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -70,6 +70,9 @@ | |||
| {% macro list_posts(pages) %} | ||||
|     <ul> | ||||
|     {%- for page in pages %} | ||||
|         {%- if page.draft %} | ||||
|             {% continue %} | ||||
|         {% endif -%} | ||||
|         <li class="post-list"> | ||||
|             <a href="{{ page.permalink }}"> | ||||
|                 <span class="post-date">{{ page.date }}</span> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Paweł Romanowski
						Paweł Romanowski