Thursday, October 24, 2019

How To Install Hugo On Ubuntu 18.04

 Video Tutorial-https://youtu.be/f74UdHUFFgc

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Hugo is an Open Source Static Site Generator - It is a Best Static Site Framework for Build a Static Blogs & Websites.
Offcial Website: https://gohugo.io/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Our Server Specification-    
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit   | IP address- 192.168.1.50  | Hostname :www.yourdomain.com
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd ; hostname ; hostname -I ; whoami ; getconf LONG_BIT ; apt install -y build-essential software-properties-common curl gdebi net-tools wget curl sqlite3 dirmngr nano lsb-release apt-transport-https leafpad git sudo unzip socat bash-completion checkinstall imagemagick openssl


apt-get update ; sudo apt-get install hugo -y
which hugo
export VER="0.53"
wget https://github.com/gohugoio/hugo/releases/download/v${VER}/hugo_${VER}_Linux-64bit.deb
dpkg -i hugo_${VER}_Linux-64bit.deb
hugo --help

Optional Step-
hugo new site www.yourdomain.com
cd www.yourdomain.com
hugo new posts/test-page.md
nano content/posts/test-page.md
---
title: "Test Page"
date: 2018-07-12T10:17:29Z
draft: true
---

# Hello World
This is my first hugo site, wooo!!
```
hugo_install="success"
if [[ $hugo_install == "success" ]]; then
  echo "Happy me"
```
bye!

hugo
hugo server

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

No comments:

Post a Comment