60 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			60 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
{% extends "base.html" %}
 | 
						|
{% block content %}
 | 
						|
 | 
						|
<section class="home">
 | 
						|
	<section>
 | 
						|
		<p>Filip Rojek <filip@filiprojek.cz></p>
 | 
						|
		<br>
 | 
						|
		<p>Linux sysadmin, software engineer <a href="https://www.fofrweb.com/" target="_blank">@fofrweb</a>,<br> GNU/Linux <a href="http://voidlinux.org" target="_blank">Void</a> contributor and student at Charles University in Prague<span class="underscore">_</span><p>
 | 
						|
		<br>
 | 
						|
		<p>PGP: <a href="https://keys.openpgp.org/vks/v1/by-fingerprint/CA3D9BE28315B49164130CD97E65EA58C6075F09" target="_blank">0x7E65EA58C6075F09</a></p>
 | 
						|
		<br>
 | 
						|
		<p><a href="https://git.filiprojek.cz/fr" target="_blank">Git</a> <a href="https://t.me/filiprojek" target="_blank">Telegram</a> <a href="#" id="pgpmobile" title="copy pgp to clipboard">PGP</a></p>
 | 
						|
	</section>
 | 
						|
 | 
						|
	<script>
 | 
						|
		const _ = document.querySelector(".underscore")
 | 
						|
		let b = false
 | 
						|
		setInterval(() => {
 | 
						|
			b ? _.style.visibility = "visible" : _.style.visibility = "hidden"
 | 
						|
			b = !b
 | 
						|
		}, 500)
 | 
						|
	</script>
 | 
						|
</section>
 | 
						|
 | 
						|
{# how many items to show #}
 | 
						|
{% set n = 6 %}
 | 
						|
 | 
						|
{# fetch sections #}
 | 
						|
{% set posts = get_section(path="posts/_index.md") %}
 | 
						|
{% set projects = get_section(path="projects/_index.md") %}
 | 
						|
 | 
						|
{# merge, sort by date (desc), take first n #}
 | 
						|
{% set latest = posts.pages
 | 
						|
	| concat(with=projects.pages)
 | 
						|
	| sort(attribute="date")
 | 
						|
	| reverse
 | 
						|
	| slice(end=n)
 | 
						|
%}
 | 
						|
 | 
						|
<section class="latest-projects-posts">
 | 
						|
	<h2>Latest projects & posts</h2>
 | 
						|
	{% for page in latest %}
 | 
						|
		<div class="project">
 | 
						|
			<a class="title" href="{{ page.permalink }}">{{ page.title }}</a>
 | 
						|
			<p class="description">
 | 
						|
				{% if page.description %}{{ page.description }}{% else %}…{% endif %}
 | 
						|
			</p>
 | 
						|
			<hr>
 | 
						|
			<p>
 | 
						|
				{{ page.date }}
 | 
						|
				{% if page.path is starting_with("posts/") %} · Post
 | 
						|
				{% elif page.path is starting_with("projects/") %} · Project
 | 
						|
				{% endif %}
 | 
						|
			</p>
 | 
						|
		</div>
 | 
						|
	{% endfor %}
 | 
						|
</section>
 | 
						|
{% endblock content %}
 | 
						|
 |