New (old) design
This commit is contained in:
parent
d06d3b2806
commit
96c9911a8c
16 changed files with 64 additions and 146 deletions
|
@ -15,54 +15,27 @@
|
|||
{% block endhead %}{% endblock %}
|
||||
</head>
|
||||
<body class="{% block body_class %}{% endblock %}">
|
||||
<div class="page-content">
|
||||
<section class="main-content">
|
||||
{% block main_content %}asd{% endblock %}
|
||||
</section>
|
||||
<div class="page-content center">
|
||||
<header>
|
||||
<div class="avatar">
|
||||
<img class="avatar" src="{{ '/static/images/avatar.jpg'|asseturl }}">
|
||||
</div>
|
||||
<h1>Felipe Martín</h1>
|
||||
<img class="avatar" src="{{ '/static/images/avatar.jpg'|asseturl }}">
|
||||
<hr />
|
||||
<nav>
|
||||
<a {% if this.path == '/' %}class="text-bold"{% endif %} href="{{ '/'|url }}">/home</a>
|
||||
{% for section in site.get('/').children.order_by("title") %}
|
||||
<a {% if this.is_child_of(section) %}class="text-bold"{% endif %} href="{{ section|url }}">{{ section.path }}</a>
|
||||
{% endfor %}
|
||||
</nav>
|
||||
<hr />
|
||||
<ul class="social text-size-small">
|
||||
<li>
|
||||
<span class="title">E-mail</span>
|
||||
<a target="_blank" href="mailto:me@fmartingr.com">me@fmartingr.com</a>
|
||||
</li>
|
||||
<li>
|
||||
<span class="title">Github</span>
|
||||
<a target="_blank" href="https://github.com/fmartingr">fmartingr</a>
|
||||
</li>
|
||||
<li>
|
||||
<span class="title">LinkedIn</span>
|
||||
<a target="_blank" href="https://www.linkedin.com/in/fmartingr/">linkedin.com/fmartingr</a>
|
||||
</li>
|
||||
<li>
|
||||
<span class="title">Twitter</span>
|
||||
<a target="_blank" rel="me" href="https://twitter.com/fmartingr">@fmartingr</a>
|
||||
</li>
|
||||
<li>
|
||||
<span class="title">PGP</span>
|
||||
<a href="/pubkey.txt">716B C147 715E 716F</a>
|
||||
<li>
|
||||
<a href="{{ '/about'|url }}">[+ more]</a>
|
||||
</li>
|
||||
</ul>
|
||||
<hr />
|
||||
<ul class="social text-size-small">
|
||||
<li>
|
||||
<span class="title">Site created using</span>
|
||||
<a target="_blank" href="https://www.getlektor.com/">lektor</a>
|
||||
</li>
|
||||
</ul>
|
||||
</header>
|
||||
</div>
|
||||
{% block endbody %}{% endblock %}
|
||||
<hr>
|
||||
<section class="main-content">
|
||||
{% block main_content %}asd{% endblock %}
|
||||
</section>
|
||||
<hr>
|
||||
<footer>
|
||||
Site created using <a target="_blank" href="https://getlektor.com">Lektor</a>. Source code available in <a target="_blank" href="https://github.com/fmartingr/fmartingr.com">Github</a>
|
||||
</footer>
|
||||
{% block endbody %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
{{ render_blog_post(child, from_index=true) }}
|
||||
{% endfor %}
|
||||
|
||||
<div class="center">{{ render_pagination(this.pagination) }}</div>
|
||||
<div>{{ render_pagination(this.pagination) }}</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block endbody %}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
{% block main_content %}
|
||||
{{ render_blog_post(this) }}
|
||||
<div class="center block-info">
|
||||
<div class="block-info">
|
||||
If you want to approach me directly about this post use the most appropriate channel
|
||||
from <a href="{{ '/about'|url }}">the about page</a>.
|
||||
</div>
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
{% block main_content %}
|
||||
<h2>Latest blog posts</h2>
|
||||
{% for post in site.get('/blog').pagination.for_page(1).pagination.items %}
|
||||
<article class="blog-post center">
|
||||
<article class="blog-post">
|
||||
<h3 class="title"><a href="{{ post|url }}">{{ post.title }}</a></h3>
|
||||
<div class="info">{{ post.pub_date.strftime("%B %d, %Y") }}</div>
|
||||
<div class="info text-small">{{ post.pub_date.strftime("%B %d, %Y") }}</div>
|
||||
</article>
|
||||
<hr />
|
||||
{% if not loop.last %}<hr />{% endif %}
|
||||
{% endfor %}
|
||||
{{ this.body }}
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{% macro render_blog_post(post, from_index=false, include_content=true) %}
|
||||
{% set summary = post.body.html.split('<!-- readmore -->') %}
|
||||
<article class="blog-post center">
|
||||
<article class="blog-post">
|
||||
<h1 class="title"><a href="{{ post|url }}">{{ post.title }}</a></h1>
|
||||
<div class="info">
|
||||
Published on {{ post.pub_date.strftime("%B %d, %Y") }}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
{% block main_content %}
|
||||
<h2>{{ this.title }}</h2>
|
||||
<div class="center">
|
||||
<div>
|
||||
{{ this.body }}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue