Fix tags to make daniel happy
Inspired by http://longqian.me/2017/02/09/github-jekyll-tag/ Fixes #2
This commit is contained in:
parent
754baa849c
commit
cfc1d29d13
11
Makefile
11
Makefile
|
@ -2,9 +2,14 @@
|
|||
all:
|
||||
LANG="en_US.UTF-8" jekyll build
|
||||
|
||||
publish:
|
||||
drafts: tags
|
||||
LANG="en_US.UTF-8" jekyll serve --drafts
|
||||
|
||||
tags:
|
||||
./generate-tags
|
||||
|
||||
publish: tags
|
||||
find files -iname "*.png" -type f -exec pngcrush -ow -noforce -reduce {} \;
|
||||
jekyll build
|
||||
rsync -acvz --delete _site/ clam:www.unethicalblogger.com/htdocs/
|
||||
|
||||
|
||||
.PHONY: all drafts tags publish
|
||||
|
|
|
@ -11,7 +11,7 @@ gems:
|
|||
- jekyll-paginate
|
||||
|
||||
lsi: false
|
||||
exclude: ['README.markdown', 'drupal.rb', 'sync.sh', 'Makefile']
|
||||
exclude: ['README.markdown', 'drupal.rb', 'sync.sh', 'Makefile', 'generate-tags']
|
||||
|
||||
# Used for the RSS feed generator
|
||||
url: 'https://brokenco.de/'
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
{% assign rawtags = "" %}
|
||||
{% for post in site.posts %}
|
||||
{% assign ttags = post.tags | join:'|' | append:'|' %}
|
||||
{% assign rawtags = rawtags | append:ttags %}
|
||||
{% endfor %}
|
||||
{% assign rawtags = rawtags | split:'|' | sort %}
|
||||
|
||||
{% assign site.tags = "" %}
|
||||
{% for tag in rawtags %}
|
||||
{% if tag != "" %}
|
||||
{% if tags == "" %}
|
||||
{% assign tags = tag | split:'|' %}
|
||||
{% endif %}
|
||||
{% unless tags contains tag %}
|
||||
{% assign tags = tags | join:'|' | append:'|' | append:tag | split:'|' %}
|
||||
{% endunless %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
|
@ -1,3 +1,7 @@
|
|||
{% if site.tags != "" %}
|
||||
{% include collect-tags.html %}
|
||||
{% endif %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import glob
|
||||
import os
|
||||
import re
|
||||
|
||||
post_dir = '_posts/'
|
||||
tag_dir = 'tag/'
|
||||
|
||||
total_tags = []
|
||||
for filename in glob.glob(post_dir + '*.md'):
|
||||
matcher = r'^tags:$'
|
||||
with open(filename, 'r') as fd:
|
||||
tagged_line = False
|
||||
for line in fd.xreadlines():
|
||||
if tagged_line:
|
||||
if line.startswith('---'):
|
||||
tagged_line = False
|
||||
else:
|
||||
total_tags.append(line[1:].strip())
|
||||
if re.match(matcher, line):
|
||||
tagged_line = True
|
||||
|
||||
total_tags = set(total_tags)
|
||||
|
||||
for tag in glob.glob(tag_dir + '*.md'):
|
||||
os.remove(tag)
|
||||
|
||||
if not os.path.exists(tag_dir):
|
||||
os.makedirs(tag_dir)
|
||||
|
||||
for tag in total_tags:
|
||||
tag_filename = tag_dir + tag + '.md'
|
||||
with open(tag_filename, 'w+') as fd:
|
||||
fd.write('---\nlayout: tag_page\ntitle: \"Tag: ' + tag + '\"\ntag: ' + tag + '\nrobots: noindex\n---\n')
|
||||
print("Tags generated, count", total_tags.__len__())
|
4
sync.sh
4
sync.sh
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
rsync -acvz --delete _site/ clam:www.unethicalblogger.com/htdocs/
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: ada"
|
||||
tag: ada
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: aks"
|
||||
tag: aks
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: alc"
|
||||
tag: alc
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: amber"
|
||||
tag: amber
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: async"
|
||||
tag: async
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: aviation"
|
||||
tag: aviation
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: azure"
|
||||
tag: azure
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: california"
|
||||
tag: california
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: cicd"
|
||||
tag: cicd
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: clipper"
|
||||
tag: clipper
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: compost"
|
||||
tag: compost
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: continuousdelivery"
|
||||
tag: continuousdelivery
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: copyleft"
|
||||
tag: copyleft
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: croyfamilyfarms"
|
||||
tag: croyfamilyfarms
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: ctags"
|
||||
tag: ctags
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: cycling"
|
||||
tag: cycling
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: devops"
|
||||
tag: devops
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: docker"
|
||||
tag: docker
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: documentation"
|
||||
tag: documentation
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: elasticsearch"
|
||||
tag: elasticsearch
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: epoll"
|
||||
tag: epoll
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: europe"
|
||||
tag: europe
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: evergreen"
|
||||
tag: evergreen
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: expressjs"
|
||||
tag: expressjs
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: facter"
|
||||
tag: facter
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: feathers"
|
||||
tag: feathers
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: feathersjs"
|
||||
tag: feathersjs
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: fire"
|
||||
tag: fire
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: flying"
|
||||
tag: flying
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: food"
|
||||
tag: food
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: fosdem"
|
||||
tag: fosdem
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: fosdem2015"
|
||||
tag: fosdem2015
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: freebsd"
|
||||
tag: freebsd
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: garden"
|
||||
tag: garden
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: german"
|
||||
tag: german
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: github"
|
||||
tag: github
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: gitops"
|
||||
tag: gitops
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: glade"
|
||||
tag: glade
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: google"
|
||||
tag: google
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: gradle"
|
||||
tag: gradle
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: gradlegoodness"
|
||||
tag: gradlegoodness
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: groovy"
|
||||
tag: groovy
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: gsoc"
|
||||
tag: gsoc
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: gtk"
|
||||
tag: gtk
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: gtkada"
|
||||
tag: gtkada
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: hacksgiving"
|
||||
tag: hacksgiving
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: homeowner"
|
||||
tag: homeowner
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: hubboard"
|
||||
tag: hubboard
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: infra"
|
||||
tag: infra
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: infrastructure"
|
||||
tag: infrastructure
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: javaone"
|
||||
tag: javaone
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: javascript"
|
||||
tag: javascript
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: jenkins"
|
||||
tag: jenkins
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: jenkinsworld"
|
||||
tag: jenkinsworld
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: jruby"
|
||||
tag: jruby
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: jrubyconfeu"
|
||||
tag: jrubyconfeu
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: jrubygradle"
|
||||
tag: jrubygradle
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: jvm"
|
||||
tag: jvm
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: kafka"
|
||||
tag: kafka
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: kubernetes"
|
||||
tag: kubernetes
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: linux"
|
||||
tag: linux
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: lookout"
|
||||
tag: lookout
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: lookouteng"
|
||||
tag: lookouteng
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: management"
|
||||
tag: management
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: masochism"
|
||||
tag: masochism
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: maven"
|
||||
tag: maven
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: minikube"
|
||||
tag: minikube
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: miscellaneous"
|
||||
tag: miscellaneous
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: opendev"
|
||||
tag: opendev
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: openinfra"
|
||||
tag: openinfra
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: opensource"
|
||||
tag: opensource
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: opinion"
|
||||
tag: opinion
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: personal"
|
||||
tag: personal
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: pfsense"
|
||||
tag: pfsense
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: pipeline"
|
||||
tag: pipeline
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: postgresql"
|
||||
tag: postgresql
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: presentation"
|
||||
tag: presentation
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: programming"
|
||||
tag: programming
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: puppet"
|
||||
tag: puppet
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: puppetconf"
|
||||
tag: puppetconf
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: puppetlabs"
|
||||
tag: puppetlabs
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: rain"
|
||||
tag: rain
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: resin"
|
||||
tag: resin
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: rspec"
|
||||
tag: rspec
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: ruby"
|
||||
tag: ruby
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: santarosa"
|
||||
tag: santarosa
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: software"
|
||||
tag: software
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: sofware"
|
||||
tag: sofware
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: solo"
|
||||
tag: solo
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: sonoma"
|
||||
tag: sonoma
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: sonomafireinfo"
|
||||
tag: sonomafireinfo
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: spi"
|
||||
tag: spi
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: ssh"
|
||||
tag: ssh
|
||||
robots: noindex
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: tag_page
|
||||
title: "Tag: startupsonomaco"
|
||||
tag: startupsonomaco
|
||||
robots: noindex
|
||||
---
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue