initial commit
This commit is contained in:
commit
92b51ec63b
5 changed files with 42 additions and 0 deletions
7
article_template.html
Normal file
7
article_template.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<title>{{ article.title }} - {{ site.name }}</title>
|
||||||
|
<a href="{{ site.url }}">Back to {{ site.name }}</a>
|
||||||
|
|
||||||
|
<h1>{{ article.title }}</h1>
|
||||||
|
<h4>{{ article.summary }}</h4>
|
||||||
|
|
||||||
|
{{ article.content|safe }}
|
6
index.html
Normal file
6
index.html
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<title>{{ site.name }}</title>
|
||||||
|
|
||||||
|
{% for article in articles %}
|
||||||
|
<h3>{{ article.title }}</h3>
|
||||||
|
<p>{{ article.summary }}</p>
|
||||||
|
{% endfor %}
|
24
site_template.html
Normal file
24
site_template.html
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
{% if article %}
|
||||||
|
<title>{{ article.title }}</title>
|
||||||
|
<meta property="og:title" content="{{ article.title }}" />
|
||||||
|
<meta property="og:description" content="{{ article.summary }}" />
|
||||||
|
<meta property="og:type" content="article" />
|
||||||
|
{% else %}
|
||||||
|
<title>{{ site.name }}</title>
|
||||||
|
<meta property="og:title" content="{{ site.name }}" />
|
||||||
|
<meta property="og:description" content="{{ site.description }}" />
|
||||||
|
<meta property="og:type" content="website" />
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<meta property="og:url" content="{{ url }}" />
|
||||||
|
<meta property="og:image" content="/favicon.ico" />
|
||||||
|
<meta property="og:site_name" content="{{ site.name }}" />
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/static/style.css" />
|
||||||
|
</head>
|
||||||
|
</html>
|
0
static/style.css
Normal file
0
static/style.css
Normal file
5
template.json
Normal file
5
template.json
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"version": 1,
|
||||||
|
"name": "basic template",
|
||||||
|
"articles_per_page": 10
|
||||||
|
}
|
Loading…
Reference in a new issue