From df6d5f0e68db52413842594544b70b168f5feca6 Mon Sep 17 00:00:00 2001 From: "Collin J. Doering" Date: Mon, 10 Aug 2015 17:42:44 -0400 Subject: [PATCH] Hide analytics img on nojs site Signed-off-by: Collin J. Doering --- TODO.org | 32 ++++++++++++++++++++++++++++++++ templates/default-nojs.html | 4 +--- 2 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 TODO.org diff --git a/TODO.org b/TODO.org new file mode 100644 index 0000000..4cc7d88 --- /dev/null +++ b/TODO.org @@ -0,0 +1,32 @@ +* rm-js-req TODOs + +** Goals +*** TODO Remove the javascipt requirement (so that all urls can be viewed without javascript) +*** TODO Only generate one version of the site +*** TODO Have SPA functionality when javascript is enabled + +** Implementation + In order to implement this, a reasonable size refactor needs to take place. Below is a list + of things to be completed in order to successfully achieve the aforementioned goals. + +*** TODO Generate nav with href pointing to normal urls, not virtual ones + (Eg. /pages/blog.html instead of #/blog.html) +*** TODO Modify URLs using javascript once page is loaded + If it is indeed enabled then the user can benefit from the SPA functionality of the site. + Otherwise they will be able to browse the site using the original, unmodified links. This is + similar to how the link withing the page-content div work currently, and mainly would have to + be adapted for the navigation. +*** TODO Generate pages/* to / + Instead of having the default version +*** TODO Generate complete pages (no snippets) + The enhanced javascipt additions to the site will then have to extract the page-content div + before loading it into the page. + +** Benefits + This refactor will have a couple added benefits. Namely: + + - The RSS feed which is currently slightly broken for the js version of the site will now + function properly with no modification. The current issue with the RSS feed is that the + links to the posts are to the snippets instead of the virtual address (Eg. + /posts/some-post.html instead of /#/posts/some-post.html). + - Having two files for every post is bad for search engines (SEO). diff --git a/templates/default-nojs.html b/templates/default-nojs.html index a5b6d71..fc42564 100644 --- a/templates/default-nojs.html +++ b/templates/default-nojs.html @@ -24,9 +24,7 @@ -

- -

+ $partial("templates/partials/logo-banner.html")$ $partial("templates/partials/nav-nojs.html")$