`; // Loop over tags and snippets to create the list of snippets - for (let tag of taggedData) { + for (let tag of taggedData){ let notEmbedded = true; let localOutput = output .replace(/\$tag/g, util.capitalize(tag)) @@ -217,6 +217,66 @@ try { localOutput += md .render(`## ${util.capitalize(tag, true)}\n`) .replace(/
/g, '');
+ if (tag === 'array')
+ localOutput += ``;
for (let taggedSnippet of Object.entries(tagDbData).filter(v => v[1][0] === tag)) {
localOutput += generateSnippetCard(snippets, taggedSnippet, true);
if (Object.entries(tagDbData).filter(v => v[1][0] === tag).findIndex(v => v[0] === taggedSnippet[0]) >= Object.entries(tagDbData).filter(v => v[1][0] === tag).length * 0.5 && notEmbedded) {
diff --git a/static-parts/README-start.md b/static-parts/README-start.md
index 8fe474862..3425bbdce 100644
--- a/static-parts/README-start.md
+++ b/static-parts/README-start.md
@@ -8,8 +8,6 @@
> Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.
-[](https://www.digitalocean.com)
-
* Use Ctrl + F or command + F to search for a snippet.
* Contributions welcome, please read the [contribution guide](CONTRIBUTING.md).
* Snippets are written in ES6, use the [Babel transpiler](https://babeljs.io/) to ensure backwards-compatibility.
diff --git a/static-parts/about.html b/static-parts/about.html
index 05ba71725..c98815972 100644
--- a/static-parts/about.html
+++ b/static-parts/about.html
@@ -213,8 +213,7 @@
30 seconds of code is licensed under the CC0-1.0
license.
Logos made by Angelos Chalaris and ribbon made by Tim Holman are licensed under the MIT
- license.
Sponsored by DigitalOcean
About Contributing Archive Glossary
diff --git a/static-parts/beginner-page-end.html b/static-parts/beginner-page-end.html index 763e1707b..0556c5d07 100644 --- a/static-parts/beginner-page-end.html +++ b/static-parts/beginner-page-end.html @@ -2,6 +2,6 @@- +