slate - test uniq -c

GH - gesquive/slate - a single-page speed-dial theme for Hugo is a nice starter template, but I don’t want to maintain the menu on the left. An overview of the tags, sorted with the most used on top would be nice…

Slate2 - a cleanup’ed version


As one dump of .Site.Data.slate.tiles

[
   {
     "img": "logos/google.svg",
     "name": "google",
     "tags": [
       "favorite",
       "search"
     ],
     "url": "https://google.com"
   },
   {
     "bg_color": "#ffffff",
     "img": "logos/amazon.svg",
     "name": "Amazon BE",
     "tags": [
       "favorite",
       "shopping"
     ],
     "txt_color": "#ff9900",
     "url": "https://amazon.com.be/"
   },
   {
     "bg_color": "#5f99cf",
     "img": "logos/reddit.svg",
     "name": "reddit",
     "txt_color": "#ffffff",
     "url": "https://reddit.com"
   },
   {
     "bg_color": "#ffffff",
     "img": "logos/ebay.svg",
     "name": "ebay",
     "tags": [
       "shopping"
     ],
     "txt_color": "#000000",
     "url": "https://www.benl.ebay.be/"
   },
   {
     "bg_color": "#1da1f2",
     "img": "logos/twitter.svg",
     "name": "twitter",
     "txt_color": "#f5f8fa",
     "url": "https://twitter.com"
   },
   {
     "bg_color": "#f1f1f1",
     "img": "logos/twitch.svg",
     "name": "twitch",
     "tags": [
       "video"
     ],
     "txt_color": "#6441a5",
     "url": "https://twitch.com"
   },
   {
     "bg_color": "#ffffff",
     "img": "logos/youtube.svg",
     "name": "youtube",
     "tags": [
       "video",
       "youtube"
     ],
     "txt_color": "#cd201f",
     "url": "https://youtube.com"
   },
   {
     "bg_color": "#ffffff",
     "img": "logos/portainer.svg",
     "name": "Portainer",
     "tags": [
       "homelab",
       "docker"
     ],
     "txt_color": "#cd201f",
     "url": "http://192.168.86.70:9000/#!/1/docker/containers"
   },
   {
     "name": "MiniMox",
     "tags": [
       "homelab",
       "proxmox"
     ],
     "url": "https://192.168.86.19:8006/"
   },
   {
     "bg_color": "#ffffff",
     "img": "downloads/aliexpress.png",
     "name": "aliexpress",
     "tags": [
       "shopping"
     ],
     "txt_color": "#ff9900",
     "url": "https://www.aliexpress.com/category/7/computer-office.html"
   },
   {
     "img": "logos/tabler-icons.svg",
     "name": "Tabler Icons",
     "tags": [
       "icons"
     ],
     "txt_color": "#000000",
     "url": "https://tabler-icons.io/"
   },
   {
     "img": "logos/iconscout.svg",
     "name": "IconScout",
     "tags": [
       "icons"
     ],
     "txt_color": "#000000",
     "url": "https://iconscout.com/icons/data?price=free\u0026styles[]=line"
   },
   {
     "img": "logos/tabler.svg",
     "name": "Tabler",
     "tags": [
       "theme",
       "html"
     ],
     "txt_color": "#000000",
     "url": "https://tabler.io/"
   },
   {
     "img": "screenshots/github-slate.jpg",
     "name": "Slate @ GH",
     "tags": [
       "github",
       "hugo",
       "theme"
     ],
     "txt_color": "#000000",
     "url": "https://github.com/gesquive/slate/tree/master"
   },
   {
     "bg_color": "#005057",
     "name": "Semaphore",
     "tags": [
       "onminimox",
       "lxc",
       "ansible"
     ],
     "txt_color": "#ffffff",
     "url": "https://192.168.86.201/project/3/history"
   },
   {
     "img": "logos/fontawesome.svg",
     "name": "FontAwesome",
     "tags": [
       "icons"
     ],
     "txt_color": "#000000",
     "url": "https://fontawesome.com/search?o=r\u0026m=free"
   },
   {
     "img": "logos/youtube-play.svg",
     "name": "ServeTheHome",
     "tags": [
       "youtube",
       "homelab"
     ],
     "txt_color": "#000000",
     "url": "https://www.youtube.com/@ServeTheHomeVideo"
   },
   {
     "img": "icons/web.svg",
     "name": "ServeTheHome",
     "tags": [
       "youtube",
       "homelab"
     ],
     "txt_color": "#000000",
     "url": "https://www.servethehome.com/"
   },
   {
     "name": "PictoGrammers",
     "tags": [
       "icons"
     ],
     "txt_color": "#000000",
     "url": "https://pictogrammers.com/library/mdi/"
   },
   {
     "img": "downloads/vimex.svg",
     "name": "vimexx",
     "tags": [
       "hosting"
     ],
     "txt_color": "#000000",
     "url": "https://www.vimexx.be/inloggen"
   },
   {
     "img": "downloads/versio.svg",
     "name": "Versio",
     "tags": [
       "hosting"
     ],
     "txt_color": "#000000",
     "url": "https://login.mijn.versio.nl/"
   },
   {
     "img": "downloads/vserver121.svg",
     "name": "Versio vserver121",
     "tags": [
       "hosting"
     ],
     "txt_color": "#000000",
     "url": "https://vserver121.axc.eu/evo/"
   },
   {
     "img": "downloads/mxtoolbox.png",
     "name": "MXtoolbox",
     "tags": [
       "online",
       "networking",
       "ip",
       "tools"
     ],
     "txt_color": "#000000",
     "url": "https://mxtoolbox.com/DNSLookup.aspx"
   },
   {
     "img": "downloads/txt2svg.svg",
     "name": "GoogleFont 2 svg",
     "tags": [
       "icons",
       "font",
       "svg",
       "online"
     ],
     "txt_color": "#000000",
     "url": "https://danmarshall.github.io/google-font-to-svg-path/"
   },
   {
     "img": "downloads/hugo.png",
     "name": "Hugo Discourse",
     "tags": [
       "hugo",
       "forum"
     ],
     "txt_color": "#000000",
     "url": "https://discourse.gohugo.io/"
   },
   {
     "name": "svg repo",
     "tags": [
       "icons",
       "svg"
     ],
     "txt_color": "#000000",
     "url": "https://www.svgrepo.com/"
   }
 ]

range $tag, $options := .Site.Data.slate.tiles

  • favorite
  • search
  • favorite
  • shopping
  • shopping
  • video
  • video
  • youtube
  • homelab
  • docker
  • homelab
  • proxmox
  • shopping
  • icons
  • icons
  • theme
  • html
  • github
  • hugo
  • theme
  • onminimox
  • lxc
  • ansible
  • icons
  • youtube
  • homelab
  • youtube
  • homelab
  • icons
  • hosting
  • hosting
  • hosting
  • online
  • networking
  • ip
  • tools
  • icons
  • font
  • svg
  • online
  • hugo
  • forum
  • icons
  • svg

  • {}

    apply .Site.Data.slate.tiles "index" "." "tags" | uniq

    [[favorite search] [favorite shopping] <nil> [shopping] [video] [video youtube] [homelab docker] [homelab proxmox] [icons] [theme html] [github hugo theme] [onminimox lxc ansible] [youtube homelab] [hosting] [online networking ip tools] [icons font svg online] [hugo forum] [icons svg]]
    
    

    slateTitles

    [
       "favorite",
       "search",
       "favorite",
       "shopping",
       "shopping",
       "video",
       "video",
       "youtube",
       "homelab",
       "docker",
       "homelab",
       "proxmox",
       "shopping",
       "icons",
       "icons",
       "theme",
       "html",
       "github",
       "hugo",
       "theme",
       "onminimox",
       "lxc",
       "ansible",
       "icons",
       "youtube",
       "homelab",
       "youtube",
       "homelab",
       "icons",
       "hosting",
       "hosting",
       "hosting",
       "online",
       "networking",
       "ip",
       "tools",
       "icons",
       "font",
       "svg",
       "online",
       "hugo",
       "forum",
       "icons",
       "svg"
     ]

    uniq slateUniqTitles | sort

    [
       "ansible",
       "docker",
       "favorite",
       "font",
       "forum",
       "github",
       "homelab",
       "hosting",
       "html",
       "hugo",
       "icons",
       "ip",
       "lxc",
       "networking",
       "online",
       "onminimox",
       "proxmox",
       "search",
       "shopping",
       "svg",
       "theme",
       "tools",
       "video",
       "youtube"
     ]

    uniq slateUniqTitles | sort

  • ansible
  • docker
  • favorite
  • font
  • forum
  • github
  • homelab
  • hosting
  • html
  • hugo
  • icons
  • ip
  • lxc
  • networking
  • online
  • onminimox
  • proxmox
  • search
  • shopping
  • svg
  • theme
  • tools
  • video
  • youtube