|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"><head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script> |
| 3 | + <meta charset="utf-8" /> |
| 4 | + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 6 | + <meta name="description" content="Disclaimer: Guide for Unix-based system users only. -Windows users, no thanks. |
| 7 | +Hey buddy, |
| 8 | +This is a quick guide on how to create your own website/blog. It’s aimed at intermediate users, so I won’t be explaining anything in detail. |
| 9 | +1. Hugo |
| 10 | +Hugo is fast, lightweight, and perfect for building websites with minimal resources. I chose it for its speed and flexibility for personal projects and portfolios. The biggest advantage I see, and what I love the most, is that you can create your own markdown templates!!! 🚀"> |
| 11 | + |
| 12 | + <title> |
| 13 | + |
| 14 | + Your Own Website or Blog Using Hugo Engl |
| 15 | + |
| 16 | + </title> |
| 17 | + |
| 18 | + |
| 19 | + <link rel="shortcut icon" type="image/x-icon" href="/" /> |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + <link rel="stylesheet" href="//localhost:1313/css/main.01273a70fa873b012d056499c16bb47955e0e7526c34edb73f05ca8f99f488ebc323423c6557f93f9b42a41de0448a25ce9a1ab577d0bf61e36eaf52a4979a1d.css" integrity="sha512-ASc6cPqHOwEtBWSZwWu0eVXg51JsNO23PwXKj5n0iOvDI0I8ZVf5P5tCpB3gRIolzpoatXfQv2Hjbq9SpJeaHQ==" /> |
| 24 | + |
| 25 | +</head> |
| 26 | +<body a="auto"> |
| 27 | + <main class="page-content" aria-label="Content"> |
| 28 | + <div class="w"> |
| 29 | +<a href="/">..</a> |
| 30 | + |
| 31 | + |
| 32 | +<article> |
| 33 | + <p class="post-meta"> |
| 34 | + <time datetime="2024-09-12 14:14:13 -0500 CDT"> |
| 35 | + 2024-09-12 |
| 36 | + </time> |
| 37 | + </p> |
| 38 | + |
| 39 | + <h1>Your Own Website or Blog Using Hugo Engl</h1> |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + <p><em>Disclaimer</em>: Guide for Unix-based system users only. -Windows users, no thanks.</p> |
| 44 | +<h1 id="hey-buddy">Hey buddy,</h1> |
| 45 | +<p>This is a quick guide on how to create your own website/blog. It’s aimed at intermediate users, so I won’t be explaining anything in detail.</p> |
| 46 | +<h3 id="1-hugo">1. Hugo</h3> |
| 47 | +<p>Hugo is fast, lightweight, and perfect for building websites with minimal resources. I chose it for its speed and flexibility for personal projects and portfolios. The biggest advantage I see, and what I love the most, is that you can create your own markdown templates!!! 🚀</p> |
| 48 | +<h3 id="2-installation-in-2-minutes">2. Installation in ~2 Minutes</h3> |
| 49 | +<p>Installing Hugo is easy. Just run one of these commands depending on your system:</p> |
| 50 | +<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>brew install hugo <span style="color:#0f0"># For macOS</span> |
| 51 | +</span></span><span style="display:flex;"><span>sudo apt install hugo <span style="color:#0f0"># For Linux</span> |
| 52 | +</span></span><span style="display:flex;"><span>sudo pacman -S hugo <span style="color:#0f0"># For Linux++</span> |
| 53 | +</span></span></code></pre></div><h3 id="3-create-your-website-in-1-command">3. Create Your Website in 1 Command</h3> |
| 54 | +<p>Start your project with this command:</p> |
| 55 | +<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>hugo new site my-website <span style="color:#0f0"># This creates a folder (no need to put it inside another folder)</span> |
| 56 | +</span></span></code></pre></div><h3 id="4-choose-a-theme-and-customize-it">4. Choose a Theme and Customize It</h3> |
| 57 | +<p>Pick a theme from Hugo Themes:</p> |
| 58 | +<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>git clone URL-THEME themes/ <span style="color:#0f0">## Copy it into the themes folder</span> |
| 59 | +</span></span></code></pre></div><p>Go to Hugo Themes, select a theme, or if you’re up for it, you can create your own! (I’ll leave my personal recommendations at the end of the post). Customize the <code>config.toml</code> file to adjust colors, fonts, and more.</p> |
| 60 | +<p>If you run into trouble or you’re not a web developer, the only thing you need to know is:</p> |
| 61 | +<ul> |
| 62 | +<li>Posts go in <code>content/data</code>,</li> |
| 63 | +<li>Main configuration goes in <code>config.toml</code> (root directory).</li> |
| 64 | +</ul> |
| 65 | +<h3 id="6-deploy-easily-with-netlify-or-github-pages">6. Deploy Easily with Netlify or GitHub Pages</h3> |
| 66 | +<p>This part was the trickiest for me 😅. Nobody really explains how to do it properly; they just say, “use GitHub Pages,” and that’s it. So, here’s my detailed tutorial:</p> |
| 67 | +<ol> |
| 68 | +<li>Buy a domain on Cloudflare (optional, but recommended).</li> |
| 69 | +<li>Go to GitHub and verify the domain in the Pages section under Settings.</li> |
| 70 | +<li>Upload the whole folder you created with Hugo to your repo on GitHub.</li> |
| 71 | +<li>Then, go to the repo’s Settings and click on Pages.</li> |
| 72 | +<li>Select the root folder and branch.</li> |
| 73 | +<li>Add your custom domain.</li> |
| 74 | +<li>And we’re done! Now, go to Actions in your repo, select “New workflow,” search for Hugo, and that’s it—you’ve got your new website up and running.</li> |
| 75 | +</ol> |
| 76 | + |
| 77 | +</article> |
| 78 | + |
| 79 | + </div> |
| 80 | + </main> |
| 81 | + </body> |
| 82 | +</html> |
0 commit comments