Skip to content
This repository was archived by the owner on Dec 22, 2022. It is now read-only.

Commit 02d1af3

Browse files
author
Mathieu Benoit
committed
init
1 parent 9b753e5 commit 02d1af3

File tree

9 files changed

+92
-0
lines changed

9 files changed

+92
-0
lines changed

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "docker"
9+
directory: "/"
10+
schedule:
11+
interval: "daily"
12+
- package-ecosystem: "gitsubmodule"
13+
directory: "/"
14+
schedule:
15+
interval: "daily"

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "themes/hugo-theme-learn"]
2+
path = themes/hugo-theme-learn
3+
url = https://github.com/matcornic/hugo-theme-learn.git

Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM alpine:3.15.0 as build
2+
ARG HUGO_VERSION=0.91.2
3+
ENV HUGO_BINARY hugo_${HUGO_VERSION}_Linux-64bit.tar.gz
4+
RUN apk add --update wget ca-certificates && \
5+
cd /tmp/ && \
6+
wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_BINARY} && \
7+
tar xzf ${HUGO_BINARY} && \
8+
rm -r ${HUGO_BINARY} && \
9+
mv hugo /usr/bin/hugo && \
10+
apk del wget ca-certificates && \
11+
rm /var/cache/apk/*
12+
WORKDIR /site
13+
COPY . .
14+
RUN hugo -v -s /site -d /site/public
15+
16+
FROM nginxinc/nginx-unprivileged:1.21.4-alpine as nginx-unprivileged-without-curl
17+
USER root
18+
RUN apk del curl
19+
20+
FROM nginx-unprivileged-without-curl
21+
USER 1000
22+
COPY config/nginx.conf /etc/nginx/conf.d/default.conf
23+
COPY --from=build /site/public /usr/share/nginx/html

archetypes/default.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: "{{ replace .Name "-" " " | title }}"
3+
date: {{ .Date }}
4+
draft: true
5+
---
6+

config.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
baseurl = "/"
2+
languageCode = "en-us"
3+
defaultContentLanguage = "en"
4+
theme = "hugo-theme-learn"
5+
enableRobotsTXT = true
6+
# googleAnalytics = 'FIXME'
7+
8+
[outputs]
9+
home = [ "HTML", "RSS", "JSON"]
10+
11+
[params]
12+
defaultTheme = "dark"
13+
14+
editURL = "https://github.com/rafik8/istio-workshop/edit/master/content/"
15+
description = "Anthos Service Mesh (ASM) Workshop"
16+
author = "Mathieu Benoit"
17+
showVisitedLinks = true
18+
disableBreadcrumb = false
19+
disableNextPrev = false

config/nginx.conf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
server {
2+
listen 8080;
3+
server_name localhost;
4+
absolute_redirect off;
5+
6+
location / {
7+
root /usr/share/nginx/html;
8+
index index.html index.htm;
9+
proxy_http_version 1.1; # For Envoy compatibility!
10+
}
11+
12+
error_page 404 /404.html;
13+
}

layouts/404.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
{{ define "main"}}
3+
<p class="img-404">
4+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-cloud-drizzle"><line x1="8" y1="19" x2="8" y2="21"></line><line x1="8" y1="13" x2="8" y2="15"></line><line x1="16" y1="19" x2="16" y2="21"></line><line x1="16" y1="13" x2="16" y2="15"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="12" y1="15" x2="12" y2="17"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path></svg>
5+
</p>
6+
<div class="banner-404">
7+
<h1>404</h1>
8+
<p>oops, page not found… <a href="{{ "/" | relURL }}">go home</a></p>
9+
</div>
10+
{{ end }}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ template "_internal/google_analytics.html" . }}

layouts/shortcodes/html.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<!-- raw html -->
2+
{{.Inner}}

0 commit comments

Comments
 (0)