From 4cdbf8f5da76a7ef508046d5ff7f3620c1924089 Mon Sep 17 00:00:00 2001 From: Stephan Date: Tue, 22 Dec 2020 13:18:51 +0100 Subject: [PATCH] inital commit --- assets/static/style.css | 42 ++++++++++++++++++++++++++++++++ content/about/contents.lr | 7 ++++++ content/contents.lr | 6 +++++ content/projects/contents.lr | 9 +++++++ models/page.ini | 11 +++++++++ templates/layout.html | 28 +++++++++++++++++++++ templates/macros/pagination.html | 15 ++++++++++++ templates/page.html | 6 +++++ wtf_eg_public.lektorproject | 2 ++ 9 files changed, 126 insertions(+) create mode 100644 assets/static/style.css create mode 100644 content/about/contents.lr create mode 100644 content/contents.lr create mode 100644 content/projects/contents.lr create mode 100644 models/page.ini create mode 100644 templates/layout.html create mode 100644 templates/macros/pagination.html create mode 100644 templates/page.html create mode 100644 wtf_eg_public.lektorproject diff --git a/assets/static/style.css b/assets/static/style.css new file mode 100644 index 0000000..7ff6e0b --- /dev/null +++ b/assets/static/style.css @@ -0,0 +1,42 @@ +body { + font-family: 'Verdana', sans-serif; + margin: 50px 25px; +} + +a { + color: #2a99b6; +} + +a:hover { + color: #33bbdf; +} + +header, footer, div.page { + width: 760px; + margin: 0 auto; + background: #daeef3; + padding: 20px 30px; +} + +header h1 { + color: #169bbd; + margin: 0; + font-weight: normal; + font-size: 42px; +} + +header nav ul { + list-style: none; + margin: 0; + padding: 0; +} + +header nav ul li { + display: inline; + margin: 0 8px 0 0; + padding: 0; +} + +div.page { + background: #f1fbfe; +} diff --git a/content/about/contents.lr b/content/about/contents.lr new file mode 100644 index 0000000..9edb4d5 --- /dev/null +++ b/content/about/contents.lr @@ -0,0 +1,7 @@ +title: About this Website +--- +body: + +This is a website that was made with the Lektor quickstart. + +And it does not contain a lot of information. diff --git a/content/contents.lr b/content/contents.lr new file mode 100644 index 0000000..bd35f7e --- /dev/null +++ b/content/contents.lr @@ -0,0 +1,6 @@ +title: Welcome to wtf_eg_public! +--- +body: + +This is a basic demo website that shows how to use Lektor for a basic +website with some pages. diff --git a/content/projects/contents.lr b/content/projects/contents.lr new file mode 100644 index 0000000..f3658c6 --- /dev/null +++ b/content/projects/contents.lr @@ -0,0 +1,9 @@ +title: Projects +--- +body: + +This is a list of the projects: + +* Project 1 +* Project 2 +* Project 3 diff --git a/models/page.ini b/models/page.ini new file mode 100644 index 0000000..dcddfe8 --- /dev/null +++ b/models/page.ini @@ -0,0 +1,11 @@ +[model] +name = Page +label = {{ this.title }} + +[fields.title] +label = Title +type = string + +[fields.body] +label = Body +type = markdown diff --git a/templates/layout.html b/templates/layout.html new file mode 100644 index 0000000..2416d3b --- /dev/null +++ b/templates/layout.html @@ -0,0 +1,28 @@ + + + +{% block title %}Welcome{% endblock %} — wtf_eg_public + +
+

wtf_eg_public

+ +
+
+ {% block body %}{% endblock %} +
+ + diff --git a/templates/macros/pagination.html b/templates/macros/pagination.html new file mode 100644 index 0000000..077cc5a --- /dev/null +++ b/templates/macros/pagination.html @@ -0,0 +1,15 @@ +{% macro render_pagination(pagination) %} + +{% endmacro %} diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..0430577 --- /dev/null +++ b/templates/page.html @@ -0,0 +1,6 @@ +{% extends "layout.html" %} +{% block title %}{{ this.title }}{% endblock %} +{% block body %} +

{{ this.title }}

+ {{ this.body }} +{% endblock %} diff --git a/wtf_eg_public.lektorproject b/wtf_eg_public.lektorproject new file mode 100644 index 0000000..2036a03 --- /dev/null +++ b/wtf_eg_public.lektorproject @@ -0,0 +1,2 @@ +[project] +name = wtf_eg_public