Cooler landing page, better background color, etc.
Anirudh Oppiliappan x@icyphox.sh
Fri, 13 Aug 2021 17:16:40 +0530
7 files changed,
70 insertions(+),
57 deletions(-)
M
pages/_index.md
→
pages/_index.md
@@ -1,5 +1,7 @@
--- -template: main.html title: icyphox subtitle: Anirudh Oppiliappan +template: index.html --- + +_Bathe in the sun -- bloom as one_.
M
pages/blog/_index.md
→
pages/blog/_index.md
@@ -1,5 +1,5 @@
--- -template: index.html +template: blog.html title: icyphox's blog subtitle: Computers, security & computer security. ---
M
static/style.css
→
static/style.css
@@ -1,5 +1,5 @@
:root { - --bg: #fff; + --bg: #f4f4f4; --cyan: #509c93; --light-gray: #eee; --gray: #6a6a6a;@@ -7,6 +7,15 @@ --code: #666;
--dark: #444; --darker: #222; --code-bg: #0000000a; +} + +html { + background: var(--bg); +} + +::selection { + background: var(--dark); + color: var(--bg); } * {@@ -122,6 +131,12 @@ article a {
color: var(--cyan); } +.tagline { + font-size: 20px; + padding: 150px 0 150px 0; + text-align: center; +} + pre { overflow-x: auto; overflow-y: hidden;@@ -189,5 +204,3 @@ color: var(--darker);
padding-left: 20px; border-left: 3px solid var(--gray); } - -
A
templates/blog.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html> +<html lang=en> + <head> + {{ template "head.html" }} + <link rel="alternate" type="application/rss+xml" title="RSS" href="https://icyphox.sh/blog/feed.xml"> + </head> + + <title> + {{ index .Meta "title" }} + </title> +<body> + <main> + <header> + {{ template "nav.html" }} + </header> + {{ .Body }} + <table> + {{ range $_, $post := .Posts }} + <tr> + <td align="left" class="index-post"> + <a href=/blog/{{ index $post.Meta "slug" }}>{{ index $post.Meta "title" }}</a> + </td> + {{ $dateStr := index $post.Meta "date" }} + {{ $date := parsedate $dateStr }} + <td align="right" class="index-date">{{ $date.Format "02 Jan, 2006" }}</td> + </tr> + {{ end }} + </table> + <p><em><b>Note</b>: Opinions expressed in these posts may differ from those that I hold presently.</em></p> + </section> + </main> + <footer> + {{ template "footer.html" }} + </footer> +</body> + +</html>
M
templates/head.html
→
templates/head.html
@@ -1,5 +1,4 @@
<link rel="stylesheet" href="/static/style.css" type="text/css"> -<link rel="alternate" type="application/rss+xml" title="RSS" href="https://icyphox.sh/blog/feed.xml"> <meta name="description" content="{{ .Meta.Subtitle }}"> <meta name="viewport" content="initial-scale=1,width"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
M
templates/index.html
→
templates/index.html
@@ -1,36 +1,21 @@
-<!DOCTYPE html> <html lang=en> <head> {{ template "head.html" }} </head> - <title> {{ index .Meta "title" }} </title> -<body> - <main> - <header> - {{ template "nav.html" }} - </header> - {{ .Body }} - <table> - {{ range $_, $post := .Posts }} - <tr> - <td align="left" class="index-post"> - <a href=/blog/{{ index $post.Meta "slug" }}>{{ index $post.Meta "title" }}</a> - </td> - {{ $dateStr := index $post.Meta "date" }} - {{ $date := parsedate $dateStr }} - <td align="right" class="index-date">{{ $date.Format "02 Jan, 2006" }}</td> - </tr> - {{ end }} - </table> - <p><em><b>Note</b>: Opinions expressed in these posts may differ from those that I hold presently.</em></p> - </section> - </main> - <footer> - {{ template "footer.html" }} - </footer> -</body> - + <body> + <main> + <header> + {{ template "nav.html" }} + </header> + <article class="tagline"> + {{ .Body }} + </article> + </main> + <footer> + {{ template "footer.html" }} + </footer> + </body> </html>
D
templates/main.html
@@ -1,23 +0,0 @@
-<html lang=en> - <head> - {{ template "head.html" }} - </head> - <title> - {{ index .Meta "title" }} - </title> - <body> - <main> - <header> - {{ template "nav-noimg.html" }} - </header> - <article> - <div class="logo"> - <img src=/static/white.svg> - </div> - </article> - </main> - <footer> - {{ template "footer.html" }} - </footer> - </body> -</html>