Jekyll Indieweb


Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

40 check-ins

I have literally no idea. Can't remember why I did this Leaf check-in: 789b1c220f user: atomicules tags: trunk
Really don't try to syndicate future posts Doh! Need to get datetime to 00:00 as otherwise can still fail. check-in: 1ca70f9df1 user: atomicules tags: trunk
Don't try to syndicate future posts I never really bothered with future posts before, usually leaving things in a draft folder instead. check-in: 7492f6da82 user: atomicules tags: trunk
Enable incremental builds Seems to work ok and does speed things up. Also add commented-out versions of build and serve for when using git version of Jekyll. Add a comment about date and time formats, must have changed at some point. check-in: 083b073943 user: atomicules tags: trunk
Add option to flag some posts as DO NOT SYNDICATE I.e. basically look for a yaml key of that name. No need for that key to have a value. Just check for it existing as by default it won't. Adding this as some photos/images I don't want to syndicate to Flickr. check-in: 75924f9e07 user: atomicules tags: trunk
Handle nested double quotes in a string So I can do strings like so: "And so I said, "I didn't do that!"" I have to remember to do this, but this is good enough: rake note["And so I said, \"I didn't do that!\""] References 3ffea62560f305c2c5cf188c146ed6f1271d62f6 check-in: 6de2cd4592 user: atomicules tags: trunk
Minor tweak for POSSE to Flickr Goes hand in hand with Jekyll include changes I've made for photo posts where I'm now putting leading slashes for my image paths. Also change logic ordering a bit to make more sense. check-in: 29b5f69899 user: atomicules tags: trunk
Enable compression and remove Rakefile from server Hadn't thought that the Rakefile was getting copied to _sites and therefore deployed to the web server. Also, since even my basic web server supports serving compressed content I'm now creating compressed copies of everything during deployment. check-in: e56656e837 user: atomicules tags: trunk
Add BSD License check-in: 60679fdff5 user: atomicules tags: trunk
Major overhaul - Call syndication within posts loop instead of loop within syndication - Major refactoring of code. Previously each syndication class looped through all the posts using find_posts_since, but it makes much more sense to loop through the code once, directly within the rakefile and call the relevant syndication objects within that. - Require module within rakefile and require individual syndication classes from module. This is a cleaner approach. Previously each syndication class file required and included the module and the rakefile required all the individual class files - crazy! - Finally, use a hash to pass around all the post_data info as can just pass a hash as an argument as opposed to passing individual arguments and forgetting which order they are in and that some syndication classes required more arguments than others, etc. This was because find_posts_since had to generate the data correctly depending on what post_type it was being called for. With a hash it doesn't matter if I pass additional unnecessary arguments as long as I use the same key names everywhere. check-in: 4e162f5e7e user: atomicules tags: trunk
Bug fix - Mucked up syndicated links when implementing webmentions REALLY need to tidy things up now. check-in: b57a788793 user: atomicules tags: trunk
Initial support for automatically sending webmentions So only on link-type posts that are marked up as being u-in-reply-to. In implementing this I've realised I really need to rethink how my code works. It is now a mess. Each synidcation or webmention task should not iterate through all the posts. That only needs to happen once and from that call the appropriate syndication task, etc. check-in: 2bfd536be0 user: atomicules tags: trunk
Ensure build tasks are always re-enabled and report out number of posts syndicated Need to re-enable build tasks as I may need to re-build more than once during deploy due to adding in rel syndication links and I didn't realised Rake would only run them once. Also, handy to report out number of posts syndicated under each type (photo, link, note) check-in: 34bcb284b2 user: atomicules tags: trunk
Remove some puts statements I'd accidentally left in check-in: b5e99fe3f2 user: atomicules tags: trunk
Whoops, forgot to uncomment deploy on note task check-in: 7fd910fb2d user: atomicules tags: trunk
Add check for Notes > 140 char. Work-around rake not liking commas check-in: 745d0c8f74 user: atomicules tags: trunk
Various fixes for syndicating notes Use DateTime instead of Date, reorder some of the rake tasks, add a test task for testing notes check-in: f9ea46b2de user: atomicules tags: trunk
Add granularity (time) to deploy date. Include datetime in note generation check-in: 3b91b493ff user: atomicules tags: trunk
Add in dynamic building of note file from rake command This is still all working on the assumption of one tweet per day Haven't yet linked in the build, deploy and syndication bits. check-in: 0bbb623e09 user: atomicules tags: trunk
Add note syndication support - Required editing the flickr syndication file to breakout the add_link_to_post method since that can be used for notes as well. - kept the flickr specific bits in the flickr syndication file - Made the method more flexible and added that to jekyll_syndicate.rb. - Add support into find_posts_since for finding posts from the notes sub-directory. check-in: 907c8224e6 user: atomicules tags: trunk
Fix object scope. Was undefined since moving into a class I'm sure there is a neater way to do this, but for now making sure the Pinboard instance I create is a class variable ensures it works everywhere. Weirdly, this isn't necessary with the Flickraw gem, but I think that uses some kind of voodoo. check-in: e9fa1d4d8e user: atomicules tags: trunk
Require silo syndication files in Rakefile instead of calling as external Ruby scripts The reason for doing this is so the NoPostsFoundError can be utilised. When called as external ruby scripts it is basically a system call so you can only see pass/fail. I want to have NoPostsFoundError as a fail, but a legitimate one, so if it occurs it won't try to rebuild for the flickr syndication because there is obviously no need, but also won't cause the whole deploy script to fail. Previously the only way I could stop this legitimate error from stopping the whole deploy was by rescuing any type of error. And that's not such a good idea. In order to get this to work I had to turn everything in the flickr and pinboard syndication files into classes instead of having them suitable for command line scripting. The Rakefile then needs to require this and create instances of these classes. As a result of notes support that I'm mid implementing on my site I found an error in `find_posts_since` as I was assuming everything under _posts was a legitimate file whereas potentially I could now have sub-directories which obviously don't date parse. check-in: 98c0599f8f user: atomicules tags: trunk
Fix drunken spelling in comments check-in: 93697bcfab user: atomicules tags: trunk
Add initial support for adding backlinks for flickr syndicated posts I.e. anything pushed out to flickr is then automatically edited to add in the link to the flickr url. At the moment this url is the nsid one rather than the username version. Need to work on this. There's probably other bits that need doing as well, but I've been drinking and that isn't such an often thing for me so... well, I have tested this code, but not sober. check-in: d1a4052969 user: atomicules tags: trunk
DRY-up the Pinboard add and get methods using template method and lambdas Although I have achieved my goal of DRY-ing up these two methods I don't necessarily think I've made nice code. For instance, if I decided to add another one of the Pinboard API methods in, would this extend to that nicely? I'm not sure. However, since this code is just for me I get to play a bit. I am glad I've managed to avoid eval and eveything is "proper" code though. check-in: b1f6733590 user: atomicules tags: trunk
Bug fix - Forgot to change array indices after changing get method return array See [7128bce9c0] check-in: 93a0970f92 user: atomicules tags: trunk
Use underscores instead of hyphens for filenames So I can have consistency in module and filenames, etc check-in: 4020a4bbaa user: atomicules tags: trunk
Split out common syndication methods into a separate file and module Only roughly tested. Should be mostly ok though. check-in: a4a9440169 user: atomicules tags: trunk
Adds initial support for Flickr syndication. Uses Flickraw since it is such a good gem. I didn't use anyone elses gem for Pinboard because the last time I looked none of them supported the required rate limiting. Tested it and it does work, but lots still to do: - Move out code common to Pinboard and Flickr to another file - Search flickr first before posting for the POSSE machine tag - Update the blog post before deploying with the photo ID from Flickr check-in: 2925e8eba4 user: atomicules tags: trunk
Changes to comments only - more closely reflect reality check-in: 961b079a0c user: atomicules tags: trunk
Adding new file, strip blanks from jekyll site This was in another repository, but I might as well move here since it ties in well with the Indieweb stuff. check-in: bfdf6ceae9 user: atomicules tags: trunk
Minor tweaks to unimportant variable names check-in: 5e3b18afed user: atomicules tags: trunk
Change logging to INFO Was meant to be this way anyway. Commit previous value by mistake. check-in: d3e8c0a35a user: atomicules tags: trunk
Use Logger and improvements/fixes to Pinboard Add method - Use Logger class instead of puts or returning messages in array - Correct arguments for replace parameter in Pinboard Add method. Should be "yes" or "no", not "true" or "false" - Correct statement about minimum requirements for Pinboard Add method. Need url and title/description - Make Pinboard Add method have all arguments optional apart from url and title/description check-in: 7128bce9c0 user: atomicules tags: trunk
Add remove blank lines task I forgot about this. Also do the array of tasks in a more Ruby-ish way. check-in: 5817b97d07 user: atomicules tags: trunk
Use system instead of exec and invoke tasks instead of using dependencies Exec doesn't return, hence why my deploy task was only running the first of the dependencies. I then read that dependencies aren't executed in any specific order so decided not to use them and just invoke them all instead. check-in: 37ebd77332 user: atomicules tags: trunk
Add initial Rakefile check-in: 4c4b4aeb66 user: atomicules tags: trunk
Make file usuable from command line. Fix posse tag for new posts - Add option parsing, etc so I can call this script from the command line - The posse tag wasn't being added for new posts due to my own insanity it seems. Must have been confused. check-in: bbce182326 user: atomicules tags: trunk
Initial commit of Pinboard syndication. It works! Need the corresponding deploy script. Also still tidying up to do. check-in: 59b46a58a6 user: atomicules tags: trunk
initial empty check-in check-in: 1ecff987e1 user: atomicules tags: trunk