Search Icon, Magnifying Glass

Marmanold.com

Graduation Cap Heart Question Mark Magnifying Glass

Entries for #javascript

Full-Text Search using Hugo & Lunr

Adding full-text search to a statically generated Hugo site is a fairly easy process. As I’ve mentioned before, I’m already using Gulp to compile and minify my site. Using that Gulp file as my starting point, adding full-text search is a simple three-part process. To enable search, I decided to use the Lunr.js library. Lunr is simple to use and has just the right amount of features for adding some simple search capabilities to your site. Read more...

Posted: Sun, Dec 3, 2017, Words: ~500, Reading Time: 3 min

Build, Minify, and Upload Hugo to S3

Though I’m not a huge fan of JavaScript, I include a small bit of it in this site to track page views and to generate the tag cloud on my search page. Since my project had already been polluted with JavaScript, I decided a while back to go all in and use WebPack and Gulp to bundle my JavaScript code, build my Hugo site, minify everything, and then upload the whole thing to S3. Read more...

Posted: Mon, Oct 16, 2017, Words: ~300, Reading Time: 2 min

Hugo Site on S3 and CloudFront

For a very long time I’ve hosted this site at Nearly Free Speech. I’ve been happy at Nearly Free Speech, but with the launch of LectServe and other IoT and Serverless projects of mine on the AWS stack, it made logistical and financial sense to consolidate on Amazon. Moving my Hugo site to Amazon was a fairly simple affair. First I setup a simple S3 bucket to drop my Hugo generated files to. Read more...

Posted: Mon, Oct 9, 2017, Words: ~300, Reading Time: 2 min

Automated *Pretty* Tweets to DayOne

I’ve been using DayOne as my journal since 2014. Very early on, I realized that a good part of my daily journaling was actually done on Twitter. Over the years I’ve used IFTTT to import my tweets, but the fact that that system didn’t include images or quoted tweets removed a lot of important context. I wanted something nicer that showed the full Twitter card with graphics, etc. DayOne’s recent release of activity feeds seemed to be a good solution, but it, too, lost a lot of context and was very manual. Read more...

Posted: Wed, Sep 20, 2017, Words: ~800, Reading Time: 4 min

Daddy Status Page

A common problem for my wife and daughter since I started working from home more and more was knowing when I was on a conference call. My office has a glass door and the hallway behind it leads upstairs and to the master bedroom, so my family — understandably — likes to know if they’ll be on camera or not when they walk past. It’s also handy for them to know when they can ask me a question verbally rather than having to send me a text message from the room next door. Read more...

Posted: Mon, Jul 31, 2017, Words: ~500, Reading Time: 3 min