2015-08-10 21:42:44 +00:00
|
|
|
* rm-js-req TODOs
|
|
|
|
|
|
|
|
** Goals
|
|
|
|
*** TODO Have SPA functionality when javascript is enabled
|
2015-08-11 05:36:42 +00:00
|
|
|
*** Complete
|
|
|
|
**** DONE Remove the javascipt requirement (so that all urls can be viewed without javascript)
|
|
|
|
CLOSED: [2015-08-10 Mon 22:57]
|
|
|
|
**** DONE Only generate one version of the site
|
|
|
|
CLOSED: [2015-08-10 Mon 22:57]
|
|
|
|
|
|
|
|
|
|
|
|
** 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).
|
2015-08-10 21:42:44 +00:00
|
|
|
|
|
|
|
** 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.
|
|
|
|
|
2015-08-11 05:36:42 +00:00
|
|
|
*** TODO Modify nav URLs using javascript once page is loaded
|
2015-08-10 21:42:44 +00:00
|
|
|
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.
|
|
|
|
|
2015-08-11 05:36:42 +00:00
|
|
|
*** TODO Fix issue with tag and pagination urls <<page loading issue>>
|
|
|
|
All URLs are required to work without javascript. Thus there can't be any tricks employed
|
|
|
|
in javascript to modify urls (the js router rewriting). Currently this happens with the
|
2015-08-10 21:42:44 +00:00
|
|
|
|
2015-08-11 05:36:42 +00:00
|
|
|
- "/blog.html" to "/blog1.html"
|
|
|
|
- "/tags/general.html" to "/tags/general1.html"
|
|
|
|
- etc..
|
|
|
|
|
|
|
|
Currently URLs to paginated pages (which includes the blog and tag pages) are broken. They
|
|
|
|
generate "/tags/*.html" instead of "/tags/*1.html".
|
|
|
|
|
|
|
|
*** TODO Fix ajax page loading
|
|
|
|
Pages don't load properly when javascript is enabled. This likely is having an effect on
|
|
|
|
this [[page loading issue][issue]] as well. More debugging is required.
|
|
|
|
|
|
|
|
*** Complete
|
|
|
|
**** DONE Generate nav with href pointing to normal urls, not virtual ones
|
|
|
|
CLOSED: [2015-08-10 Mon 22:55]
|
|
|
|
(Eg. /pages/blog.html instead of #/blog.html)
|
|
|
|
Note: must be relative urls (via relativizeUrls)
|
|
|
|
**** DONE Generate pages/* to /
|
|
|
|
CLOSED: [2015-08-10 Mon 22:56]
|
|
|
|
Instead of having the default version
|
|
|
|
**** DONE Generate complete pages (no snippets)
|
|
|
|
CLOSED: [2015-08-10 Mon 22:57]
|
|
|
|
The enhanced javascipt additions to the site will then have to extract the page-content div
|
|
|
|
before loading it into the page.
|