From 068e80dc63e6dedff52695c06721c0a29a9c14e9 Mon Sep 17 00:00:00 2001 From: L3D Date: Wed, 1 Feb 2023 00:42:18 +0100 Subject: [PATCH] Add initial content --- .gitattributes | 3 + .../fonts/eb-garamond-v19-latin-regular.ttf | 3 + .../fonts/eb-garamond-v19-latin-regular.woff | 3 + .../fonts/eb-garamond-v19-latin-regular.woff2 | 3 + assets/fonts/epilogue-v7-latin-700.ttf | 3 + assets/fonts/epilogue-v7-latin-700.woff | 3 + assets/fonts/epilogue-v7-latin-700.woff2 | 3 + assets/fonts/lato-v20-latin-700.ttf | 3 + assets/fonts/lato-v20-latin-700.woff | 3 + assets/fonts/lato-v20-latin-700.woff2 | 3 + assets/fonts/lato-v20-latin-700italic.ttf | 3 + assets/fonts/lato-v20-latin-700italic.woff | 3 + assets/fonts/lato-v20-latin-700italic.woff2 | 3 + assets/fonts/lato-v20-latin-900.ttf | 3 + assets/fonts/lato-v20-latin-900.woff | 3 + assets/fonts/lato-v20-latin-900.woff2 | 3 + assets/fonts/lato-v20-latin-900italic.woff | 3 + assets/fonts/lato-v20-latin-900italic.woff2 | 3 + assets/fonts/lato-v20-latin-italic.woff | 3 + assets/fonts/lato-v20-latin-italic.woff2 | 3 + assets/fonts/lato-v20-latin-regular.ttf | 3 + assets/fonts/lato-v20-latin-regular.woff | 3 + assets/fonts/lato-v20-latin-regular.woff2 | 3 + assets/scss/_darktheme.scss | 112 ++++++++++++++++++ assets/scss/_fonts.scss | 66 +++++++++++ assets/scss/_variables.scss | 3 + assets/scss/main.scss | 6 + assets/scss/sitemap.scss | 16 +++ content/contents.lr | 17 +++ content/sitemap.xml/contents.lr | 4 + flowblocks/table.ini | 21 ++++ models/page.ini | 16 +++ templates/layout.html | 25 ++++ templates/page.html | 6 + templates/sitemap.xml | 9 ++ 35 files changed, 370 insertions(+) create mode 100644 assets/fonts/eb-garamond-v19-latin-regular.ttf create mode 100644 assets/fonts/eb-garamond-v19-latin-regular.woff create mode 100644 assets/fonts/eb-garamond-v19-latin-regular.woff2 create mode 100644 assets/fonts/epilogue-v7-latin-700.ttf create mode 100644 assets/fonts/epilogue-v7-latin-700.woff create mode 100644 assets/fonts/epilogue-v7-latin-700.woff2 create mode 100644 assets/fonts/lato-v20-latin-700.ttf create mode 100644 assets/fonts/lato-v20-latin-700.woff create mode 100644 assets/fonts/lato-v20-latin-700.woff2 create mode 100644 assets/fonts/lato-v20-latin-700italic.ttf create mode 100644 assets/fonts/lato-v20-latin-700italic.woff create mode 100644 assets/fonts/lato-v20-latin-700italic.woff2 create mode 100644 assets/fonts/lato-v20-latin-900.ttf create mode 100644 assets/fonts/lato-v20-latin-900.woff create mode 100644 assets/fonts/lato-v20-latin-900.woff2 create mode 100644 assets/fonts/lato-v20-latin-900italic.woff create mode 100644 assets/fonts/lato-v20-latin-900italic.woff2 create mode 100644 assets/fonts/lato-v20-latin-italic.woff create mode 100644 assets/fonts/lato-v20-latin-italic.woff2 create mode 100644 assets/fonts/lato-v20-latin-regular.ttf create mode 100644 assets/fonts/lato-v20-latin-regular.woff create mode 100644 assets/fonts/lato-v20-latin-regular.woff2 create mode 100644 assets/scss/_darktheme.scss create mode 100644 assets/scss/_fonts.scss create mode 100644 assets/scss/_variables.scss create mode 100644 assets/scss/main.scss create mode 100644 assets/scss/sitemap.scss create mode 100644 content/contents.lr create mode 100644 content/sitemap.xml/contents.lr create mode 100644 flowblocks/table.ini create mode 100644 models/page.ini create mode 100644 templates/layout.html create mode 100644 templates/page.html create mode 100644 templates/sitemap.xml diff --git a/.gitattributes b/.gitattributes index 385fdf7..b3607c0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3,3 +3,6 @@ assets/fonts/ filter=lfs diff=lfs merge=lfs -text **.png filter=lfs diff=lfs merge=lfs -text **.gif filter=lfs diff=lfs merge=lfs -text **.mp4 filter=lfs diff=lfs merge=lfs -text +**.ttf filter=lfs diff=lfs merge=lfs -text +**.woff filter=lfs diff=lfs merge=lfs -text +**.woff2 filter=lfs diff=lfs merge=lfs -text diff --git a/assets/fonts/eb-garamond-v19-latin-regular.ttf b/assets/fonts/eb-garamond-v19-latin-regular.ttf new file mode 100644 index 0000000..4d7fb3b --- /dev/null +++ b/assets/fonts/eb-garamond-v19-latin-regular.ttf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:377d096cc3cff96f6d7ffe99f3fe846576c8b5a7126dd385780d1a671506842f +size 48860 diff --git a/assets/fonts/eb-garamond-v19-latin-regular.woff b/assets/fonts/eb-garamond-v19-latin-regular.woff new file mode 100644 index 0000000..ab4f97e --- /dev/null +++ b/assets/fonts/eb-garamond-v19-latin-regular.woff @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:288e0202e533c89ec973e2503362102be3c51a059d8df79178ec3b0b18859052 +size 24208 diff --git a/assets/fonts/eb-garamond-v19-latin-regular.woff2 b/assets/fonts/eb-garamond-v19-latin-regular.woff2 new file mode 100644 index 0000000..3cd453b --- /dev/null +++ b/assets/fonts/eb-garamond-v19-latin-regular.woff2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e0e2e4f3925ac951585a8e9a50a38861646106b56c059d111b80da01eb5976d5 +size 20472 diff --git a/assets/fonts/epilogue-v7-latin-700.ttf b/assets/fonts/epilogue-v7-latin-700.ttf new file mode 100644 index 0000000..6639cdd --- /dev/null +++ b/assets/fonts/epilogue-v7-latin-700.ttf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4fc3e7874a849144859eeac015c55ef0dd6cb854018e150f3991ddf8040cea51 +size 28136 diff --git a/assets/fonts/epilogue-v7-latin-700.woff b/assets/fonts/epilogue-v7-latin-700.woff new file mode 100644 index 0000000..2089664 --- /dev/null +++ b/assets/fonts/epilogue-v7-latin-700.woff @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c9f1b94c4cbd99bfa1bc9a006bfb49a16d7193b2f4c7abedbefe019cd3d67d96 +size 16040 diff --git a/assets/fonts/epilogue-v7-latin-700.woff2 b/assets/fonts/epilogue-v7-latin-700.woff2 new file mode 100644 index 0000000..52629c3 --- /dev/null +++ b/assets/fonts/epilogue-v7-latin-700.woff2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ddd35ba81a2ceb26a3bf3bd92a3094b5a31b51940cda90674f7fa2306c56dcec +size 12556 diff --git a/assets/fonts/lato-v20-latin-700.ttf b/assets/fonts/lato-v20-latin-700.ttf new file mode 100644 index 0000000..95d5c23 --- /dev/null +++ b/assets/fonts/lato-v20-latin-700.ttf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a6b44938bc5bcb4c2a08ca8a762ec10566c66026f40704f13cb47e370b5c8e2c +size 59032 diff --git a/assets/fonts/lato-v20-latin-700.woff b/assets/fonts/lato-v20-latin-700.woff new file mode 100644 index 0000000..269d7ed --- /dev/null +++ b/assets/fonts/lato-v20-latin-700.woff @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9f5a6fb49257579436c7bd8d42fa5d052336132b6f9f8972a7c9c00d93ed18b4 +size 28052 diff --git a/assets/fonts/lato-v20-latin-700.woff2 b/assets/fonts/lato-v20-latin-700.woff2 new file mode 100644 index 0000000..995ebb7 --- /dev/null +++ b/assets/fonts/lato-v20-latin-700.woff2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d3ca80fa271e94b0c36cf3053b0f806b7a42bb3395b424c99dc0bd218f0ac20 +size 22992 diff --git a/assets/fonts/lato-v20-latin-700italic.ttf b/assets/fonts/lato-v20-latin-700italic.ttf new file mode 100644 index 0000000..165afb8 --- /dev/null +++ b/assets/fonts/lato-v20-latin-700italic.ttf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d0bda0406cdccdcab5012e0440daff29e9a1e951cce29fb5a2aadf43faabadce +size 62308 diff --git a/assets/fonts/lato-v20-latin-700italic.woff b/assets/fonts/lato-v20-latin-700italic.woff new file mode 100644 index 0000000..74e95ac --- /dev/null +++ b/assets/fonts/lato-v20-latin-700italic.woff @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a5216aaa260e9f02e159f85714ccd7cd38c444876faf5383e231b405e2a61b3 +size 29920 diff --git a/assets/fonts/lato-v20-latin-700italic.woff2 b/assets/fonts/lato-v20-latin-700italic.woff2 new file mode 100644 index 0000000..74b6f32 --- /dev/null +++ b/assets/fonts/lato-v20-latin-700italic.woff2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8ad012803e63980f185a7ee45c983ff2ab99b7751fc8f817f86420d620f244d9 +size 24428 diff --git a/assets/fonts/lato-v20-latin-900.ttf b/assets/fonts/lato-v20-latin-900.ttf new file mode 100644 index 0000000..9529e93 --- /dev/null +++ b/assets/fonts/lato-v20-latin-900.ttf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0faf89b39cb8924a206a6b7cf2cc56d2e03a25788f3b6adb45529650b581d780 +size 55492 diff --git a/assets/fonts/lato-v20-latin-900.woff b/assets/fonts/lato-v20-latin-900.woff new file mode 100644 index 0000000..cdb3d8a --- /dev/null +++ b/assets/fonts/lato-v20-latin-900.woff @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7831e273f41fef8485564286f3578d2847754db375befdb48b8ce37e1e1f3a57 +size 27524 diff --git a/assets/fonts/lato-v20-latin-900.woff2 b/assets/fonts/lato-v20-latin-900.woff2 new file mode 100644 index 0000000..0b91e68 --- /dev/null +++ b/assets/fonts/lato-v20-latin-900.woff2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7d4243c8e973ec0cfc707904891ae4e3efc03dbc8923acb9755f9a35c92269a6 +size 22572 diff --git a/assets/fonts/lato-v20-latin-900italic.woff b/assets/fonts/lato-v20-latin-900italic.woff new file mode 100644 index 0000000..048a468 --- /dev/null +++ b/assets/fonts/lato-v20-latin-900italic.woff @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7109ac378ee8e26dc7cd27c604252b6ebd8bf7b15d8703c3b2352f49aae245b5 +size 28952 diff --git a/assets/fonts/lato-v20-latin-900italic.woff2 b/assets/fonts/lato-v20-latin-900italic.woff2 new file mode 100644 index 0000000..12f948e --- /dev/null +++ b/assets/fonts/lato-v20-latin-900italic.woff2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ad68b1eebdd10516b4cd884ca26e3f2f6086efc2a025badffb5f08e7fb110807 +size 23696 diff --git a/assets/fonts/lato-v20-latin-italic.woff b/assets/fonts/lato-v20-latin-italic.woff new file mode 100644 index 0000000..4e2d88d --- /dev/null +++ b/assets/fonts/lato-v20-latin-italic.woff @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d98792e1f2eaa92968f94c35f08da7b23db7333c79cdb657dca3a819d8e6d0d9 +size 29836 diff --git a/assets/fonts/lato-v20-latin-italic.woff2 b/assets/fonts/lato-v20-latin-italic.woff2 new file mode 100644 index 0000000..f74784a --- /dev/null +++ b/assets/fonts/lato-v20-latin-italic.woff2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ccb5febf8ac335a1b768a7a2087fa4362cb3a0a9392e2e451df9d9825e88e5db +size 24440 diff --git a/assets/fonts/lato-v20-latin-regular.ttf b/assets/fonts/lato-v20-latin-regular.ttf new file mode 100644 index 0000000..9f5a160 --- /dev/null +++ b/assets/fonts/lato-v20-latin-regular.ttf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:acb428bb824a7f7d865446caa0fe1f6885aa0723e43848042f51db37f0926f1f +size 60524 diff --git a/assets/fonts/lato-v20-latin-regular.woff b/assets/fonts/lato-v20-latin-regular.woff new file mode 100644 index 0000000..05af44e --- /dev/null +++ b/assets/fonts/lato-v20-latin-regular.woff @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:04050bae4cc3b9ccd20d3c7f57f5b1ba249d4a54d6eff75a1e4df504362e8c00 +size 28660 diff --git a/assets/fonts/lato-v20-latin-regular.woff2 b/assets/fonts/lato-v20-latin-regular.woff2 new file mode 100644 index 0000000..4368b37 --- /dev/null +++ b/assets/fonts/lato-v20-latin-regular.woff2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c3c0d3f472358aac78455515c4800771426770c22698e2486d39fdb5505634e1 +size 23484 diff --git a/assets/scss/_darktheme.scss b/assets/scss/_darktheme.scss new file mode 100644 index 0000000..dc6ae5a --- /dev/null +++ b/assets/scss/_darktheme.scss @@ -0,0 +1,112 @@ +* { + -webkit-box-sizing: border-box; + box-sizing: border-box; +} + +body { + font-family: $default_font, sans-serif; + line-height: 1.75em; + font-size: 16pt; + background-color: $background_color; + color: $font_color; + margin-left: auto; + margin-right: auto; + width: 90%; + min-width: 400px; +} + +p { + font-size: 16pt; +} + +h1 { + font-size: 30pt; + line-height: 34px; +} + +h2 { + font-size: 22pt; + line-height: 25px; +} + +h3 { + font-size: 18pt; + line-height: 27px; + padding-top: 15px; + padding-bottom: 15px; + border-bottom: 1px solid #D8D8D8; + border-top: 1px solid #D8D8D8; +} + +hr { + height: 1px; + background-color: #d8d8d8; + border: none; + width: 100%; + margin: 0px; +} + +a[href] { + color: #1e8ad6; + &:hover { + color: #3ba0e6; + } +} + +img { + max-width: 100%; + height: auto; +} + +li { + line-height: 1.5em; +} + +aside { + max-width: 90%; + margin: 0 auto; + border: 1px solid lightgrey; + padding: 5px 15px; +} + +[class *= "sidebar"] { + max-width: 90%; + margin: 0 auto; + border: 1px solid lightgrey; + padding: 5px 15px; +} + +[id *= "sidebar"] { + max-width: 90%; + margin: 0 auto; + border: 1px solid lightgrey; + padding: 5px 15px; +} + +@media (min-width: 1201px) { + body { + width: 1150px; + } +} + +@media (min-width: 1921px) { + body { + font-size: 24pt; + width: 1500px; + } + p { + font-size: 24pt; + } + + h1 { + font-size: 50pt; + } + + h2 { + font-size: 42pt; + } + + h3 { + font-size: 30pt; + } +} diff --git a/assets/scss/_fonts.scss b/assets/scss/_fonts.scss new file mode 100644 index 0000000..3f142f6 --- /dev/null +++ b/assets/scss/_fonts.scss @@ -0,0 +1,66 @@ +// Lato font +@font-face { + font-family: 'Lato'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: local(''), + url('/fonts/lato-v20-latin-regular.woff2') format('woff2'), + url('/fonts/lato-v20-latin-regular.woff') format('woff'), + url('/fonts/lato-v20-latin-regular.ttf') format('truetype'); +} + +@font-face { + font-family: 'Lato'; + font-style: normal; + font-weight: 700; + font-display: swap; + src: local(''), + url('/fonts/lato-v20-latin-700.woff2') format('woff2'), + url('/fonts/lato-v20-latin-700.woff') format('woff'), + url('/fonts/lato-v20-latin-700.ttf') format('truetype'); +} + +@font-face { + font-family: 'Lato'; + font-style: normal; + font-weight: 900; + font-display: swap; + src: local(''), + url('/fonts/lato-v20-latin-900.woff2') format('woff2'), + url('/fonts/lato-v20-latin-900.woff') format('woff'), + url('/fonts/lato-v20-latin-900.ttf') format('truetype'); +} + +@font-face { + font-family: 'Lato'; + font-style: italic; + font-weight: 400; + font-display: swap; + src: local(''), + url('/fonts/lato-v20-latin-italic.woff2') format('woff2'), + url('/fonts/lato-v20-latin-italic.woff') format('woff'), + url('/fonts/lato-v20-latin-italic.ttf') format('truetype'); +} + +@font-face { + font-family: 'Lato'; + font-style: italic; + font-weight: 700; + font-display: swap; + src: local(''), + url('/fonts/lato-v20-latin-700italic.woff2') format('woff2'), + url('/fonts/lato-v20-latin-700italic.woff') format('woff'), + url('/fonts/lato-v20-latin-700italic.ttf') format('truetype'); +} + +@font-face { + font-family: 'Lato'; + font-style: italic; + font-weight: 900; + font-display: swap; + src: local(''), + url('/fonts/lato-v20-latin-900italic.woff2') format('woff2'), + url('/fonts/lato-v20-latin-900italic.woff') format('woff'), + url('/fonts/lato-v20-latin-900italic.ttf') format('truetype'); +} diff --git a/assets/scss/_variables.scss b/assets/scss/_variables.scss new file mode 100644 index 0000000..f2e6114 --- /dev/null +++ b/assets/scss/_variables.scss @@ -0,0 +1,3 @@ +$default_font: Lato; +$background_color: #222; +$font_color: #f5f1f0; diff --git a/assets/scss/main.scss b/assets/scss/main.scss new file mode 100644 index 0000000..d9d7eed --- /dev/null +++ b/assets/scss/main.scss @@ -0,0 +1,6 @@ +// Parameter +@import "_fonts"; +@import "_variables"; + +// CSS +@import "_darktheme"; diff --git a/assets/scss/sitemap.scss b/assets/scss/sitemap.scss new file mode 100644 index 0000000..62c4d0b --- /dev/null +++ b/assets/scss/sitemap.scss @@ -0,0 +1,16 @@ +@import "_variables"; + +urlset { + background-color: $background_color; + url { + color: $font_color; + &:after { + content: '\a'; + white-space: pre; + } + &:before { + content: '> '; + white-space: pre; + } + } +} diff --git a/content/contents.lr b/content/contents.lr new file mode 100644 index 0000000..79e7ff1 --- /dev/null +++ b/content/contents.lr @@ -0,0 +1,17 @@ +title: Ansible Roles +--- +body: + +This is a basic demo website that shows how to use Lektor for a basic +website with some pages. +--- +table: + +#### table #### +name: Ansible Role Gitea +---- +galaxy_name: do1jlr.gitea +---- +galaxy_url: https://galaxy.ansible.com/do1jlr/gitea +---- +galaxy_icon: https://raw.githubusercontent.com/roles-ansible/ansible_role_gitea/main/.github/galaxy.svg diff --git a/content/sitemap.xml/contents.lr b/content/sitemap.xml/contents.lr new file mode 100644 index 0000000..ffd5fad --- /dev/null +++ b/content/sitemap.xml/contents.lr @@ -0,0 +1,4 @@ +_template: sitemap.xml +--- +_model: none +_discoverable: no diff --git a/flowblocks/table.ini b/flowblocks/table.ini new file mode 100644 index 0000000..d324dff --- /dev/null +++ b/flowblocks/table.ini @@ -0,0 +1,21 @@ +[block] +name = Add Ansible Repository +button_label = Add Ansible Repo + +[fields.name] +label = Ansible Role Name +type = string + +[fields.galaxy_name] +label = Ansible Galaxy Name +type = string +width = 1/3 + +[fields.galaxy_url] +label = Ansible Galaxy Address +type = url +width = 2/3 + +[fields.galaxy_icon] +label = Ansible Galaxy Icon +type = url diff --git a/models/page.ini b/models/page.ini new file mode 100644 index 0000000..ceb87d4 --- /dev/null +++ b/models/page.ini @@ -0,0 +1,16 @@ +[model] +name = Page +label = {{ this.title }} + +[fields.title] +label = Title +type = string + +[fields.table] +label = Our Ansible Roles +type = flow +flow_blocks = table + +[fields.body] +label = Body +type = markdown diff --git a/templates/layout.html b/templates/layout.html new file mode 100644 index 0000000..a857680 --- /dev/null +++ b/templates/layout.html @@ -0,0 +1,25 @@ + + + + + + + + + + + + {% block title %}Welcome{% endblock %} — Roles Ansible + +
+ + Animated Ansible Logo + +
+
+ {% block body %}{% endblock %} +
+ + 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/templates/sitemap.xml b/templates/sitemap.xml new file mode 100644 index 0000000..8c832fe --- /dev/null +++ b/templates/sitemap.xml @@ -0,0 +1,9 @@ + + + {%- for page in [site.root] if page != this recursive %} + {%- if not page.hide_from_global_index %} + {{ page|url(external=true) }} + {{- loop(page.children) }} + {%- endif %} + {%- endfor %} +