#!/usr/bin/bash

open_browser() {
  sleep 1
  xdg-open http://localhost:1313
}

hugo server  &  PID_HUGO=$!
open_browser &  PID_BROWSER=$!
wait $PID_HUGO
wait $PID_BROWSER