]> git.armaanb.net Git - lightcards-http.git/commitdiff
Move un-minified index to index-raw
authorArmaan Bhojwani <me@armaanb.net>
Mon, 15 Feb 2021 02:53:33 +0000 (21:53 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Mon, 15 Feb 2021 02:53:33 +0000 (21:53 -0500)
convert
index-raw.html [new file with mode: 0644]
index.html [deleted file]

diff --git a/convert b/convert
index 7252a0ab4912afcd8a6672fe6f7aadbd31cf6464..23c9457590f4a8aad76c6cc261d2fc0574e182a1 100755 (executable)
--- a/convert
+++ b/convert
@@ -10,5 +10,5 @@ find . -type f -name 'lightcards**' -not -name '*min*' | \
                rm ${i}.html
        done
 
-minify index.html > index.min.html
+minify index-raw.html > index.html
 rm lightcards.1 lightcards-config.5
diff --git a/index-raw.html b/index-raw.html
new file mode 100644 (file)
index 0000000..f826c0d
--- /dev/null
@@ -0,0 +1,97 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width">
+    <meta name="description" content="lightcards - terminal flashcards program homepage">
+    <meta name="robots" content="index, follow">
+    <meta http-equiv="Content-Security-Policy" content="default-src 'none'; connect-src 'self'; img-src data: 'self'; style-src 'unsafe-inline';">
+    <meta name="referrer" content="no-referrer">
+    <title>lightcards</title>
+    <style>
+body {
+  margin: 1em auto;
+  max-width: 650px;
+  line-height: 1.6;
+  padding: 0 10px;
+  font-size: 18px;
+  font-family: serif;
+}
+
+h1 {
+  line-height: 0.75;
+}
+
+h2 {
+  line-height: 1;
+}
+
+img {
+  width: 100%;
+  filter: drop-shadow(0 0 0.5em);
+  margin: 0.5em 0;
+}
+
+a {
+  font-size: 1.1em;
+  color: black;
+}
+    </style>
+    <link href=data:, rel=icon>
+  </head>
+  <body>
+    <header>
+      <hr>
+      <h1>lightcards</h1>
+      <nav>
+        <a href="https://sr.ht/~armaan/lightcards">Source code</a> | 
+        <a href="https://lists.sr.ht/~armaan/public-inbox">Mailing list</a> | 
+        <a href="https://pypi.org/project/lightcards">PyPI</a>
+        <hr>
+        <p>A terminal flashcards program that gets its data from Markdown.</p>
+      </nav>
+    </header>
+
+    <section>
+      <h2>Installation</h2>
+      <p>Lightcards is only tested and maintained on Linux. Support for other Unix-like operating systems such as MacOS and the various BSDs is likely, although untested. Lightcards requires Python 3.9.</p>
+
+      <h3>From PyPI</h3>
+      <code>pip install lightcards</code>
+
+      <h3>From Git</h3>
+      <h4>Main branch (stable)</h4>
+      <code>pip install git+https://git.sr.ht/~armaan/lightcards</code>
+
+      <h4>Development branch</h4>
+      <code>pip install git+https://git.sr.ht/~armaan/lightcards@devel</code>
+    </section>
+
+    <section>
+      <h2>Manpages</h2>
+      <ul>
+        <li><a href="lightcards.1">lightcards(1)</a></li>
+        <li><a href="lightcards-config.5">lightcards-config(5)</a></li>
+      </ul>
+    </section>
+
+    <section>
+      <h2>Gallery</h2>
+      <a href="1.webp">
+        <img src="1.webp" alt="screenshot 1">
+      </a>
+      <a href="2.webp">
+        <img src="2.webp" alt="screenshot 2">
+      </a>
+      <a href="3.webp">
+        <img src="3.webp" alt="screenshot 3">
+      </a>
+    </section>
+
+    <section>
+      <h2>Copyright</h2>
+      <p>Copyright 2021 Armaan Bhojwani, MIT license.
+      <hr>
+    </section>
+  </body>
+</html>
diff --git a/index.html b/index.html
deleted file mode 100644 (file)
index f826c0d..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-  <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <meta name="description" content="lightcards - terminal flashcards program homepage">
-    <meta name="robots" content="index, follow">
-    <meta http-equiv="Content-Security-Policy" content="default-src 'none'; connect-src 'self'; img-src data: 'self'; style-src 'unsafe-inline';">
-    <meta name="referrer" content="no-referrer">
-    <title>lightcards</title>
-    <style>
-body {
-  margin: 1em auto;
-  max-width: 650px;
-  line-height: 1.6;
-  padding: 0 10px;
-  font-size: 18px;
-  font-family: serif;
-}
-
-h1 {
-  line-height: 0.75;
-}
-
-h2 {
-  line-height: 1;
-}
-
-img {
-  width: 100%;
-  filter: drop-shadow(0 0 0.5em);
-  margin: 0.5em 0;
-}
-
-a {
-  font-size: 1.1em;
-  color: black;
-}
-    </style>
-    <link href=data:, rel=icon>
-  </head>
-  <body>
-    <header>
-      <hr>
-      <h1>lightcards</h1>
-      <nav>
-        <a href="https://sr.ht/~armaan/lightcards">Source code</a> | 
-        <a href="https://lists.sr.ht/~armaan/public-inbox">Mailing list</a> | 
-        <a href="https://pypi.org/project/lightcards">PyPI</a>
-        <hr>
-        <p>A terminal flashcards program that gets its data from Markdown.</p>
-      </nav>
-    </header>
-
-    <section>
-      <h2>Installation</h2>
-      <p>Lightcards is only tested and maintained on Linux. Support for other Unix-like operating systems such as MacOS and the various BSDs is likely, although untested. Lightcards requires Python 3.9.</p>
-
-      <h3>From PyPI</h3>
-      <code>pip install lightcards</code>
-
-      <h3>From Git</h3>
-      <h4>Main branch (stable)</h4>
-      <code>pip install git+https://git.sr.ht/~armaan/lightcards</code>
-
-      <h4>Development branch</h4>
-      <code>pip install git+https://git.sr.ht/~armaan/lightcards@devel</code>
-    </section>
-
-    <section>
-      <h2>Manpages</h2>
-      <ul>
-        <li><a href="lightcards.1">lightcards(1)</a></li>
-        <li><a href="lightcards-config.5">lightcards-config(5)</a></li>
-      </ul>
-    </section>
-
-    <section>
-      <h2>Gallery</h2>
-      <a href="1.webp">
-        <img src="1.webp" alt="screenshot 1">
-      </a>
-      <a href="2.webp">
-        <img src="2.webp" alt="screenshot 2">
-      </a>
-      <a href="3.webp">
-        <img src="3.webp" alt="screenshot 3">
-      </a>
-    </section>
-
-    <section>
-      <h2>Copyright</h2>
-      <p>Copyright 2021 Armaan Bhojwani, MIT license.
-      <hr>
-    </section>
-  </body>
-</html>