From e3112b9f7d28f92c76a7bd28d319daaa8d33cd0f Mon Sep 17 00:00:00 2001 From: braxtonhall Date: Fri, 30 Dec 2022 20:25:48 +0000 Subject: [PATCH 1/5] #217 Create a website --- .idea/betterlibrarything.iml | 1 + .idea/jsLibraryMappings.xml | 6 +++ 404.html | 11 ++++++ index.html | 76 ++++++++++++++++++++++++++++++++++++ 4 files changed, 94 insertions(+) create mode 100644 .idea/jsLibraryMappings.xml create mode 100644 404.html create mode 100644 index.html diff --git a/.idea/betterlibrarything.iml b/.idea/betterlibrarything.iml index b7504a20..01883c47 100644 --- a/.idea/betterlibrarything.iml +++ b/.idea/betterlibrarything.iml @@ -8,5 +8,6 @@ + \ No newline at end of file diff --git a/.idea/jsLibraryMappings.xml b/.idea/jsLibraryMappings.xml new file mode 100644 index 00000000..14c2918c --- /dev/null +++ b/.idea/jsLibraryMappings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/404.html b/404.html new file mode 100644 index 00000000..f0482b98 --- /dev/null +++ b/404.html @@ -0,0 +1,11 @@ + + + + + + + + + diff --git a/index.html b/index.html new file mode 100644 index 00000000..e3daf29b --- /dev/null +++ b/index.html @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + Better LibraryThing + + + + + + + +
+ + + From 6520f19af497e8f92b13ae9853eeefece254ab20 Mon Sep 17 00:00:00 2001 From: braxtonhall Date: Fri, 30 Dec 2022 22:20:37 +0000 Subject: [PATCH 2/5] #217 Only add .pretty to markdown links --- index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index e3daf29b..f50aa462 100644 --- a/index.html +++ b/index.html @@ -59,7 +59,9 @@ $("a").each((_, element) => { const $element = $(element); const href = $element.attr("href"); - $element.attr("href", `/library-thing/${href}.pretty`); + if (href.endsWith(".md")) { + $element.attr("href", `/library-thing/${href}.pretty`); + } }); fetch(path) From c5dde662b1fabde7d9ae51e6c69f0f84b07e16e7 Mon Sep 17 00:00:00 2001 From: braxtonhall Date: Sat, 31 Dec 2022 11:19:53 +0000 Subject: [PATCH 3/5] #217 Update website to be on root of domain --- 404.html | 2 +- index.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/404.html b/404.html index f0482b98..d1fad0fd 100644 --- a/404.html +++ b/404.html @@ -6,6 +6,6 @@ diff --git a/index.html b/index.html index f50aa462..4b2a5390 100644 --- a/index.html +++ b/index.html @@ -48,8 +48,8 @@