Fixed tag generator
This commit is contained in:
parent
c93103402d
commit
80edc023ae
36 changed files with 249 additions and 4 deletions
|
@ -13,10 +13,10 @@ No plugins required.
|
||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
|
|
||||||
post_dir = '_posts/'
|
post_dir = '_pages/'
|
||||||
tag_dir = 'tag/'
|
tag_dir = 'tag/'
|
||||||
|
|
||||||
filenames = glob.glob(post_dir + '*md')
|
filenames = glob.glob(post_dir + '*html')
|
||||||
|
|
||||||
total_tags = []
|
total_tags = []
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
|
@ -38,7 +38,7 @@ for filename in filenames:
|
||||||
f.close()
|
f.close()
|
||||||
total_tags = set(total_tags)
|
total_tags = set(total_tags)
|
||||||
|
|
||||||
old_tags = glob.glob(tag_dir + '*.md')
|
old_tags = glob.glob(tag_dir + '*.html')
|
||||||
for tag in old_tags:
|
for tag in old_tags:
|
||||||
os.remove(tag)
|
os.remove(tag)
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ if not os.path.exists(tag_dir):
|
||||||
os.makedirs(tag_dir)
|
os.makedirs(tag_dir)
|
||||||
|
|
||||||
for tag in total_tags:
|
for tag in total_tags:
|
||||||
tag_filename = tag_dir + tag + '.md'
|
tag_filename = tag_dir + tag + '.html'
|
||||||
f = open(tag_filename, 'a')
|
f = open(tag_filename, 'a')
|
||||||
write_str = '---\nlayout: tagpage\ntitle: \"Tag: #' + tag + '\"\ntag: \"' + tag + '\"\ndescription: \"Tutti i post del tag: '+ tag +'\"\nrobots: noindex\n---\n'
|
write_str = '---\nlayout: tagpage\ntitle: \"Tag: #' + tag + '\"\ntag: \"' + tag + '\"\ndescription: \"Tutti i post del tag: '+ tag +'\"\nrobots: noindex\n---\n'
|
||||||
f.write(write_str)
|
f.write(write_str)
|
||||||
|
|
7
tag/agile.html
Normal file
7
tag/agile.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #agile"
|
||||||
|
tag: "agile"
|
||||||
|
description: "Tutti i post del tag: agile"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/backup.html
Normal file
7
tag/backup.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #backup"
|
||||||
|
tag: "backup"
|
||||||
|
description: "Tutti i post del tag: backup"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/bios.html
Normal file
7
tag/bios.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #bios"
|
||||||
|
tag: "bios"
|
||||||
|
description: "Tutti i post del tag: bios"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/cifratura.html
Normal file
7
tag/cifratura.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #cifratura"
|
||||||
|
tag: "cifratura"
|
||||||
|
description: "Tutti i post del tag: cifratura"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/company.html
Normal file
7
tag/company.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #company"
|
||||||
|
tag: "company"
|
||||||
|
description: "Tutti i post del tag: company"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/consulenza.html
Normal file
7
tag/consulenza.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #consulenza"
|
||||||
|
tag: "consulenza"
|
||||||
|
description: "Tutti i post del tag: consulenza"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/contatti.html
Normal file
7
tag/contatti.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #contatti"
|
||||||
|
tag: "contatti"
|
||||||
|
description: "Tutti i post del tag: contatti"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/data.html
Normal file
7
tag/data.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #data"
|
||||||
|
tag: "data"
|
||||||
|
description: "Tutti i post del tag: data"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/development.html
Normal file
7
tag/development.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #development"
|
||||||
|
tag: "development"
|
||||||
|
description: "Tutti i post del tag: development"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/email.html
Normal file
7
tag/email.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #email"
|
||||||
|
tag: "email"
|
||||||
|
description: "Tutti i post del tag: email"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/formazione.html
Normal file
7
tag/formazione.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #formazione"
|
||||||
|
tag: "formazione"
|
||||||
|
description: "Tutti i post del tag: formazione"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/freebios.html
Normal file
7
tag/freebios.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #freebios"
|
||||||
|
tag: "freebios"
|
||||||
|
description: "Tutti i post del tag: freebios"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/freesoftware.html
Normal file
7
tag/freesoftware.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #freesoftware"
|
||||||
|
tag: "freesoftware"
|
||||||
|
description: "Tutti i post del tag: freesoftware"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/future.html
Normal file
7
tag/future.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #future"
|
||||||
|
tag: "future"
|
||||||
|
description: "Tutti i post del tag: future"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/gnupg.html
Normal file
7
tag/gnupg.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #gnupg"
|
||||||
|
tag: "gnupg"
|
||||||
|
description: "Tutti i post del tag: gnupg"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/hardening.html
Normal file
7
tag/hardening.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #hardening"
|
||||||
|
tag: "hardening"
|
||||||
|
description: "Tutti i post del tag: hardening"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/hardware.html
Normal file
7
tag/hardware.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #hardware"
|
||||||
|
tag: "hardware"
|
||||||
|
description: "Tutti i post del tag: hardware"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/informatica.html
Normal file
7
tag/informatica.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #informatica"
|
||||||
|
tag: "informatica"
|
||||||
|
description: "Tutti i post del tag: informatica"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/libreboot.html
Normal file
7
tag/libreboot.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #libreboot"
|
||||||
|
tag: "libreboot"
|
||||||
|
description: "Tutti i post del tag: libreboot"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/licenses.html
Normal file
7
tag/licenses.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #licenses"
|
||||||
|
tag: "licenses"
|
||||||
|
description: "Tutti i post del tag: licenses"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/media.html
Normal file
7
tag/media.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #media"
|
||||||
|
tag: "media"
|
||||||
|
description: "Tutti i post del tag: media"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/mission.html
Normal file
7
tag/mission.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #mission"
|
||||||
|
tag: "mission"
|
||||||
|
description: "Tutti i post del tag: mission"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/nodrm.html
Normal file
7
tag/nodrm.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #nodrm"
|
||||||
|
tag: "nodrm"
|
||||||
|
description: "Tutti i post del tag: nodrm"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/planning.html
Normal file
7
tag/planning.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #planning"
|
||||||
|
tag: "planning"
|
||||||
|
description: "Tutti i post del tag: planning"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/projects.html
Normal file
7
tag/projects.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #projects"
|
||||||
|
tag: "projects"
|
||||||
|
description: "Tutti i post del tag: projects"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/rights.html
Normal file
7
tag/rights.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #rights"
|
||||||
|
tag: "rights"
|
||||||
|
description: "Tutti i post del tag: rights"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/security.html
Normal file
7
tag/security.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #security"
|
||||||
|
tag: "security"
|
||||||
|
description: "Tutti i post del tag: security"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/servizi.html
Normal file
7
tag/servizi.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #servizi"
|
||||||
|
tag: "servizi"
|
||||||
|
description: "Tutti i post del tag: servizi"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/sicurezza.html
Normal file
7
tag/sicurezza.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #sicurezza"
|
||||||
|
tag: "sicurezza"
|
||||||
|
description: "Tutti i post del tag: sicurezza"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/social.html
Normal file
7
tag/social.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #social"
|
||||||
|
tag: "social"
|
||||||
|
description: "Tutti i post del tag: social"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/software.html
Normal file
7
tag/software.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #software"
|
||||||
|
tag: "software"
|
||||||
|
description: "Tutti i post del tag: software"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/team.html
Normal file
7
tag/team.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #team"
|
||||||
|
tag: "team"
|
||||||
|
description: "Tutti i post del tag: team"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/unitoo.html
Normal file
7
tag/unitoo.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #unitoo"
|
||||||
|
tag: "unitoo"
|
||||||
|
description: "Tutti i post del tag: unitoo"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/vision.html
Normal file
7
tag/vision.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #vision"
|
||||||
|
tag: "vision"
|
||||||
|
description: "Tutti i post del tag: vision"
|
||||||
|
robots: noindex
|
||||||
|
---
|
7
tag/work.html
Normal file
7
tag/work.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: tagpage
|
||||||
|
title: "Tag: #work"
|
||||||
|
tag: "work"
|
||||||
|
description: "Tutti i post del tag: work"
|
||||||
|
robots: noindex
|
||||||
|
---
|
Loading…
Reference in a new issue