Commit 26a27dd14d

26a27dd14dced5438914288054f9b926ea01541e

parent: 7e12a01747

Unsigned

cmc <hello@cleberg.net> · 2026-08-31 22:39 UTC

Convert README.nfo to README.org (!1)

Section headings become org headings, indented command blocks become
src blocks, and column-aligned content stays in example blocks.

Layout: unified · split

README.nfo deleted −51
@@ -1,51 +0,0 @@
1┌──────────────────────────────────────────────────────────────┐
2│ H N [ KRZ ] krz.sh │
3└──────────────────────────────────────────────────────────────┘
4
5WHAT
6 front-end alternative for hacker news. php. no tracking.
7
8REQUIRES
9 a web server (nginx or apache), php 8.0+, optional minify.
10
11INSTALL
12 sudo apt install nginx-full php php-cgi php-fpm minify
13 git clone $repo_url
14
15 minify css after changes:
16
17 minify -o static/styles.min.css static/styles.css
18
19DEPLOY
20 copy the code to your webroot. route all errors to index.php.
21
22 nginx:
23
24 location / {
25 try_files $uri $uri/ /index.php?$args;
26 }
27
28 apache (.htaccess):
29
30 FallbackResource /index.php
31
32BUILT WITH
33 php, html, minify (for css).
34
35TODO
36 - recursive descendant comment threads
37 - polls (ConstructPoll)
38 - pagination / load more
39
40CONTRIBUTING
41 see CONTRIBUTING.txt and CODE_OF_CONDUCT.txt.
42
43VERSIONING
44 none. read the git log.
45
46LICENSE
47 0bsd. see LICENSE.md.
48
49┌──────────────────────────────────────────────────────────────┐
50│ krz.sh │
51└──────────────────────────────────────────────────────────────┘
README.org added +53
@@ -0,0 +1,53 @@
1#+title: hn
2
3* what
4front-end alternative for hacker news. php. no tracking.
5
6* requires
7a web server (nginx or apache), php 8.0+, optional minify.
8
9* install
10#+begin_src sh
11sudo apt install nginx-full php php-cgi php-fpm minify
12git clone $repo_url
13#+end_src
14
15minify css after changes:
16
17#+begin_src sh
18minify -o static/styles.min.css static/styles.css
19#+end_src
20
21* deploy
22copy the code to your webroot. route all errors to index.php.
23
24- nginx:
25
26#+begin_src conf
27location / {
28 try_files $uri $uri/ /index.php?$args;
29}
30#+end_src
31
32apache (.htaccess):
33
34#+begin_src sh
35FallbackResource /index.php
36#+end_src
37
38* built with
39php, html, minify (for css).
40
41* todo
42- recursive descendant comment threads
43- polls (ConstructPoll)
44- pagination / load more
45
46* contributing
47see CONTRIBUTING.txt and CODE_OF_CONDUCT.txt.
48
49* versioning
50none. read the git log.
51
52* license
530bsd. see LICENSE.md.