From 6f75065b9ca6d87400bd01480e76eaace2cd37c1 Mon Sep 17 00:00:00 2001 From: neko Date: Sat, 25 Jan 2020 22:56:59 +0100 Subject: [PATCH] welcome page --- _data/nav.yml | 2 ++ _layouts/{page.html => _page.html} | 0 _layouts/page-screen.html | 1 - _layouts/page-welcome.html | 19 +++++++++++++++ assets/css/crt.css | 2 +- assets/css/custom.css | 11 +++++++++ assets/css/mark.css | 17 +++++++------ blog.html | 8 ++++++ index.html | 39 ++++++++++++++++++++++++++---- 9 files changed, 84 insertions(+), 15 deletions(-) rename _layouts/{page.html => _page.html} (100%) create mode 100644 _layouts/page-welcome.html create mode 100644 blog.html diff --git a/_data/nav.yml b/_data/nav.yml index ff0fb9e..f936081 100644 --- a/_data/nav.yml +++ b/_data/nav.yml @@ -1,5 +1,7 @@ list: - title: ~/ url: / + - title: ~/blog + url: /blog.html - title: ~/doc/about url: /about.html diff --git a/_layouts/page.html b/_layouts/_page.html similarity index 100% rename from _layouts/page.html rename to _layouts/_page.html diff --git a/_layouts/page-screen.html b/_layouts/page-screen.html index 9265857..e99af6f 100644 --- a/_layouts/page-screen.html +++ b/_layouts/page-screen.html @@ -17,7 +17,6 @@ {% include nav.html %}
-

{{page.title}}

{{content}}
diff --git a/_layouts/page-welcome.html b/_layouts/page-welcome.html new file mode 100644 index 0000000..8dd4ee8 --- /dev/null +++ b/_layouts/page-welcome.html @@ -0,0 +1,19 @@ + + + {% include head.html %} + +
+
+
+ +
+ {{content}} + + {% include nav.html %} + +
+ +
+
+ + diff --git a/assets/css/crt.css b/assets/css/crt.css index 8cedaf8..aaf0e29 100644 --- a/assets/css/crt.css +++ b/assets/css/crt.css @@ -179,7 +179,7 @@ http://aleclownes.com/2017/02/01/crt-display.html .crt::before { content: " "; display: block; - position: absolute; + position: fixed; top: auto; left: auto; bottom: auto; diff --git a/assets/css/custom.css b/assets/css/custom.css index bfeeb2f..bb7526a 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -102,6 +102,17 @@ main { } +.asciiart { + white-space: pre; + line-height: normal; +} + +.welcome{ + padding-top: 128px; + font-size: large; + text-align: center; +} + /* .post-list a:before, .post-list a:before { diff --git a/assets/css/mark.css b/assets/css/mark.css index 8a3eae2..59dbdc5 100644 --- a/assets/css/mark.css +++ b/assets/css/mark.css @@ -31,14 +31,6 @@ strong { font-weight: bold; } -pre { - background-color: #f8f8f8; - border-radius: 3px; - word-wrap: break-word; - padding: 12px 13px; - font-size: 13px; -} - h1, h2, h3, @@ -114,6 +106,15 @@ pre { border: 2px solid rgb(100, 50, 0); } +/* +pre { + background-color: #f8f8f8; + border-radius: 3px; + word-wrap: break-word; + padding: 12px 13px; + font-size: 13px; +}*/ + code { margin: 0 2px; padding: 3px 5px; diff --git a/blog.html b/blog.html new file mode 100644 index 0000000..9d1d487 --- /dev/null +++ b/blog.html @@ -0,0 +1,8 @@ +--- +title: ~/blog +layout: page-screen +--- + +{% for post in site.posts %} +{{post.date | date: '%Y-%m-%d' }} {{post.title | replace:' ','_'}}.txt +{%endfor%} diff --git a/index.html b/index.html index 522105b..ef3248f 100644 --- a/index.html +++ b/index.html @@ -1,8 +1,37 @@ --- -title: ~/doc/blog -layout: page-screen +title: Welcome +layout: page-welcome --- +
+welcome to... -{% for post in site.posts %} -{{post.date | date: '%Y-%m-%d' }} {{post.title | replace:' ','_'}}.txt -{%endfor%} +███╗ ███╗███████╗██╗ ██╗ +████╗ ████║██╔════╝██║ ██║ +██╔████╔██║█████╗ ██║ █╗ ██║ +██║╚██╔╝██║██╔══╝ ██║███╗██║ +██║ ╚═╝ ██║███████╗╚███╔███╔╝ +╚═╝ ╚═╝╚══════╝ ╚══╝╚══╝ + + __ ██████╗ ██████╗ ███████╗ + \ ██╔══██╗██╔═══██╗██╔════╝ + . ██║ ██║██║ ██║███████╗ + __ ██║ ██║██║ ██║╚════██║ + \ ██████╔╝╚██████╔╝███████║ + ╚═════╝ ╚═════╝ ╚══════╝ + +
+ + \ No newline at end of file