Skip to content

Commit 1386d85

Browse files
0.1.0 development
1 parent 856d8cf commit 1386d85

File tree

7 files changed

+42
-63
lines changed

7 files changed

+42
-63
lines changed

.devcontainer/Dockerfile

+9-18
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,21 @@ FROM mcr.microsoft.com/devcontainers/base:ubuntu
33

44
ENV DEBIAN_FRONTEND=noninteractive
55
ENV SHELL=/usr/bin/zsh
6-
ENV HUGO_VERSION 0.144.2
6+
ENV HUGO_VERSION 0.145.0
77

88
RUN apt-get update -y && apt-get install -y \
9-
wget git curl build-essential ca-certificates \
9+
wget \
1010
&& apt-get autoremove -y \
1111
&& apt-get clean -y \
1212
&& rm -rf /var/lib/apt/lists/*
1313

14-
# Download and install Hugo
15-
RUN wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.deb && \
16-
dpkg -i hugo_${HUGO_VERSION}_Linux-64bit.deb && \
17-
rm hugo_${HUGO_VERSION}_Linux-64bit.deb
14+
RUN wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb && \
15+
dpkg -i hugo_extended_${HUGO_VERSION}_linux-amd64.deb && \
16+
rm hugo_extended_${HUGO_VERSION}_linux-amd64.deb
1817

19-
# Set the working directory
20-
#WORKDIR /site
18+
RUN mkdir -p /site
2119

22-
# Copy the site files
23-
#COPY . /site
20+
WORKDIR /site
2421

25-
# Build the Hugo site
26-
RUN hugo
27-
28-
# Expose the port Hugo server runs on
29-
EXPOSE 1313
30-
31-
# Start the Hugo server
32-
CMD ["hugo", "server", "--bind", "0.0.0.0"]
22+
ENV HUGO_CACHEDIR=/cache
23+
ENV PATH="/var/hugo/bin:$PATH"

.devcontainer/devcontainer.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@
1515
"golang.go"
1616
]
1717
},
18-
"postCreateCommand": "hugo new site ."
18+
"mounts": [
19+
"source=./site,target=/site"
20+
],
21+
"postCreateCommand": "hugo server --bind 0.0.0.0 --disableFastRender"
1922
}

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ WORKDIR /site
2121
ENV HUGO_CACHEDIR=/cache
2222
ENV PATH="/var/hugo/bin:$PATH"
2323

24+
# Local testing if needed without compose
2425
#EXPOSE 1313
25-
26-
#CMD ["hugo", "server", "--bind", "0.0.0.0"]
26+
#CMD ["hugo", "server", "--bind", "0.0.0.0", "--disableFastRender"]

site/content/about/index.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
+++
2+
title = "About"
3+
description = "About Me"
4+
date = "2025-03-12"
5+
+++
6+
7+
Testing about page
+13-40
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,19 @@
11
+++
2-
author = "Hugo Authors"
3-
title = "Emoji Support"
4-
date = "2019-03-05"
5-
description = "Guide to emoji usage in Hugo"
2+
title = "Building your own hugo site"
3+
date = "2025-03-12"
4+
description = "Quick guide to building and hosting a basic blog on your personal github"
65
tags = [
7-
"emoji",
6+
"hugo",
7+
"github",
8+
"github-pages",
89
]
10+
categories = [
11+
"hugo",
12+
]
13+
series = ["Hugo"]
14+
aliases = ["/building"]
915
+++
1016

11-
Emoji can be enabled in a Hugo project in a number of ways. test2
12-
<!--more-->
13-
The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
14-
15-
To enable emoji globally, set `enableEmoji` to `true` in your site's [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g.
16-
17-
<p><span class="nowrap"><span class="emojify">🙈</span> <code>:see_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙉</span> <code>:hear_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙊</span> <code>:speak_no_evil:</code></span></p>
18-
<br>
19-
20-
The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes.
21-
22-
***
23-
24-
**N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g.
25-
26-
{{< highlight html >}}
27-
.emoji {
28-
font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
29-
}
30-
{{< /highlight >}}
17+
# Test
3118

32-
{{< css.inline >}}
33-
<style>
34-
.emojify {
35-
font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
36-
font-size: 2rem;
37-
vertical-align: middle;
38-
}
39-
@media screen and (max-width:650px) {
40-
.nowrap {
41-
display: block;
42-
margin: 25px 0;
43-
}
44-
}
45-
</style>
46-
{{< /css.inline >}}
19+
Test

site/hugo.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ enableEmoji = true
1515
keywords = "network, network engineering, automation, network automation, python, go, golang, ansible, tmux"
1616
subtitle = "Network Engineering and Automation"
1717
contentTypeName = "posts"
18+
showAuthor = true
19+
20+
[params.author]
21+
name = "Andrew Jones"
22+
1823

1924
[params.header]
2025
logo = "logo.svg"
@@ -46,7 +51,7 @@ enableEmoji = true
4651

4752
[[menu.main]]
4853
identifier = "post"
49-
name = "Post"
54+
name = "Posts"
5055
pageRef = "/posts"
5156
weight = 10
5257

0 commit comments

Comments
 (0)