journal
all all entries rss SoML excited dreams runes YRUU ultimate KTRU skate sleepy nihongo
Rob is 20,357 days old today.
prev day next day printable version

Entries this day: First-rsync-of-hakyll-site Learn-me-a-Hakyll Learn-me-some-darcs first-with-date

First rsync of hakyll site

In my ~/.ssh/config file

Host hakyll
    HostName hakyll.robnugen.com
    User ec2-user
    IdentityFile ~/.ssh/thunderrabbitonAWS.pem

From local machine, login simply with ssh hakyll

On the machine:

sudo yum update
sudo yum install nginx
sudo chown ec2-user /usr/share/nginx/html

On local machine

git clone git@github.com:thunderrabbit/hakyll-journal.git journal
cd journal
ghc --make -threaded site.hs
./site rebuild
./site deploy
permalink

Learn me a Hakyll

##12:38pm Wednesday 29 October 2014##

Here is what I started to write to Danny Su on his entry about using Hakyll 4.

Hi Danny
I have decided to take the plunge to a static site, and want my previous journal entries to be stored in yyyy/mm/dd folders as you have on your dannysu.github.com repo.   Have you written about your blogging process?
Given that almost every folder/file in dannysu.github.com repo is updated

See the thing I can't grok is why nearly all the files in dannysu.github.com are updated each time the repo is updated.

But I can't formulate the question in a way I think would be easy to understand coming from some random guy online, so I'll hold it for now.

  • - -

##13:17##

There are several sample blogs using Hakyll 4. Most of them just pile all the posts into the posts folder, but I want them organized in folders by date: yyyy/mm/ddpostname (as my original journal) or yyyy/mm/dd/postname.

So, going through the list, I've come across a few with that seem to have that quality, based on the URLs of the site:

https://dannysu.com/ https://www.skybluetrades.net/ https://xinitrc.de/ https://abizern.org/

I've cloned the repos and will figure out which one is closest to what I'm trying to do:

  1. have source files organized in yyyy/mm folders
  2. have pagination
  3. have a calendar to go back through entries
  4. have tags

brb

  • - - -

##13:38##

Aha! I understand Danny Su's process. He writes entries in posts, and then has a Rakefile which runs hakyll on the site and copies the files from _site to dannysu.github.com.

BUT, his file structure is now out of the running; he's got all his source files in one giant folder.

  • - - -

abizern.org has a layout closest to what I like, but all source files are in one directory.

However, he's got an emacs macro to create journal entries!!

  • - - -

xinitrc.de has all blog source files in one directory

  • - - -

skybluetrades.net seems to be a winner! The source files are in yyyy/mm/dd directories, and he's got photos embedded.

https://www.skybluetrades.net/blog/posts/2011/10/10/whaleboat-island/index.html

Now, the big difference is he's got each entry in its own subfolder inside the date folders, like yyyy/mm/dd/entry-name/index.markdown

I can probably deal with that seamlessly once I have a macro to create journal entries either in emacs or Sublime.

##13:50##

Okay, so I'm going to clone Ian's skybluetrades.net to see if I can make it work. If so, I'll fork the repo.


Hmm he's got a LICENSE file.

I guess it means I can use it so long as I do so respectfully.

I'll send him an email.

##14:59##

I started to compose an email, but decided not to; the email just sounded like whining cause after cloning the site, I was unable to get the site to build at all.

Instead, I went through the rest of the list and found what I think I can use without Licensing questions.

https://hub.darcs.net/DarkFox/DarkFox-blog

It uses darcs instead of git.

##15:09##

cabal update
cabal install darcs-2.8.5
darcs get --lazy https://hub.darcs.net/DarkFox/DarkFox-blog
cd DarkFox-blog
ghc --make -threaded site.hs
./site build
./site watch

http://localhost:8000

Hooray! Hooray! it works!

Okay, so I guess I need to learn me some darcs.

permalink

Learn me some darcs

##15:40pm Wednesday 29 October 2014##

(Adapting from my previous entry)

cabal update
cabal install darcs-2.8.5
darcs get --lazy thunderrabbit@hub.darcs.net:thunderrabbit/journal
cd journal
ghc --make -threaded site.hs
./site build
./site watch
permalink

first with date

##23:20 Wednesday 29 October 2014##

Been working on hakyll.robnugen.com all day, and it seems I have a framework with which I may be happy for a while. I've essentially finished the first three of the items from [Journal Plans](https://hakyll.robnugen.com/2014/10/28/Journal-plans/), although I've just realized that while that link works, the link to that entry from my index does not (due to capitalization). Once I fix the index link, this link won't work unless I remember.

I've almost got Abizern's hakyll.el file adapted for use in this new framework.

But for now it's bedtime.

permalink
prev day next day