mirror of
https://github.com/facundoolano/jorge.git
synced 2025-01-15 15:41:12 +01:00
56a92695f5
* cleanup command arguments * add base init files * implement init command * add some layouts * add index * add blog index * post preview * honor config in file server * sample post * sample markdown * add css style to initfiles * more style tweaks * more style tweaks
51 lines
2.1 KiB
HTML
51 lines
2.1 KiB
HTML
---
|
|
---
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta charset="utf-8">
|
|
{% if page.title %}
|
|
<title>{{page.head_title|default: page.title }} | {{ site.config.name }}</title>
|
|
{% else %}
|
|
<title>{{ site.config.name }}</title>
|
|
{% endif %}
|
|
<link type="application/atom+xml" rel="alternate" href="/feed.xml" title="{{ site.config.name }}"/>
|
|
<link rel="stylesheet" href="/assets/css/main.css">
|
|
|
|
<meta name="author" content="{{site.config.author}}">
|
|
<meta property="og:article:author" content="{{ site.config.author }}">
|
|
<meta property="og:site_name" content="{{ site.config.title }}">
|
|
|
|
{% if page.title %}
|
|
<meta property="og:title" content="{{ page.title|default: site.config.title }}">
|
|
<meta name="twitter:title" content="{{ page.title|default: site.config.title }}">
|
|
{% endif %}
|
|
|
|
{% if page.excerpt %}
|
|
<meta name="description" content="{{ page.excerpt | strip_html | xml_escape }}">
|
|
<meta name="og:description" content="{{ page.excerpt | strip_html | xml_escape }}">
|
|
<meta name="twitter:description" content="{{ page.excerpt | strip_html | xml_escape }}">
|
|
{% endif %}
|
|
|
|
{% if page.layout == "post" %}
|
|
<meta property="og:type" content="article">
|
|
<meta property="og:article:published_time" content="{{ page.date | date_to_xmlschema }}">
|
|
<meta property="og:url" content="{{ page.url | absolute_url }}">
|
|
<link rel="canonical" href="{{ page.url | absolute_url }}">
|
|
{% else %}
|
|
<meta property="og:type" content="website">
|
|
<meta property="og:url" content="{{ page.url | absolute_url }}">
|
|
<link rel="canonical" href="{{ page.url | absolute_url }}">
|
|
{% endif %}
|
|
|
|
{% if page.image != "" %}
|
|
<meta property="og:image" content="{{ page.image | absolute_url }}">
|
|
<meta name="twitter:image" content="{{ page.image | absolute_url }}">
|
|
{% endif %}
|
|
|
|
</head>
|
|
<body>
|
|
{{ content }}
|
|
</body>
|
|
</html>
|