finished most home/archive/article page logic