From 3caa2027c4c0d77c2706aac5356ce4aa666379a1 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Fri, 13 Mar 2020 18:28:40 +0300 Subject: style/layout changes; gitignore --- .gitignore | 1 + content/weblog/2018-07-21_first-post/index.md | 2 +- static/css/yaroslavps.css | 54 ++++++++++++++++++++++++--- static/svg/background.svg | 4 ++ templates/archive.html | 7 ++-- templates/base.html | 20 +++++++++- templates/index.html | 6 ++- templates/page.html | 5 +-- templates/weblog.html | 7 +++- 9 files changed, 88 insertions(+), 18 deletions(-) create mode 100644 .gitignore create mode 100644 static/svg/background.svg diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..364fdec --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +public/ diff --git a/content/weblog/2018-07-21_first-post/index.md b/content/weblog/2018-07-21_first-post/index.md index 3904e53..365204c 100644 --- a/content/weblog/2018-07-21_first-post/index.md +++ b/content/weblog/2018-07-21_first-post/index.md @@ -1,6 +1,6 @@ +++ title = "A weblog by Yaroslav de la Peña Smirnov" -date = 2018-07-21T09:06:00Z +date = 2018-07-21T20:06:00Z +++ Hello, and welcome to my weblog. As you may have read in my home page, I will be diff --git a/static/css/yaroslavps.css b/static/css/yaroslavps.css index f4f722f..21e70a6 100644 --- a/static/css/yaroslavps.css +++ b/static/css/yaroslavps.css @@ -3,7 +3,10 @@ html, body { width: 100%; min-height: 100vh; - background-color: #1b1e25; + background-color: #000; + background-image: url("/svg/background.svg"); + background-size: 45px 45px; + background-repeat: repeat; margin: 0; padding: 0; font-size: 18px; @@ -32,12 +35,12 @@ p { } a, a:visited { - color: #3f6e90; + color: #7fac96; text-decoration: none; } a:hover { - color: #81acc1; + color: #5b8277; } h1, @@ -53,24 +56,65 @@ h4 > a, h5 > a, h6 > a { font-family: "IBM Plex Serif", Georgia, serif; + font-weight: 300; +} + +hr { + border-style: solid; + border-color: #dedede; + border-width: 1px 0 0 0; } span.icon { font-family: "IBM Plex Mono"; + font-size: 2em; + margin: auto 0.5em; +} + +.publish-date { + color: #a1a6b2; + font-family: "IBM Plex Sans"; + font-weight: 300; + font-style: italic; +} + +h2 > span.publish-date { + font-size: 0.8em; } .main-container { display: grid; - grid-template-columns: 3fr 1fr; - max-width: 62em; + grid-template-columns: 5fr 2fr; + grid-template-rows: min-content auto; + max-width: 1080px; margin: 0 auto; + min-height: 100vh; + background-color: #000; +} + +.landing-page-container { + grid-column-start: 1; + grid-column-end: 3; } .header-container { grid-column-start: 1; grid-column-end: 3; + text-align: center; + padding: 0 1em; } .sidebar-container { padding: 1em; } + +.links-container { + text-align: center; +} + +.content-container { +} + +.post-container { + padding: 2em; +} diff --git a/static/svg/background.svg b/static/svg/background.svg new file mode 100644 index 0000000..d178423 --- /dev/null +++ b/static/svg/background.svg @@ -0,0 +1,4 @@ + + + + diff --git a/templates/archive.html b/templates/archive.html index 68daf65..c3eb817 100644 --- a/templates/archive.html +++ b/templates/archive.html @@ -1,12 +1,13 @@ {% extends "base.html" %} {% block content %} {% set section = get_section(path="weblog/_index.md") %} -
+
+

Archive

{% for year, posts in section.pages | group_by(attribute="year") %} -

{{ year }}

+

{{ year }}

{% endfor %} diff --git a/templates/base.html b/templates/base.html index f689bf3..43b0b77 100644 --- a/templates/base.html +++ b/templates/base.html @@ -14,6 +14,7 @@
{% block page %}
@@ -21,8 +22,23 @@ {% endblock %}
{% endblock %}
diff --git a/templates/index.html b/templates/index.html index 4e009e3..64bea0c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,5 +1,7 @@ {% extends "base.html" %} {% block page %} -

Welcome to my site!

- Go to weblog +
+

Welcome to my site!

+ Go to weblog +
{% endblock %} diff --git a/templates/page.html b/templates/page.html index 66faa93..4a3c86c 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,10 +1,9 @@ {% extends "base.html" %} {% block content %} {% set post = page %} -
+

{{ post.title }}

-

{{ post.date }}

-
+

Published on: {{ post.date | date(format="%b %d, %Y %H:%M Zulu") }}

{{ post.content | safe }}
{% endblock %} diff --git a/templates/weblog.html b/templates/weblog.html index a20f356..88abf61 100644 --- a/templates/weblog.html +++ b/templates/weblog.html @@ -2,8 +2,11 @@ {% block content %}
{% for post in paginator.pages %} -
-

{{ post.title }}

+
+

+ {{ post.title }} + {{ post.date | date }} +

{% if post.summary %} {{ post.summary | safe }} {% endif %} -- cgit v1.2.3