diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2018-02-18 22:51:57 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2018-02-18 22:51:57 +0100 |
| commit | 3c62a936378e490e99c2ac8955797464216b1691 (patch) | |
| tree | 23145a905ae399414399ebe5862d804226c8e849 /_layouts | |
| download | jo.mssola.com-3c62a936378e490e99c2ac8955797464216b1691.tar.gz jo.mssola.com-3c62a936378e490e99c2ac8955797464216b1691.zip | |
Initial commit
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to '_layouts')
| -rw-r--r-- | _layouts/default.html | 31 | ||||
| -rw-r--r-- | _layouts/post.html | 37 |
2 files changed, 68 insertions, 0 deletions
diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..8db38f6 --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,31 @@ +<!DOCTYPE html> +<html> +<head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> + <title>{% if page.title %}{{ site.title }} - {% t page.title %}{% else %}{{ site.title }}{% endif %}</title> + + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}"> + + <!-- We have the same CSS file for all languages --> + <link href="{{ "/stylesheets/main.css" | prepend: site.baseurl_root }}" rel="stylesheet" type="text/css" /> + + <!-- Empty favicon --> + <link href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQEAYAAABPYyMiAAAABmJLR0T///////8JWPfcAAAACXBIWXMAAABIAAAASABGyWs+AAAAF0lEQVRIx2NgGAWjYBSMglEwCkbBSAcACBAAAeaR9cIAAAAASUVORK5CYII=" rel="icon" type="image/x-icon" /> + + <!-- Feeds --> + <link href="/feed.xml" type="application/rss+xml" rel="alternate" title="Entrades al blog en català" /> + <link href="/feed.en.xml" type="application/rss+xml" rel="alternate" title="Blog posts in english" /> +</head> +<body> + {% include header.html %} + + <main class="page-content" aria-label="Content"> + <div class="wrapper"> + {{ content }} + </div> + </main > + + {% include footer.html %} +</body> +</html> diff --git a/_layouts/post.html b/_layouts/post.html new file mode 100644 index 0000000..71ffb82 --- /dev/null +++ b/_layouts/post.html @@ -0,0 +1,37 @@ +--- +layout: default +--- + + +<h1 class="post-title-smaller"> + {% t page.title %}{% if page.subtitle %}.<small class="post-subtitle"> {{ page.subtitle }}</small>{% endif %} +</h1> + +<p class="post-meta"> + {% t blog.posted_on %} + {% if site.lang == "ca" %} + {% include date.html date=page.date %} + {{ pre }}{{ day }} de {{ month }} del {{ year }} + {% else %} + {{ post.date | date: "%B %-d, %Y" }} + {% endif %} + {% t footer.by %} {{ site.author }} +</p> + +{{ content }} + +<div class="post-notice"> + <p> + {% t blog.notice %} + <a href="https://creativecommons.org/licenses/by-nd/4.0/">Creative Commons BY-ND 4.0</a>. + </p> + <p> + {% t blog.rss %} + + {% if site.lang == "ca" %} + <a href="/feed.xml">feed de RSS</a>. + {% else %} + <a href="/feed.en.xml">RSS Feed</a>. + {% endif %} + </p> +</div> |
