mirror of
				https://github.com/valentineus/popov.link.git
				synced 2025-11-04 06:49:45 +03:00 
			
		
		
		
	Collection with additional links
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
		
							
								
								
									
										8
									
								
								_data/additional_links.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								_data/additional_links.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					- name: "Example"
 | 
				
			||||||
 | 
					  url: "http://example"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: "Example"
 | 
				
			||||||
 | 
					  url: "http://example"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: "Example"
 | 
				
			||||||
 | 
					  url: "http://example"
 | 
				
			||||||
							
								
								
									
										11
									
								
								_includes/additional_links.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								_includes/additional_links.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					<p class="social-links">
 | 
				
			||||||
 | 
					  {% for link in site.data.additional_links %}
 | 
				
			||||||
 | 
					    <a href="{{ link.url | strip_newlines | strip_html | strip | normalize_whitespace | uri_escape }}">
 | 
				
			||||||
 | 
					      {{ link.name | strip_newlines | strip_html | strip | normalize_whitespace | smartify }}
 | 
				
			||||||
 | 
					    </a>
 | 
				
			||||||
 | 
					    <!-- Separation trait -->
 | 
				
			||||||
 | 
					    {% unless forloop.last %}
 | 
				
			||||||
 | 
					      <span>|</span>
 | 
				
			||||||
 | 
					    {% endunless %}
 | 
				
			||||||
 | 
					  {% endfor %}
 | 
				
			||||||
 | 
					</p>
 | 
				
			||||||
@@ -1,9 +0,0 @@
 | 
				
			|||||||
<p class="social-links">
 | 
					 | 
				
			||||||
  {% for item in site.social_links %}
 | 
					 | 
				
			||||||
    <a href="{{ item[1] | strip_newlines | strip_html | strip | normalize_whitespace | uri_escape }}">
 | 
					 | 
				
			||||||
      {{ item[0] | strip_newlines | strip_html | strip | normalize_whitespace | smartify | downcase | capitalize }}
 | 
					 | 
				
			||||||
    </a>
 | 
					 | 
				
			||||||
    <!-- Separation trait -->
 | 
					 | 
				
			||||||
    {% unless forloop.last %}|{% endunless %}
 | 
					 | 
				
			||||||
  {% endfor %}
 | 
					 | 
				
			||||||
</p>
 | 
					 | 
				
			||||||
@@ -5,8 +5,8 @@ layout: page
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
{% assign postsByYear = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %}
 | 
					{% assign postsByYear = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<!-- Links to social networks -->
 | 
					<!-- Links to external resources -->
 | 
				
			||||||
{% include sociallinks.html %}
 | 
					{% include additional_links.html %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% for year in postsByYear %}
 | 
					{% for year in postsByYear %}
 | 
				
			||||||
  <h2>{{ year.name | strip_newlines | strip_html | strip | normalize_whitespace | slugify }}</h2>
 | 
					  <h2>{{ year.name | strip_newlines | strip_html | strip | normalize_whitespace | slugify }}</h2>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user