Collin J. Doering
e2fd291e8f
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> |
||
---|---|---|
clay | ||
files | ||
fonts | ||
images | ||
images-src | ||
js | ||
lib | ||
pages | ||
posts | ||
src | ||
templates | ||
.gitignore | ||
.gitmodules | ||
LICENSE | ||
README.md | ||
Setup.hs | ||
blog-rekahsoft-ca.cabal | ||
site |
README.md
Source Code for #! λ Slang
About
#! λ Slang is the personal technical blog of Collin Doering, built using software that respects our freedoms.
Features
License
Simply put, you're welcome to use the code used to generate this site though there are a few restrictions:
- Any images and artwork that embody the likeness of "#! λ Slang" are not to be distributed or used and are strictly copyright
- The content of pages and posts can be used with attribution, providing you aren't making money off of it
Please see the LICENSE file for full details.
Building
All that is needed to build this site is cabal and a way to fetch required packages (whether
directly via the internet or by using the fetch
argument to cabal).
$ cabal sandbox init # optional but recommended
$ cabal configure
$ cabal install --only-dependencies
$ cabal build
$ ./site build # build site
$ ./site server # view site at http://localhost:3000