init
This commit is contained in:
		
						commit
						d013ece0f3
					
				
					 363 changed files with 20823 additions and 0 deletions
				
			
		
							
								
								
									
										19
									
								
								themes/duckquill/templates/macros/rel_attributes.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								themes/duckquill/templates/macros/rel_attributes.html
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,19 @@
 | 
			
		|||
{#- Taken from https://github.com/welpo/tabi/blob/7b00ed1d9dca5c529d2816c5b6679bfe600d63fc/templates/macros/rel_attributes.html -#}
 | 
			
		||||
 | 
			
		||||
{% macro rel_attributes() %}
 | 
			
		||||
 | 
			
		||||
{%- set rel_attributes = [] -%}
 | 
			
		||||
{%- if config.markdown.external_links_target_blank -%}
 | 
			
		||||
	{%- set rel_attributes = rel_attributes | concat(with="noopener") -%}
 | 
			
		||||
{%- endif -%}
 | 
			
		||||
{%- if config.markdown.external_links_no_follow -%}
 | 
			
		||||
	{%- set rel_attributes = rel_attributes | concat(with="nofollow") -%}
 | 
			
		||||
{%- endif -%}
 | 
			
		||||
{%- if config.markdown.external_links_no_referrer -%}
 | 
			
		||||
	{%- set rel_attributes = rel_attributes | concat(with="noreferrer") -%}
 | 
			
		||||
{%- endif -%}
 | 
			
		||||
 | 
			
		||||
{# Return the array of rel attributes joined by a space #}
 | 
			
		||||
{{- rel_attributes | join(sep=" ") -}}
 | 
			
		||||
 | 
			
		||||
{% endmacro rel_attributes %}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue