Installing Hugo on Ubuntu

Installing Hugo on Ubuntu

Hugo running in the browser on Pop_OS!

The following is the process I used to install Hugo on POP_OS! 19.04. $ symbol in the steps below represent the linuxbrew or current directory within linuxbrew. In my case that’s located at… joe@pop-os:/home/linuxbrew/$ Install Git $ sudo apt install git Install Homebrew for Linux $ cd /home $ sh -c “$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)” Hugo … Continue reading “Installing Hugo on Ubuntu”

Sort Archive Posts Alphabetically

I recently worked on a documentation project that required posts to be sorted alphabetically by title. The process can be done by using pre_get_posts() and the is_archive() conditional tag. /* * Order post archives by title in descending order */ add_action( ‘pre_get_posts’, ‘jd_archive_sort_alpha_title’); function jd_archive_sort_alpha_title($query){ if(is_archive()) { // Set the order to ascending order $query->set( … Continue reading “Sort Archive Posts Alphabetically”