nanoblogger tips

To tag existing entries

  • Find category ID
  • $ cd blog/data
    $ cat cat_5.db
    dykning
    
  • Find the files which contain "something about" dykning and insert the filenames in the cat_5.db file
  • $ egrep -i 'dykke|scuba|DIR|PADI|GUE|CMAS|aquarius'  *.txt|cut -d: -f1|sort -u |sed 's/$/\>/g' >> cat_5.db
    

    Remove >5 from the top line with the category name.

  • Then see which categories are defined:
  • $ nb -b blog list tags
    
  • List which entries are now matched up with category 5:
  • nb -b blog list tags 5
    
  • Edit a few of them to insert meaninful titles, fx number 7 and 8
  • nb -b blog -c 2 -e 7,8
    

Change name of category

nb -b blog --title sejlads edit tag 4

Make new category

nb -b blog --title mad add cat

Edit already posted entry:

nb -b blog -e 1

Add category 6 to entry 1

nb -b blog -c 6 -m 1

Force update everything (takes a while)

nb -b blog --force update all

Publish

nb -b blog publish