Skip to content

Instantly share code, notes, and snippets.

@snoyes
Created March 21, 2023 20:18
Show Gist options
  • Save snoyes/0fd970a1c0fea3975b67057ef2f94821 to your computer and use it in GitHub Desktop.
Save snoyes/0fd970a1c0fea3975b67057ef2f94821 to your computer and use it in GitHub Desktop.
show only those tags which are N0, N1, N2, etc.
{{Front}}
<div id='tags'>{{Tags}}</div>
<script>
let tags = document.getElementById('tags')
tags.innerHTML = tags.innerHTML.split(' ').filter(function(tag){return tag.match(/^N[0-9]$/i)}).join(' ');
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment