fixing note url generation when there is no slug set
cleanup gdrive, remove dead code path (is_pdf) and refactor variable names