Only print page info when there is date available
Useful for sub-pages which do not necessarily have such metadata.
This commit is contained in:
		@@ -17,10 +17,12 @@
 | 
				
			|||||||
{% endmacro %}
 | 
					{% endmacro %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% macro page_info(page) %}
 | 
					{% macro page_info(page) %}
 | 
				
			||||||
 | 
						{% if page.date %}
 | 
				
			||||||
		<div class="info">
 | 
							<div class="info">
 | 
				
			||||||
			<span class="date">{{ page.date }}</span>
 | 
								<span class="date">{{ page.date }}</span>
 | 
				
			||||||
			{%- if page.extra.author -%}
 | 
								{%- if page.extra.author -%}
 | 
				
			||||||
				, <span class="author">{{ page.extra.author }}</span>
 | 
									, <span class="author">{{ page.extra.author }}</span>
 | 
				
			||||||
			{% endif %}
 | 
								{% endif %}
 | 
				
			||||||
		</div>
 | 
							</div>
 | 
				
			||||||
 | 
						{% endif %}
 | 
				
			||||||
{% endmacro %}
 | 
					{% endmacro %}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user