41 lines
No EOL
7.3 KiB
XML
41 lines
No EOL
7.3 KiB
XML
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>alguidelines.dev - Business Central Design Patterns – Install Hugo</title><link>https://alguidelines.dev/docs/contributing/installhugo/</link><description>Recent content in Install Hugo on alguidelines.dev - Business Central Design Patterns</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><atom:link href="https://alguidelines.dev/docs/contributing/installhugo/index.xml" rel="self" type="application/rss+xml"/><item><title>Docs: Manually on Windows 11</title><link>https://alguidelines.dev/docs/contributing/installhugo/manuallyonwindows11/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/docs/contributing/installhugo/manuallyonwindows11/</guid><description>
|
||
<p>This guide will walk You thrugh installing Hugo on a Windows 11 PC. For the official install guide, You can wisit <a href="https://gohugo.io/getting-started/installing/">https://gohugo.io/getting-started/installing/</a>.</p>
|
||
<h2 id="download-binaries">Download Binaries</h2>
|
||
<p>The path of least resistance is to just download the .zip file from the official Hugo GitHub Repository <a href="https://github.com/gohugoio/hugo/releases">here</a>.</p>
|
||
<p>The theme that are used, needs the extended version of Hugo, so make sure to download the <strong>extended</strong> version by ensuring the file name starts with <code>hugo_extended...</code></p>
|
||
<div class="alert alert-info" role="alert">
|
||
<h4 class="alert-heading">info</h4>
|
||
<p>For the purpose of this install guide, we are assuming You will want to follow the &ldquo;standard&rdquo; used by Hugo for installing. We will be creating a <code>Hugo</code> folder in the root of <code>C:\</code>. That folder will have a <code>Bin</code> folder for the binaries, and a <code>Sites</code> folder for each website You are building.</p>
|
||
<p>Once You are done, You should have a folder structure that looks like this:</p>
|
||
<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-text" data-lang="text">C:\Hugo
|
||
├── Bin # Binaries
|
||
└┬─ Sites # Hugo Site Repositories
|
||
└── alguidelines # Hugo Source for alguidelines.dev
|
||
</code></pre></div>
|
||
</div>
|
||
<p><img src="SelectExtended.png" alt="image"></p>
|
||
<p>After downloading the .zip file, extract the zip-file to <code>c:\Hugo\Bin</code></p>
|
||
<p><img src="Extract.png" alt="image"></p>
|
||
<p><img src="ExtractToBin.png" alt="image"></p>
|
||
<h2 id="add-hugo-to-path">Add Hugo to Path</h2>
|
||
<p>After copying the binaries to Your PC, You will need to add Hugo binaries to the <code>%PATH%</code> system environment variables.</p>
|
||
<p>To do that, search for <code>environment</code></p>
|
||
<p><img src="SearchForEnv.png" alt="image"></p>
|
||
<p>once you see the <code>Edit the system environment variables</code>, open it and select <code>Environment Variables</code></p>
|
||
<p><img src="SystemProperties.png" alt="image"></p>
|
||
<p>Once the Environment Variables screen is open, highlight the <code>Path</code> lines and press the <code>Edit...</code> button</p>
|
||
<p><img src="EnvironmentVariables.png" alt="image"></p>
|
||
<p>Now press <code>New</code> and add the <code>C:\Hugo\Bin</code> to the path. Press <code>OK</code> and <code>OK</code> to save the new <code>Path</code></p>
|
||
<p><img src="EnvironmentVariablesPath.png" alt="image"></p>
|
||
<p>Once complete. You should now be able to preview the Hugo site on <a href="http://localhost:1313">http://localhost:1313</a> by opening a command promt, and open the <code>C:\Hugo\Sites\alguidelines</code> folder and execute <code>Hugo Serve</code></p>
|
||
<p><img src="HugoServe.png" alt="image"></p></description></item><item><title>Docs: Powershell on Windows 11</title><link>https://alguidelines.dev/docs/contributing/installhugo/usingpowershellonwindows11/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/docs/contributing/installhugo/usingpowershellonwindows11/</guid><description>
|
||
<p>It is possible to use a powershell script and Chocolatey to install and other dependencies. Execute the following script:</p>
|
||
<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-powershell" data-lang="powershell"><span style="color:#204a87">Set-ExecutionPolicy</span> <span style="color:#000">Bypass</span> <span style="color:#000">-Scope</span> <span style="color:#204a87;font-weight:bold">Process</span> <span style="color:#000">-Force</span>
|
||
<span style="color:#000">[System.Net.ServicePointManager]</span><span style="color:#000;font-weight:bold">::</span><span style="color:#000">SecurityProtocol</span> <span style="color:#000;font-weight:bold">=</span> <span style="color:#000">[System.Net.ServicePointManager]</span><span style="color:#000;font-weight:bold">::</span><span style="color:#000">SecurityProtocol</span> <span style="color:#ce5c00;font-weight:bold">-bor</span> <span style="color:#000">3072</span>
|
||
<span style="color:#204a87">Invoke-Expression</span> <span style="color:#000;font-weight:bold">((</span><span style="color:#204a87">New-Object</span> <span style="color:#000">System</span><span style="color:#000;font-weight:bold">.</span><span style="color:#000">Net</span><span style="color:#000;font-weight:bold">.</span><span style="color:#000">WebClient</span><span style="color:#000;font-weight:bold">).</span><span style="color:#000">DownloadString</span><span style="color:#000;font-weight:bold">(</span><span style="color:#4e9a06">&#39;https://community.chocolatey.org/install.ps1&#39;</span><span style="color:#000;font-weight:bold">))</span>
|
||
<span style="color:#000">choco</span> <span style="color:#000">install</span> <span style="color:#000">-y</span> <span style="color:#000">nodejs</span>
|
||
<span style="color:#000">choco</span> <span style="color:#000">install</span> <span style="color:#000">-y</span> <span style="color:#204a87">hugo-extended</span>
|
||
</code></pre></div><p>Once complete, in root of of the repository execute the following commands</p>
|
||
<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-powershell" data-lang="powershell"><span style="color:#000">git</span> <span style="color:#000">submodule</span> <span style="color:#000">update</span> <span style="color:#000;font-weight:bold">-</span><span style="color:#000">-init</span> <span style="color:#000;font-weight:bold">-</span><span style="color:#000">-recursive</span> <span style="color:#000;font-weight:bold">-</span><span style="color:#000">-depth</span> <span style="color:#000">1</span>
|
||
<span style="color:#000">npm</span> <span style="color:#000">install</span>
|
||
</code></pre></div></description></item></channel></rss> |