Skip to content

Commit 7819421

Browse files
0.1.0 development
1 parent 1d9ed48 commit 7819421

File tree

8 files changed

+150
-7
lines changed

8 files changed

+150
-7
lines changed

.github/workflows/hugo.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ jobs:
5454
env:
5555
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
5656
HUGO_ENVIRONMENT: production
57-
TZ: America/Los_Angeles
57+
TZ: Australia/Melbourne
5858
run: |
5959
hugo \
6060
--gc \
6161
--minify \
62-
--baseURL "${{ steps.pages.outputs.base_url }}/"
62+
--baseURL "${{ steps.pages.outputs.base_url }}/site"
6363
- name: Upload artifact
6464
uses: actions/upload-pages-artifact@v3
6565
with:

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,9 @@ _site/
1616
# counterproductive to check this file into the repository.
1717
# Details at https://github.com/github/pages-gem/issues/768
1818
Gemfile.lock
19+
20+
# Hugo gitignores
21+
/site/resources/
22+
/site/public/
23+
/site/themes/
24+
.hugo_build.lock

Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ RUN wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hug
1414
dpkg -i hugo_extended_${HUGO_VERSION}_linux-amd64.deb && \
1515
rm hugo_extended_${HUGO_VERSION}_linux-amd64.deb
1616

17-
WORKDIR /site
17+
RUN mkdir -p /site
1818

19-
COPY . /site
19+
WORKDIR /site
2020

21-
RUN hugo
21+
ENV HUGO_CACHEDIR=/cache
22+
ENV PATH="/var/hugo/bin:$PATH"
2223

23-
EXPOSE 1313
24+
#EXPOSE 1313
2425

25-
CMD ["hugo", "server", "--bind", "0.0.0.0"]
26+
#CMD ["hugo", "server", "--bind", "0.0.0.0"]

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
11
# commitconfirmed.github.io
22
Personal Blog using Hugo
3+
4+
5+
# Random notes
6+
7+
Added the below to the tailwind theme as I wanted a title (layouts/partials/header.html)
8+
9+
``` html
10+
{{ if .Site.Params.header.title }}
11+
<div class="hidden md:flex items-center px-2 text-3xl bold text-slate-800 dark:text-slate-200 ">
12+
{{ .Site.Params.header.title }}
13+
</div>
14+
{{ end }}
15+
```

docker-compose.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
services:
2+
hugo:
3+
build:
4+
context: .
5+
dockerfile: Dockerfile
6+
volumes:
7+
- ./site:/site
8+
ports:
9+
- 1313:1313
10+
command: hugo server --bind 0.0.0.0 --disableFastRender

site/archetypes/default.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
+++
2+
date = '{{ .Date }}'
3+
draft = true
4+
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
5+
+++
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
+++
2+
author = "Hugo Authors"
3+
title = "Emoji Support"
4+
date = "2019-03-05"
5+
description = "Guide to emoji usage in Hugo"
6+
tags = [
7+
"emoji",
8+
]
9+
+++
10+
11+
Emoji can be enabled in a Hugo project in a number of ways.
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 >}}
31+
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 >}}

site/hugo.toml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
baseURL = "https://commitconfirmed.github.io"
2+
title = "commitconfirmed blog"
3+
author = "Andrew Jones"
4+
copyright = "Andrew Jones"
5+
pagination.pagerSize = 10
6+
languageCode = "en"
7+
theme = "tailwind"
8+
enableRobotsTXT = true
9+
enableEmoji = true
10+
11+
[markup]
12+
_merge = "deep"
13+
14+
[params]
15+
keywords = "network, network engineering, automation, network automation, python, go, golang, ansible, tmux"
16+
subtitle = "Network Engineering and Automation"
17+
contentTypeName = "posts"
18+
19+
[params.header]
20+
logo = "logo.svg"
21+
title = " commitconfirmed"
22+
23+
[params.footer]
24+
since = 2025
25+
poweredby = true
26+
27+
[[params.social_media.items]]
28+
enabled = true
29+
title = 'Bluesky'
30+
icon = 'brand-bluesky'
31+
link = 'https://bsky.app/profile/commitconfirmed.bsky.social'
32+
33+
[[params.social_media.items]]
34+
enabled = true
35+
title = 'LinkedIn'
36+
icon = 'brand-linkedin'
37+
link = 'https://www.linkedin.com/in/linkedjones'
38+
39+
[[params.social_media.items]]
40+
enabled = true
41+
title = 'Github'
42+
icon = 'brand-github'
43+
link = 'https://github.com/commitconfirmed'
44+
45+
[menu]
46+
47+
[[menu.main]]
48+
identifier = "post"
49+
name = "Post"
50+
pageRef = "/posts"
51+
weight = 10
52+
53+
[[menu.main]]
54+
identifier = "about"
55+
name = "About"
56+
pageRef = "/about"
57+
weight = 20
58+
59+
[taxonomies]
60+
category = "categories"
61+
tag = "tags"
62+
series = "series"

0 commit comments

Comments
 (0)