init
This commit is contained in:
		
						commit
						d013ece0f3
					
				
					 363 changed files with 20823 additions and 0 deletions
				
			
		
							
								
								
									
										70
									
								
								templates/partials/footer.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										70
									
								
								templates/partials/footer.html
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,70 @@
 | 
			
		|||
{%- set rel_attributes = macros_rel_attributes::rel_attributes() | trim -%}
 | 
			
		||||
 | 
			
		||||
<footer id="site-footer">
 | 
			
		||||
	<div id="wcb" class="carbonbadge"></div>
 | 
			
		||||
<script src="https://unpkg.com/website-carbon-badges@1.1.3/b.min.js" defer></script>
 | 
			
		||||
<p></p>
 | 
			
		||||
	{%- if config.extra.footer.links %}
 | 
			
		||||
		<nav>
 | 
			
		||||
			<ul>
 | 
			
		||||
				{%- for link in config.extra.footer.links %}
 | 
			
		||||
				{%- if link.url is matching('https?://') %}
 | 
			
		||||
					<li>
 | 
			
		||||
						<a href="{{ link.url }}" rel="{{ rel_attributes }}" class="external">
 | 
			
		||||
							{{- macros_translate::translate(key=link.name, default=link.name, language_strings=language_strings) -}}
 | 
			
		||||
						</a>
 | 
			
		||||
					</li>
 | 
			
		||||
				{%- else %}
 | 
			
		||||
					<li>
 | 
			
		||||
						<a href="{{ get_url(path=link.url, lang=lang)}}"
 | 
			
		||||
							{%- if current_url | default(value='/') | trim_end_matches(pat='/') | safe == get_url(path=link.url, lang=lang) | trim_end_matches(pat='/') | safe -%}
 | 
			
		||||
								class="active"
 | 
			
		||||
							{%- endif -%}>
 | 
			
		||||
							{{- macros_translate::translate(key=link.name, default=link.name, language_strings=language_strings) -}}
 | 
			
		||||
						</a>
 | 
			
		||||
					</li>
 | 
			
		||||
				{%- endif %}
 | 
			
		||||
			{%- endfor %}
 | 
			
		||||
			</ul>
 | 
			
		||||
		</nav>
 | 
			
		||||
	{%- endif %}
 | 
			
		||||
 | 
			
		||||
	{%- if config.extra.footer.show_copyright %}
 | 
			
		||||
		{%- if config.extra.footer.copyright %}
 | 
			
		||||
			{{ config.extra.footer.copyright | markdown | safe }}
 | 
			
		||||
		{%- else %}
 | 
			
		||||
			<p>© {{ config.title }}, {{ now() | date(format="%Y") }}</p>
 | 
			
		||||
		{%- endif %}
 | 
			
		||||
	{%- endif %}
 | 
			
		||||
 | 
			
		||||
	{%- if config.extra.source_url and config.extra.footer.show_source %}
 | 
			
		||||
		<p>
 | 
			
		||||
			<a class="external" href="{{ config.extra.source_url }}" rel="{{ rel_attributes }}">
 | 
			
		||||
				{{- macros_translate::translate(key="source", default="Website source", language_strings=language_strings) -}}
 | 
			
		||||
			</a>
 | 
			
		||||
		</p>
 | 
			
		||||
	{%- endif %}
 | 
			
		||||
 | 
			
		||||
	{%- if config.extra.footer.show_powered_by %}
 | 
			
		||||
		<p>
 | 
			
		||||
			<small>
 | 
			
		||||
				{%- set zola_link = '<a class="link external" href="https://www.getzola.org" rel="' ~ rel_attributes ~ '">Zola</a>' -%}
 | 
			
		||||
				{%- set duckquill_link = '<a class="link external" href="https://duckquill.daudix.one" rel="' ~ rel_attributes ~ '">Duckquill</a>' -%}
 | 
			
		||||
				{{ macros_translate::translate(key="powered_by", default="Powered by $ZOLA and $DUCKQUILL", language_strings=language_strings) | replace(from="$ZOLA", to=zola_link) | replace(from="$DUCKQUILL", to=duckquill_link) | safe }}
 | 
			
		||||
			</small>
 | 
			
		||||
		</p>
 | 
			
		||||
	{%- endif %}
 | 
			
		||||
 | 
			
		||||
	{%- if config.extra.footer.socials %}
 | 
			
		||||
		<ul id="socials">
 | 
			
		||||
			{%- for link in config.extra.footer.socials %}
 | 
			
		||||
				<li>
 | 
			
		||||
					<a href="{{ link.url | safe }}" rel="{{ rel_attributes }} me" title="{{ link.name }}">
 | 
			
		||||
						<i class="icon" style='--icon: url("data:image/svg+xml,{{ link.icon }}")'></i>
 | 
			
		||||
						<span>{{ link.name }}</span>
 | 
			
		||||
					</a>
 | 
			
		||||
				</li>
 | 
			
		||||
			{%- endfor %}
 | 
			
		||||
		</ul>
 | 
			
		||||
	{%- endif %}
 | 
			
		||||
</footer>
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue