mirror of
				https://github.com/privacyguides/privacyguides.org.git
				synced 2025-10-31 11:36:36 +00:00 
			
		
		
		
	Adding some SEO metadata (#1474)
* Add breadcrumbs * Update cardv2.html * Dark mode fix
This commit is contained in:
		
							
								
								
									
										22
									
								
								_includes/breadcrumbs.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								_includes/breadcrumbs.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| <nav id="breadcrumb" aria-label="breadcrumb"> | ||||
|   {% assign crumbs = page.url | remove:'/index.html' | split: '/' %} | ||||
|   <ol class="breadcrumb" itemscope itemtype="https://schema.org/BreadcrumbList"> | ||||
|     <li class="breadcrumb-item"> | ||||
|       <a href="/"><i class="fas fa-home" aria-hidden="true"></i> <span>Home</span></a> | ||||
|     </li> | ||||
|     {% for crumb in crumbs offset: 1 %} | ||||
|     {% if forloop.last %} | ||||
|     <li class="breadcrumb-item active" aria-current="page" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> | ||||
|       <link href="{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' | replace:'without-plugin/','without-plugins/' }}{% endfor %}" itemprop="item"  /> | ||||
|       <span itemprop="name">{{ crumb | replace:'-',' ' | remove:'.html' | capitalize }}</span> | ||||
|       <meta itemprop="position" content="{{ forloop.index }}" /> | ||||
|     </li> | ||||
|     {% else %} | ||||
|     <li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> | ||||
|       <a href="{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' | replace:'without-plugin/','without-plugins/' }}{% endfor %}" itemprop="item"><span itemprop="name">{{ crumb | replace:'-',' ' | remove:'.html' | capitalize }}</span></a> | ||||
|       <meta itemprop="position" content="{{ forloop.index }}" /> | ||||
|     </li> | ||||
|     {% endif %} | ||||
|     {% endfor %} | ||||
|   </ol> | ||||
| </nav> | ||||
		Reference in New Issue
	
	Block a user
	 GitHub
						GitHub