Testing HEY world


Test Post for writing short posts in HEY World and importing them into Jekyll (with syntax highlighting and tags). Works fine (up to a certain extend) without cluttering the output in case someone would really subscribe to this via email.

I set up stex.codes a while back in an attempt to have an online CV, but also to start blogging about technical topics regularly again and chose Jekyll since Wordpress seems a bit too big and bloated for what I needed and I liked the idea of having static content.

But when publishing a 2 paragraph long post becomes a project that takes an hour, I often don’t even want to start. Same thing as hanging your guitar on the wall ready to play rather than having to get it out of its case every time. It just doesn’t work. Therefore, I’ll give HEY World a shot. Say what you want about Basecamp in its current state of -1/3 employees, but they still manage to build bridges between “old” technology and the modern web.

beaver_happy.png

(Beaver test image above)

Not sure if it will be enough for my needs when it comes to e.g. code embeds, but it’s worth a try. Maybe I’ll find a good way to display a mix of Jekyll and HEY World posts on my blog through the RSS feed, that might be the perfect solution.

Quick test of syntax highlighting (or probably the lack of it):

require "yaml"

module Neph
  #
  # Acts as a registry of everything read from the local neph.yml file.
  # All other classes should only act with this class instead of processing the file on their own.
  #
  class Config
    using Neph::Refinements::Hash

    class << self
      def exists?
        File.exist?(config_path)
      end

      def environments
        @environments ||= config_yaml["environments"].map do |name, options|
          Environment.new(name, **options.symbolize_keys)
        end
      end

      def task(name)
        tasks.find { |t| t.name == name.to_s }
      end

      def tasks
        @tasks ||= config_yaml["tasks"].map do |task_name, options|
          Task.new(task_name, **options.symbolize_keys)
        end
      end

      private

      def config_path
        File.expand_path("neph.yml", Dir.pwd)
      end

      def config_yaml
        Psych.safe_load(File.read(config_path))
      end
    end
  end
end
<!-- HTML Comment -->
<!doctype html>
<html lang="en">
  <body>
   <em>HTML</em>
   <strong>Test!</strong>
   <div class="a b c">Classes?</div>
  </body>
</html>

Edit: OK, no syntax highlighting - but that’s ok. I’ll experiment a bit with it.
Edit 2: Got syntax highlighting working in Jekyll at least with a custom magic comment at the bottom of the code block 🙂
Edit 3: Just saw that all empty lines are removed from code blocks now, that should probably be changed for readability 🙈
Edit 4: The removal of empty lines was actually done by the HTML prettification I had in place during build. Removed it now as it did more harm than good.

HEY World post is here btw: https://world.hey.com/stex/testing-hey-world-2bfcf2c0