all repos — site @ 91a443221fb7ab33c3a3de4d81faa01280bc8b79

source for my site, found at icyphox.sh

Switch to go-vite
Anirudh Oppiliappan x@icyphox.sh
Fri, 30 Oct 2020 18:17:23 +0530
commit

91a443221fb7ab33c3a3de4d81faa01280bc8b79

parent

1a4d3bdbdfa43cf0cabc2c925c6c9a6e172ae0b8

M config.pyconfig.yaml

@@ -1,11 +1,6 @@

-# config.py - Vite's configuration script - -title = "icyphox" -author = "" -header = "<a href=/>← all posts</a>" - -# actually the sidebar -footer = f""" +title: icyphox's blog +header: "<a href=/>← all posts</a>" +footer: | <img class="logo" src="/static/white.svg" alt="icyphox's avatar" style="width: 55%"/> <p> <span class="sidebar-link">email</span>

@@ -53,7 +48,8 @@ <img class="footimgs" alt="rss feed" src="/static/rss.svg">

</a> </div> - """ -template = 'text.html' # default is index.html -pre_build = ['bin/update_index.py'] -post_build = ['bin/rss.py', 'bin/plaintext.sh'] +prebuild: + # - bin/update_index.py +postbuild: + - bin/rss.py + - bin/plaintext.sh
M netlify-build.shnetlify-build.sh

@@ -1,6 +1,7 @@

#!/bin/sh -pip install git+https://github.com/icyphox/vite +git clone https://github.com/icyphox/go-vite +cd go-vite && make && cd .. mkdir build pip install feedparser arrow python-frontmatter -vite build +go-vite/vite build
M static/style.cssstatic/style.css

@@ -150,20 +150,19 @@ overflow-x: auto;

overflow-y: hidden; padding: 10px; min-width: 0; -} - - -code { - color: var(--cyan); - border-bottom: unset; + background: var(--bg) + font-size: 18px; } pre > code { color: var(--code); } -pre { - background: var(--bg) +code { + font-variant: normal; + font-size: 19px; + color: var(--dark); + border-bottom: unset; } @media only screen and (min-width: 800px) {

@@ -176,6 +175,10 @@ }

html { font-size: 21px; + } + + pre { + font-size: 19px; } .sep {
M templates/_index.htmltemplates/_index.html

@@ -3,7 +3,7 @@ <html lang=en>

<link rel="stylesheet" href="/static/style.css" type="text/css"> <link rel="shortcut icon" type="images/x-icon" href="/static/favicon.ico"> <link rel="alternate" type="application/rss+xml" title="RSS" href="https://icyphox.sh/blog/feed.xml"> - <meta name="description" content="{{ subtitle }}"> + <meta name="description" content="{{ .Fm.Subtitle }}"> <meta name="viewport" content="initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta charset="UTF-8">

@@ -11,23 +11,23 @@ <meta content="#222" name="theme-color">

<meta name="HandheldFriendly" content="true"> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:site" content="@icyphox"> - <meta name="twitter:title" content="{{ title }}"> - <meta name="twitter:description" content="{{ subtitle }}"> + <meta name="twitter:title" content="{{ .Fm.Title }}"> + <meta name="twitter:description" content="{{ .Fm.Subtitle }}"> <meta name="twitter:image" content="/static/icyphox.png"> - <meta property="og:title" content="{{ title }}"> + <meta property="og:title" content="{{ .Fm.Title }}"> <meta property="og:type" content="website"> - <meta property="og:description" content="{{ subtitle }}"> + <meta property="og:description" content="{{ .Fm.Subtitle }}"> <meta property="og:url" content="https://icyphox.sh"> <meta property="og:image" content="/static/icyphox.png"> <title> - {{ title }} + {{ .Fm.Title }} </title> <body> <section class="container"> <div class="pull-left"> <div class="content"> - {{ body }} + {{ .Fm.Body }} <table> <tbody> {% for p in posts %}

@@ -41,7 +41,7 @@ <p><em><b>Note</b>: My current opinions may differ from those expressed in these posts.</em>

</div> </div> <div class="pull-right"> - {{ footer }} + {{ .Cfg.Footer }} </div> </section> </body>
M templates/about.htmltemplates/about.html

@@ -2,7 +2,7 @@ <!DOCTYPE html>

<html lang=en> <link rel="stylesheet" href="/static/style.css" type="text/css"> <link rel="shortcut icon" type="images/x-icon" href="/static/favicon.ico"> - <meta name="description" content="{{ subtitle }}"> + <meta name="description" content="{{ .Fm.Subtitle }}"> <meta charset="UTF-8"> <meta name="viewport" content="initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

@@ -10,33 +10,34 @@ <meta content="#222" name="theme-color">

<meta name="HandheldFriendly" content="true"> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:site" content="@icyphox"> - <meta name="twitter:title" content="{{ title }}"> - <meta name="twitter:description" content="{{ subtitle }}"> + <meta name="twitter:title" content="{{ .Fm.Title }}"> + <meta name="twitter:description" content="{{ .Fm.Subtitle }}"> <meta name="twitter:image" content="/static/icyphox.png"> - <meta property="og:title" content="{{ title }}"> + <meta property="og:title" content="{{ .Fm.Title }}"> <meta property="og:type" content="website"> - <meta property="og:description" content="{{ subtitle }}"> + <meta property="og:description" content="{{ .Fm.Subtitle }}"> <meta property="og:url" content="https://icyphox.sh"> <meta property="og:image" content="/static/icyphox.png"> <title> - {{ title }} + {{ .Fm.Title }} </title> <body> <section class="container"> + <header> + {{ .Cfg.Header }} + </header> <div class="pull-left"> <div class="content"> - <header> {{ header }} </header> - <article> - {{ body }} + {{ .Fm.Body }} </article> </div> </div> <div class="pull-right"> - {{ footer }} + {{ .Cfg.Footer }} </div> </section> </body>
M templates/index.htmltemplates/index.html

@@ -3,7 +3,7 @@ <html lang=en>

<link rel="stylesheet" href="/static/style.css" type="text/css"> <link rel="shortcut icon" type="images/x-icon" href="/static/favicon.ico"> <link rel="alternate" type="application/rss+xml" title="RSS" href="https://icyphox.sh/blog/feed.xml"> - <meta name="description" content="{{ subtitle }}"> + <meta name="description" content="{{ .Fm.Subtitle }}"> <meta name="viewport" content="initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta charset="UTF-8">

@@ -11,23 +11,23 @@ <meta content="#222" name="theme-color">

<meta name="HandheldFriendly" content="true"> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:site" content="@icyphox"> - <meta name="twitter:title" content="{{ title }}"> - <meta name="twitter:description" content="{{ subtitle }}"> + <meta name="twitter:title" content="{{ .Fm.Title }}"> + <meta name="twitter:description" content="{{ .Fm.Subtitle }}"> <meta name="twitter:image" content="/static/icyphox.png"> - <meta property="og:title" content="{{ title }}"> + <meta property="og:title" content="{{ .Fm.Title }}"> <meta property="og:type" content="website"> - <meta property="og:description" content="{{ subtitle }}"> + <meta property="og:description" content="{{ .Fm.Subtitle }}"> <meta property="og:url" content="https://icyphox.sh"> <meta property="og:image" content="/static/icyphox.png"> <title> - {{ title }} + {{ .Fm.Title }} </title> <body> <section class="container"> <div class="pull-left"> <div class="content"> - {{ body }} + {{ .Fm.Body }} <table> <tbody>

@@ -69,6 +69,11 @@

<tr> <td align="left"><a href="/blog/dont-news">You don't need news</a></td> <!--<td align="right">2020-06-21</td>--> + </tr> + + <tr> + <td align="left"><a href="/blog/test">Test Post</a></td> + <!--<td align="right">2020-06-11</td>--> </tr> <tr>

@@ -246,8 +251,8 @@ <p><em><b>Note</b>: My current opinions may differ from those expressed in these posts.</em>

</div> </div> <div class="pull-right"> - {{ footer }} + {{ .Cfg.Footer }} </div> </section> </body> -</html>+</html>
M templates/text.htmltemplates/text.html

@@ -4,45 +4,45 @@ <link rel="stylesheet" href="/static/style.css" type="text/css">

<link rel="stylesheet" href="/static/syntax.css" type="text/css"> <link rel="shortcut icon" type="images/x-icon" href="/static/favicon.ico"> <meta charset="UTF-8"> - <meta name="description" content="{{ subtitle }}"> + <meta name="description" content="{{ .Fm.Subtitle }}"> <meta name="viewport" content="initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta content="#222" name="theme-color"> <meta name="HandheldFriendly" content="true"> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:site" content="@icyphox"> - <meta name="twitter:title" content="{{ title }}"> - <meta name="twitter:description" content="{{ subtitle }}"> + <meta name="twitter:title" content="{{ .Fm.Title }}"> + <meta name="twitter:description" content="{{ .Fm.Subtitle }}"> <meta name="twitter:image" content="/static/icyphox.png"> - <meta property="og:title" content="{{ title }}"> + <meta property="og:title" content="{{ .Fm.Title }}"> <meta property="og:type" content="website"> - <meta property="og:description" content="{{ subtitle }}"> + <meta property="og:description" content="{{ .Fm.Subtitle }}"> <meta property="og:url" content="https://icyphox.sh"> <meta property="og:image" content="/static/icyphox.png"> <title> - {{ title }} + {{ .Fm.Title }} </title> <body> <div class="container"> <div class="pull-left"> <div class="content"> <header> - {{ header }} + {{ .Cfg.Header }} </header> <section style="float: right"> - view in <a href="/txt/{{ url }}.txt">plain-text</a> + view in <a href="/txt/{{ .Fm.URL }}.txt">plain-text</a> </section> <section style="float: left"> - {{ date }} + {{ .Fm.Date }} </section> <article style="clear: both" align="left"> - <h1>{{ title }}</h1> - <h2 class="subtitle">{{ subtitle }}</h2> - {{ body }} + <h1>{{ .Fm.Title }}</h1> + <h2 class="subtitle">{{ .Fm.Subtitle }}</h2> + {{ .Fm.Body }} </article> <p class="muted">Questions or comments? Send an email to - <a href="mailto:~icyphox/x@lists.sr.ht?Subject=Re: {{ title }}">~icyphox/x@lists.sr.ht</a>—my <a href="https://lists.sr.ht/~icyphox/x">public inbox</a>.</p> + <a href="mailto:~icyphox/x@lists.sr.ht?Subject=Re: {{ .Fm.Title }}">~icyphox/x@lists.sr.ht</a>—my <a href="https://lists.sr.ht/~icyphox/x">public inbox</a>.</p> </div> </div> </div>