Commit Graph

92 Commits

Author SHA1 Message Date
4b832099aa Add blog post: About Comments
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-08-05 07:25:01 -04:00
05bdb874fc Setup Piwik analytics
Setup Piwik tracking of page loads. The global array _paq is used to
communicate commands to the piwik tracker via the script piwik.js which
is loaded asynchronously from the analytics server. Every time a ajax
call is made successfully and content is loaded in the page, analytics
data is captured and sent to the tracker (the loadPageContent function).

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-08-05 06:55:48 -04:00
2f16cce227 Change email to @rekahsoft.ca on business-card
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-08-05 06:55:48 -04:00
92acb5344e Add robots.txt for web robots
Allow all robots to access any part of the site. This may change in the
future, as the html snippets that are generated for the posts and pages
should not be directly indexed.

See: http://www.robotstxt.org/robotstxt.html

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-08-05 02:42:12 -04:00
b41c58246f Add SEO meta information to default html template
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-08-05 02:39:22 -04:00
bcfe9e049c Mention bug tracker in README.md
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-08-03 21:16:27 -04:00
65fc31e285 Added post to test markdown features and styles
The file posts/.markdown-test.markdown uses all features of
markdown (excluding code blocks). This is handy to check the styling of
various things (figures, inline images, tables, headings, etc..).

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-07-19 03:31:36 -04:00
c9db6b881d Fix spacing of post footers
Give more space to tags, as 'Read More' and 'See Comments' each take a
static amount of space but the number of tags for a given post varies.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-07-19 03:29:07 -04:00
0b1f68a992 Added 'Computer From Scratch' article
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-07-19 03:29:07 -04:00
b4d1523cc6 Added files/images directory and modified drafts
The file/images directory is meant for images used for posts. They will
not be application cached (which is what one would want as otherwise the
application cache would become too large).

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-07-19 03:29:07 -04:00
9976b7a719 Added drafts folder including some upcoming articles
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-07-19 03:29:07 -04:00
ac168aa1af Removed lorem ipsum testing posts
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-07-19 03:29:07 -04:00
ecc75e6375 Removed old nojs comments from src/site.hs
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-07-11 03:12:05 -04:00
026237b911 Wrap site tool to allow testing option
Instead of having a symbolic link from ./site to the executable in
dist/build/blog-rekahsoft-ca/blog-rekahsoft-ca, a separate test
running script ./site-test and a Makefile (which is redundant), have a
single shell script that wraps the blog-rekahsoft-ca executable and adds
a test option along with a switch to start selenium (-s|--run-selenium).

Updated README accordingly and removed unnecessary Makefile, and
site-test. Moved the symbolic link ./site to ./%site.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-07-11 03:11:48 -04:00
1bc0beefab Fixed no javascript access message page
When the site is viewed without javascript the navbar forever animates
and the opacity of #page-contents is set, thus making the no javascript
message display not acceptable. To get around this a noscript tag in the
header is added that sets specific CSS in the case the there is indeed
no javascript.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-07-06 21:41:20 -04:00
1d8e0a5587 Fixed status message behavioral issues
Now displays multiple error messages one after the other. Also fixed an
issue where when there is a status message being display and another
error happens, the status message slides up then down again with the new
message.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-07-06 21:41:20 -04:00
c83671ad8c General CSS touch ups
Added margin to bottom of business-card and tidied up spacing of h1 and
hr elements.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-07-06 21:41:20 -04:00
99ab1162da Added road map to README
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-07-06 21:41:20 -04:00
072e3d9870 Themed post content (tables, images, figures, code)
Added theming for tables, inline images, and figures. Inline images are
specified using the markdown syntax "![link text](link_href)" somewhere
within a paragraph. When a link is specified with the same syntax given
previously, Pandoc will generate it as a figure. Figures are displayed
across the whole width of the post and inline-images floated to the
right. Some javascript was added to js/default.js to enable the ability
to click to toggle fullscreen on images and figures.

Code blocks were previously themed but the styling needed to be updated
due to how an update to how pandoc generates code blocks.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-07-06 21:41:20 -04:00
283e4ce8e5 Added information about test-suite to README.md
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-07-03 03:02:53 -04:00
fa36bb8062 Removed upper bounds on test-suite dependencies
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-07-03 03:02:53 -04:00
519f3833bf Upgraded Hakyll 4.6 -> 4.7
The type of the function `readPandocWith` changed slightly between
versions. This commit fixes the minor issue it caused.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-07-03 03:02:12 -04:00
039a961217 Fix ghc warnings generated when compiling src/site.hs
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-02-18 03:13:38 -05:00
671fe3db4b Test site using hspec and webdriver/selenium
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-02-18 03:01:44 -05:00
0bb23967c0 Stop once recursion depth has been reached
While testing I had the router allow infinite loops, but had support all
along to stop them if they occur. Though a message signaled to the user
using a status message would be mice, currently just log to console.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-02-01 03:22:18 -05:00
1866ea9aa6 Fixed redirect loop issue on firefox
In firefox, when going to site from another page was unable to go back.
The exact reason this happens in firefox and not in chromium is still a
mystery.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-02-01 03:19:31 -05:00
5ddd857e79 Cleaned up './site deploy' output
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-01-30 04:49:02 -05:00
8205cb8c87 Tweaked list styles after skeleton upgrade
Numbered bullets didn't stand out and text wasn't formatted correctly
around them (within ol > li's). Also changed the amount of margin
spacing around nested ol/ul elements.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-01-30 04:46:26 -05:00
110b6a0e64 Fixed issue with ol > li's not being numbered
Issue introduced in b0851fc where in ordered lists, li's were
unnumbered.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-01-29 16:59:23 -05:00
100b575137 Bumped JQuery version from 1.9.1 -> 1.11.2
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-01-28 23:26:23 -05:00
843c0f3f69 Fixed little issue with tag page headings
For some reason changing from skeleton 1.2 -> 2.04 broke the "tagged"
image displayed before h1's on the tag pages.

See commit 06114cf

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-01-25 03:23:58 -05:00
0b82fc7874 Use .row instead of .container when within .container
This is due to a change from skeleton 1.2 -> 2.04 that was missed in
commit 06114cf (last commit).

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-01-25 03:18:04 -05:00
06114cfc0d Upgrade skeleton from 1.2 -> 2.04
Skeleton switched from having 16 columns to 12. A few improvements to
skeleton also required a little tweaking of the current css as well as a
cleanup of templates/default.html.

Note: templates/default-nojs.html was not updated though an update will
be trivial. This is only relevant if the nojs section of the site is
revived.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-01-25 01:44:32 -05:00
773b407af2 Cleaned up README.md
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-01-25 01:01:29 -05:00
917775a909 Updated site deploy commands
Now when './site deploy' is run the empty files that are left over from
Hakyll generating the site are removed. Also rsync now uses verbose
output so that its easy to see what files are updated on the server.

Note, because the commands run by './site deploy' include 'echo' and
'find' this requires a posix environment (and thus can't be built on
Windows without cygwin).

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-01-25 00:00:55 -05:00
485bab9b98 Began theming pagination first/last/next/previous
Added spans that will show "First Page", "Previous Page", "Next Page",
"Last Page" when its unavailable. Eg. the user is on the last page so
there should be no link to click and instead just place holder text.

The css uses flexbox display and thus only works in modern
browsers (see: http://caniuse.com/#feat=flexbox). This may be changed in
the future as to support more browsers (IE9+ specifically).

Images/Icons for "First Page", "Previous Page", "Next Page", "Last Page"
have yet to be set (though would preferably be done in pure CSS).

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-01-24 18:36:55 -05:00
5b42ae5e2c Fixed link in sample-news post
This post is just a filler post (lorem ipsum) to test pagination (along
with a couple others - which soon will be removed).

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-01-24 14:11:43 -05:00
2f607aa078 Removed unused .gitmodules file
Stopped using git submodules (for jquery, jquery-address, skeleton, and
any other libraries used for this site) but forgot to remove the
.gitmodules file. This commit removed said empty file.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-01-24 13:21:06 -05:00
4db3cb536c Fixed passing of most jslint checks
The only checks that fail are the 'insecure regexp' checks (which in
this case are not insecure) as well as a few functions that take unused
parameters.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-01-23 14:33:24 -05:00
bfa6e42d9f Cleaned up client side router
Wrapped client side url router in a function that returns an object (the
interface for the router). Because javascript passes by reference,
passing the array of handler/route objects to the router was an issue
so the array of routes used for this application was moved to within the
wrapper function. In the future this should be changed so
the array is supplied and can be modified with a method like addRoute.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-01-23 14:33:24 -05:00
07eb14f986 Added initial implementation of client side router
Re-factored how urls are handled. Specifically, made it more clear which
urls are rewritten when as well as what to run beforeSending, onError
and onSuccess.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-01-23 14:33:24 -05:00
b0851fc6fa Fixed li bullet indicator
Use the unicode arrow '2192' infront of ol > li bullets. This must have
been missed while porting css from sass to clay.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-01-23 14:26:20 -05:00
2401f3aa9b Trivial UI cleanup on individual posts
Both the clay css and templates/partials/post.html added a horizontal
rule at the top of each post footer (using the css border property and
hr respectively). Opted for using the clay css one as its used on
multiple pages (eg. blog pages and tag pages).

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-01-22 13:40:52 -05:00
3df2f3df34 Cleaned up client side URL rewriting
When a page listed in the navigation was opened in a new page/tab, the
url used to be the whole path (/#/pages/pagename.html). This commit
enables rewriting of the urls (using jquery address) so that the client
always sees a pretty url (eg /#/blog.html instead of
/#/pages/blog.html).

Also fixed issue introduced last commit (b6d6830) where when clicking on
post or tag links failed to activate the blog menuitem.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-01-22 13:35:58 -05:00
b6d683014d Fixed opening nav items in new tab/window
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-01-22 01:07:48 -05:00
e2fd291e8f Fixed opening issue with links within page-content
Previously, all anchor clicks within #page-content was handled by a
event listener that checked whether the anchor's href was to an
'external' url and if so loaded it directly. Otherwise it passed the
value of the anchors href attribute to the jquery address plugin (via
the $.address.value function).

This unfortunately cause clicking on anchors to work fine but when
opening them in a new page or window (or copying the link) caused the
link to reference the html snippet of the page/post instead of the
entire application.

To rectify this, this commit simply transforms internal urls href
attribute after the snippet is loaded into #page-content.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-01-22 00:24:52 -05:00
046f97a2bb Passes most jslint tests
Excluding insecure regexps (used to check urls - which is not a security
risk in this case). In a future commit this can be fixed by adding
comments ignoring the jslint errors or by making the regexps more
specific.

Also in the ajax call in loadPageContent the callbacks fore beforeSend
and error have unused parameters (xhr and settings, though the error
callback uses its second argument status).

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-01-19 23:53:38 -05:00
86b05d8f28 Fixed rendering of source code
Commit cd5ae7b652 (the switch to clay)
introduced a error rendering source code in posts.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-01-19 23:40:37 -05:00
723fde5fee Fixed creative commons license link on home page
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-01-19 23:40:03 -05:00
4fa0eed737 Cleaned up README build instructions
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-01-14 04:50:29 -05:00