~leif/noats.nz

39b5a8591b46c24b40eaf485cdc34d170ee1e19b — Leif Metcalf 2 months ago e02777b master
Add tier lists
5 files changed, 26 insertions(+), 8 deletions(-)

M build.clj
A drafts/new-clojure-ssg.post
M index.gmi
D site/index.gmi
A static/tier-lists.gmi
M build.clj => build.clj +7 -2
@@ 1,10 1,11 @@
(ns build
  (:import java.io.File)
  (:import java.time.LocalDate)
  (:import java.nio.file.Path)
  (:import java.nio.file.Files)
  (:import java.nio.file.Path)
  (:import java.time.LocalDate)
  (:require [clojure.edn :as edn])
  (:require [clojure.java.io :as io])
  (:require [clojure.java.shell :as shell])
  (:require [clojure.string :as str]))

(defn path [s & t]


@@ 69,7 70,11 @@
        post-listings (str/join "\n" (map make-post-listing posts))]
  (str index-content "\n## My posts\n\n" post-listings)))

(shell/sh "cp" "-r" "-T" "static" "site")

(spit "site/index.gmi" index-gmi)

(doseq [post posts]
  (write-post post))

(java.lang.System/exit 0)

A drafts/new-clojure-ssg.post => drafts/new-clojure-ssg.post +3 -0
@@ 0,0 1,3 @@
{:title ""
 :date #date "2020-03-03"}
---

M index.gmi => index.gmi +5 -2
@@ 1,4 1,7 @@
# Hello, World!
# Welcome to noats.nz

## Sites I like
## Links on this gemini site
=> tier-lists.gmi

## Gemini sites I like
=> gemini://makeworld.space

D site/index.gmi => site/index.gmi +0 -4
@@ 1,4 0,0 @@
# Hello, World!

## Sites I like
=> gemini://makeworld.space

A static/tier-lists.gmi => static/tier-lists.gmi +11 -0
@@ 0,0 1,11 @@
# Tier lists

## Programming languages
* S: Haskell
* A: Rust, Clojure, Scheme
* B: C, Python, Go
* F: Javascript

## Mathematical theorems
* A: Bolzano-WeierStrass
* F: Quotient rule