1
0
Commit Graph

473 Commits

Author SHA1 Message Date
a464a11ea8
In errorXXX.pug fixed tabulation to spaces. 2023-09-24 20:51:51 +04:00
03e7c478e0
GetArticleMetadata() was replaced by Metadata public slice. 2023-09-24 20:44:03 +04:00
948715d8eb
Fill Metadata slice in init(). Removed GetArticleMetadata. A slice instead was made public. 2023-09-24 20:43:36 +04:00
9e33fa359b
Nah, let's remove bin/, so executable will be built every time. 2023-09-24 20:42:30 +04:00
fe87114fe0
In Article HTTP handler a loging for web.GetArticle() was changed. 2023-09-24 20:00:49 +04:00
48e7a86312
Part of GetArticle() for loading an article from a file was moved out to init() func. 2023-09-24 20:00:17 +04:00
72b09218f8
In web/articles.go made use of a constructor. Also, since a constructor returns a pointer, map also now stores a pointer to Article. 2023-09-24 19:05:22 +04:00
7f17ebd2c5
In Article struct switched positions of Title and Date fields. 2023-09-24 19:03:29 +04:00
0695aa46b3
For Article added a consturctor func New(). 2023-09-24 19:02:43 +04:00
1c3f0c7b2c
Added b32.i2p address in nginx.conf. 2023-09-24 18:47:21 +04:00
5b57592370
In Makefile a bin/ prefix was added to ${TARGET}, so make could see an executable and not rebuild it every time. 2023-09-23 21:51:49 +04:00
caf096c0f6
In rss.pug fixed date formatting. 2023-09-23 21:49:09 +04:00
20729899b0
In Makefile long lines was wrapped. Also removed .txt extension. 2023-09-23 21:48:40 +04:00
2b32422754
In Makefile's install target fixed copypasta mistyping. 2023-09-23 20:00:03 +04:00
cb08e6e334
In Makefile's run target replaced arg names by theirs new long names. 2023-09-23 19:58:47 +04:00
6895c1c0a6
For whatever reason Go doesn't fill r.URL.Scheme. So let's get it directly from Scheme header that is being set in nginx's proxy_set_header Scheme $scheme. 2023-09-23 19:57:53 +04:00
98e948f982
In rss.pug fixed link tag. Jade treats it like an HTML's link self-closing tag. 2023-09-23 19:56:12 +04:00
a315679847
On stuff page: updated version and release date for kwh-cost. 2023-09-23 05:24:11 +04:00
90ce3c74f0
Oh, actually, a whole directory for licenses is supposed to be removed on uninstallation. 2023-09-23 05:22:27 +04:00
38dadee5af
On stuff page: updated description for PiggyBank. 2023-09-23 05:13:43 +04:00
f572f4b3e5
On stuff page: commented out auto-claimer-vkpl because it stopped working and I don't bother to fix it; Updated version and release date for httpr. 2023-09-23 05:11:08 +04:00
1aaf2e8474
Added my name and surname in a footer. 2023-09-23 04:46:25 +04:00
db34c5d249
Made cmd arguments long. 2023-09-23 04:37:48 +04:00
ff70cd8ade
Fixed a comment for GetArticleMetadata() func. It is actually is being sorted by ID, not data. 2023-09-23 04:25:32 +04:00
fbb4389065
In GetArticle() func removed unnecessary else {} nesting. 2023-09-23 04:23:33 +04:00
69493f50aa
In web.go removed a comment for how to install a Jade compiler. 2023-09-23 04:20:31 +04:00
35ac352490
Added missing license file for Share Tech Mono font I use. 2023-09-23 04:18:36 +04:00
d373ad0f35
In Makefile un-/install targets added a LICENSE file for a font used, but commented out. 2023-09-23 04:13:39 +04:00
e992e6906a
In Makefile un-/install targets added a LICENSE file, but commented out. 2023-09-23 04:11:18 +04:00
9fd750a99b
In Makefile made use of PREFIX var. 2023-09-23 04:10:37 +04:00
3a3db1a673
Version set to 23.38.0. 2023-09-23 04:04:01 +04:00
8caad6ca3e
In Makefile fixed .PHONY and ${TARGET}. In a web/*.pug.go target added ifeq to check if jade compiler is already installed. 2023-09-23 04:03:28 +04:00
7c17d7400b
Added additional build flags in FLAGS var. 2023-09-23 04:01:48 +04:00
24c5f59200
In Makefile set DSTDIR to an empty string. 2023-09-23 03:59:17 +04:00
f93c732ada
In go.mod and go.sum updated dependencies. 2023-09-23 03:55:30 +04:00
27c336035b
In PKGBUILD go version was specified to be >=1.17. 2023-09-23 03:55:01 +04:00
798012b9cb
Removed unnecessary options from PKGBUILD. SQLite is part of a base package, so no need in specifing it here. And also no need to specify the package explicitly in provides= and conflicts= options. 2023-09-23 03:54:14 +04:00
1628a26ed7
Added CGO_*FLAGS env vars in PKGBUILD. 2023-09-23 03:51:25 +04:00
35b48d29e6
In main.go made use of handler's Error func and in Error() func added missing WriteHeader(). 2023-08-13 02:17:47 +04:00
4523e5a622
Oh, I forgot that inline styling and in a head tag are forbidden. Moving out to a file. 2023-08-13 01:46:15 +04:00
ffbc027d64
Add missing 404 response code. 2023-08-13 01:41:58 +04:00
4a29a9754b
Added leading slash to path to a PGP pubkey. 2023-08-13 01:25:05 +04:00
4fe528f141
Fixed rel='canonical' href. 2023-08-13 01:21:16 +04:00
c21d117120
Added missing leading slashes for rss links. 2023-08-13 01:20:45 +04:00
8a278c6052
Fixed position of a background image on an index page. 2023-08-13 00:03:29 +04:00
91d7d79109
Added auto-claimer-vkpl. Updated versions of justcaptcha and httpr. 2023-08-12 23:58:48 +04:00
b63d5e1ac0
Add space between links in a table. 2023-08-12 23:58:13 +04:00
16ae8d4dca
Show Go back link on an error page. 2023-08-12 23:57:55 +04:00
e1cf7187df
Replaced HTTP server code with a newest one. 2023-08-12 23:53:26 +04:00
a6bec0db75
Made use of httpr.Router.Sub() functionality. 2023-08-12 23:52:52 +04:00