all repos — site @ e4cb7185115dc7a037959bb4349204122edd1d4c

source for my site, found at icyphox.sh

Cooler landing page, better background color, etc.
Anirudh Oppiliappan x@icyphox.sh
Fri, 13 Aug 2021 17:16:40 +0530
commit

e4cb7185115dc7a037959bb4349204122edd1d4c

parent

d50b6407000a7ec8428d1b4d6bcb99c64c635a93

M pages/_index.mdpages/_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.mdpages/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.cssstatic/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.htmltemplates/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.htmltemplates/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>