From 419cd721024f5ebc364cdd9014222e0a48221ac7 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 4 Apr 2023 17:24:12 -0300 Subject: v2/: HTML! Handle pages, multiple languages, and snippets --- v2/src/lib/base-conf.in | 19 ++++++++++--------- v2/src/lib/base.en.conf | 8 ++++---- v2/src/lib/base.pt.conf | 8 ++++---- v2/src/lib/comment.en.html | 8 ++++++++ v2/src/lib/comment.pt.html | 6 ++++++ v2/src/lib/date.en.html | 3 +++ v2/src/lib/date.pt.html | 3 +++ v2/src/lib/postamble.html | 23 ++++------------------- v2/src/lib/preamble.html | 6 ++---- v2/src/lib/update.en.html | 3 +++ v2/src/lib/update.pt.html | 3 +++ 11 files changed, 50 insertions(+), 40 deletions(-) create mode 100644 v2/src/lib/comment.en.html create mode 100644 v2/src/lib/comment.pt.html create mode 100644 v2/src/lib/date.en.html create mode 100644 v2/src/lib/date.pt.html create mode 100644 v2/src/lib/update.en.html create mode 100644 v2/src/lib/update.pt.html (limited to 'v2/src/lib') diff --git a/v2/src/lib/base-conf.in b/v2/src/lib/base-conf.in index c065807..4ec09cb 100644 --- a/v2/src/lib/base-conf.in +++ b/v2/src/lib/base-conf.in @@ -1,9 +1,10 @@ -domain='@DOMAIN@' -email='@EMAIL@' -base_url='' -list_addr='~euandreh/public-inbox@lists.sr.ht' -mailto_uri_prefix="mailto:$list_addr?Subject=Re%3A%20" -discussions_url_prefix="https://lists.sr.ht/~euandreh/public-inbox?search=" -sourcecode_url_prefix="https://$domain/git/$domain/tree/" -author='EuAndreh' -lang='en' +export domain='@DOMAIN@' +export email='@EMAIL@' +export base_url='' +export list_addr='~euandreh/public-inbox@lists.sr.ht' +export mailto_uri_prefix="mailto:$list_addr?Subject=Re%3A%20" +export discussions_url_prefix="https://lists.sr.ht/~euandreh/public-inbox?search=" +export sourcecode_url_prefix="https://$domain/git/$domain/tree/" +export author='EuAndreh' +export lang='en' +export pubkey_id='81F90EC3CD356060' # FIXME diff --git a/v2/src/lib/base.en.conf b/v2/src/lib/base.en.conf index 6090d54..52aede3 100644 --- a/v2/src/lib/base.en.conf +++ b/v2/src/lib/base.en.conf @@ -1,7 +1,7 @@ -date_fmt='%B %-d, %Y' +export date_fmt='%B %-d, %Y' -site_name="EuAndreh's website" +export site_name="EuAndreh's website" -about='About' +export about='About' -about_url_name='about.html' +export about_url_name='about.html' diff --git a/v2/src/lib/base.pt.conf b/v2/src/lib/base.pt.conf index 6090d54..52aede3 100644 --- a/v2/src/lib/base.pt.conf +++ b/v2/src/lib/base.pt.conf @@ -1,7 +1,7 @@ -date_fmt='%B %-d, %Y' +export date_fmt='%B %-d, %Y' -site_name="EuAndreh's website" +export site_name="EuAndreh's website" -about='About' +export about='About' -about_url_name='about.html' +export about_url_name='about.html' diff --git a/v2/src/lib/comment.en.html b/v2/src/lib/comment.en.html new file mode 100644 index 0000000..6646b14 --- /dev/null +++ b/v2/src/lib/comment.en.html @@ -0,0 +1,8 @@ +
+

+ Comment + and see + existing discussions + | + view source +

diff --git a/v2/src/lib/comment.pt.html b/v2/src/lib/comment.pt.html new file mode 100644 index 0000000..c703847 --- /dev/null +++ b/v2/src/lib/comment.pt.html @@ -0,0 +1,6 @@ +
+

+ Comment and see existing discussions | view source +

diff --git a/v2/src/lib/date.en.html b/v2/src/lib/date.en.html new file mode 100644 index 0000000..0911bac --- /dev/null +++ b/v2/src/lib/date.en.html @@ -0,0 +1,3 @@ +

+ Posted on +

diff --git a/v2/src/lib/date.pt.html b/v2/src/lib/date.pt.html new file mode 100644 index 0000000..0911bac --- /dev/null +++ b/v2/src/lib/date.pt.html @@ -0,0 +1,3 @@ +

+ Posted on +

diff --git a/v2/src/lib/postamble.html b/v2/src/lib/postamble.html index ada5524..00dc1dc 100644 --- a/v2/src/lib/postamble.html +++ b/v2/src/lib/postamble.html @@ -1,31 +1,16 @@ -

- Comment - and see - existing discussions - | - view source -

- - -

- Comment - and see - existing discussions - | - view source -

+$comment_html