From 6fb057cec684ce5b129b129669c7259dc68ca267 Mon Sep 17 00:00:00 2001 From: Nicholas Jitkoff Date: Sat, 22 Jan 2022 15:04:26 -0800 Subject: [PATCH] ignore descriptions shorter than one character --- docs/index.html | 10 +++++++--- docs/{ => v1}/build-v1.sh | 1 - functions/index.js | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) rename docs/{ => v1}/build-v1.sh (92%) diff --git a/docs/index.html b/docs/index.html index 77ba874..767682e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,10 +1,14 @@ - + + + + + - + - +
itty.bitty is experimental technology that renders linked content from outside sources. Learn more.

This content is only as trustworthy as its source, and it should be treated with the caution diff --git a/docs/build-v1.sh b/docs/v1/build-v1.sh similarity index 92% rename from docs/build-v1.sh rename to docs/v1/build-v1.sh index 1fb5abe..ef0ecdc 100755 --- a/docs/build-v1.sh +++ b/docs/v1/build-v1.sh @@ -1,5 +1,4 @@ #! /bin/bash -cd docs/legacy terser data.js > data-min.js terser index.js > index-min.js uglifycss index.css > index-min.css diff --git a/functions/index.js b/functions/index.js index a41a050..7736bb7 100644 --- a/functions/index.js +++ b/functions/index.js @@ -15,7 +15,7 @@ exports.index = functions.https.onRequest((request, response) => { let content = ""; if (title) content += `${title}`; - if (desc) content += ``; + if (desc && desc.length > 1) content += ``; if (image) { if (image.startsWith("http")) { content += ``;