Initial commit
This commit is contained in:
commit
edb5816892
30 changed files with 534 additions and 0 deletions
31
templates/_base.html
Normal file
31
templates/_base.html
Normal file
|
@ -0,0 +1,31 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>{% block page_title %}{% endblock %}</title>
|
||||
<link href='https://fonts.googleapis.com/css?family=Antic+Slab' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" href="{{ '/static/css/style.css'|asseturl }}">
|
||||
</head>
|
||||
<body class="{% block body_class %}{% endblock %}">
|
||||
<header class="center">
|
||||
<h1>Felipe Martín</h1>
|
||||
<h2>Be incomprehensible. If they can't understand, they can't disagree.</h2>
|
||||
<nav class="main-menu">
|
||||
<a href="{{ '/'|url }}">About me</a> //
|
||||
<a href="{{ '/blog'|url }}">Blog</a> //
|
||||
<a href="{{ '/portfolio'|url }}">Portfolio</a>
|
||||
</nav>
|
||||
<hr class="light">
|
||||
</header>
|
||||
{% block main_content %}{% endblock %}
|
||||
<footer class="center text-center">
|
||||
<hr class="light">
|
||||
<div class="center text-center">
|
||||
<a href="mailto:me@fmartingr.com" target="_blank">E-mail</a> //
|
||||
<a href="https://telegram.me/fmartingr" target="_blank">Telegram</a> //
|
||||
<a href="http://es.linkedin.com/in/felipemartingarcia" target="_blank">LinkedIn</a> //
|
||||
<a href="https://github.com/fmartingr" target="_blank">Github</a> //
|
||||
<a href="https://twitter.com/fmartingr" target="_blank">Twitter</a>
|
||||
</div>
|
||||
</footer>
|
||||
<script type="text/javascript" src="{{ 'static/js/app-min.js'|url }}"></script>
|
||||
</body>
|
||||
</html>
|
1
templates/blog/_base.html
Normal file
1
templates/blog/_base.html
Normal file
|
@ -0,0 +1 @@
|
|||
{% extends "_base.html" %}
|
11
templates/blog/list.html
Normal file
11
templates/blog/list.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{% extends "blog/_base.html" %}
|
||||
{% from "macros/blog.html" import render_blog_post %}
|
||||
{% from "macros/pagination.html" import render_pagination %}
|
||||
|
||||
{% block main_content %}
|
||||
{% for child in this.pagination.items %}
|
||||
{{ render_blog_post(child, from_index=true) }}
|
||||
{% endfor %}
|
||||
|
||||
<div class="center">{{ render_pagination(this.pagination) }}</div>
|
||||
{% endblock %}
|
8
templates/blog/post.html
Normal file
8
templates/blog/post.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{% extends "blog/_base.html" %}
|
||||
{% from "macros/blog.html" import render_blog_post %}
|
||||
|
||||
{% block main_content %}
|
||||
{{ render_blog_post(this) }}
|
||||
{% endblock %}
|
||||
|
||||
{% block body_class %}blog post{% endblock %}
|
1
templates/error/500.html
Normal file
1
templates/error/500.html
Normal file
|
@ -0,0 +1 @@
|
|||
500
|
19
templates/home.html
Normal file
19
templates/home.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
{% extends "_base.html" %}
|
||||
|
||||
{% block page_title %}About me // Felipe Martín{% endblock %}
|
||||
|
||||
{% block main_content %}
|
||||
<div class="grid center">
|
||||
<div class="col-1-3">
|
||||
<img src="{{ 'static/images/avatar.png'|url }}">
|
||||
</div>
|
||||
<div class="col-2-3">
|
||||
<p>Hi! I'm Felipe, and I am a developer. Whatever that is.</p>
|
||||
<p>I have been playing with code for a while now, but I also enjoy geeking around with computers, algorithms and other stuff; the less I know about it, the better! Learning new things every day is my way of life.</p>
|
||||
<p>I think that developers are like artists, writers and composers... we all make art. But we don't use strokes and colors, words or notes, we make it through code. And I really love it.</p>
|
||||
<p>If you want to get in touch, feel free to drop me a line.</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block body_class %}home{% endblock %}
|
11
templates/macros/blog.html
Normal file
11
templates/macros/blog.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{% macro render_blog_post(post, from_index=false) %}
|
||||
<article class="center">
|
||||
<h1><a href="{{ post|url }}">{{ post.title }}</a></h1>
|
||||
<div class="info">
|
||||
Published on {{ post.pub_date }}. // <a href="#">No comments.</a>
|
||||
</div>
|
||||
<div class="content">
|
||||
{{ post.body }}
|
||||
</div>
|
||||
</article>
|
||||
{% endmacro %}
|
15
templates/macros/pagination.html
Normal file
15
templates/macros/pagination.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
{% macro render_pagination(pagination) %}
|
||||
<div class="pagination">
|
||||
{% if pagination.has_prev %}
|
||||
<a href="{{ pagination.prev|url }}">« Previous</a>
|
||||
{% else %}
|
||||
<span class="disabled">« Previous</span>
|
||||
{% endif %}
|
||||
| {{ pagination.page }} |
|
||||
{% if pagination.has_next %}
|
||||
<a href="{{ pagination.next|url }}">Next »</a>
|
||||
{% else %}
|
||||
<span class="disabled">Next »</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endmacro %}
|
5
templates/portfolio.html
Normal file
5
templates/portfolio.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
{% extends "_base.html" %}
|
||||
|
||||
{% block main_content %}
|
||||
portfolio
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue