Skip to content

Commit a96d51a

Browse files
committed
chore: more changes
- [x] devcontainer - [x] shortcode for themed images (dark/light) - [x] LICENSE - [x] README.md Signed-off-by: jmeridth <jmeridth@gmail.com>
1 parent b933352 commit a96d51a

File tree

8 files changed

+105
-24
lines changed

8 files changed

+105
-24
lines changed

.devcontainer/Dockerfile

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
ARG NODE_VERSION=20
2+
FROM mcr.microsoft.com/devcontainers/javascript-node:${NODE_VERSION}
3+
4+
# VARIANT can be either 'hugo' for the standard version or 'hugo_extended' for the extended version.
5+
ARG VARIANT=hugo_extended
6+
# VERSION can be either 'latest' or a specific version number
7+
ARG VERSION=latest
8+
9+
# Download Hugo
10+
RUN apt-get update && apt-get install -y ca-certificates openssl git curl && \
11+
rm -rf /var/lib/apt/lists/* && \
12+
case ${VERSION} in \
13+
latest) \
14+
export VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4)}') ;;\
15+
esac && \
16+
echo ${VERSION} && \
17+
case $(uname -m) in \
18+
aarch64) \
19+
export ARCH=ARM64 ;; \
20+
*) \
21+
export ARCH=64bit ;; \
22+
esac && \
23+
echo ${ARCH} && \
24+
wget -O ${VERSION}.tar.gz https://github.com/gohugoio/hugo/releases/download/v${VERSION}/${VARIANT}_${VERSION}_Linux-${ARCH}.tar.gz && \
25+
tar xf ${VERSION}.tar.gz && \
26+
mv hugo /usr/bin/hugo
27+
28+
# Hugo dev server port
29+
EXPOSE 1313
30+
31+
# [Optional] Uncomment this section to install additional OS packages you may want.
32+
#
33+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
34+
# && apt-get -y install --no-install-recommends <your-package-list-here>
35+
36+
# [Optional] Uncomment if you want to install more global node packages
37+
# RUN sudo -u node npm install -g <your-package-list-here>

.devcontainer/devcontainer.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "blog-hugo",
3+
"build": {
4+
"dockerfile": "Dockerfile",
5+
"args": {
6+
"VARIANT": "hugo_extended",
7+
"VERSION": "latest",
8+
"NODE_VERSION": "20"
9+
}
10+
},
11+
"customizations": {
12+
"vscode": {
13+
"settings": {
14+
"html.format.templating": true
15+
},
16+
"extensions": ["bungcip.better-toml", "davidanson.vscode-markdownlint"]
17+
}
18+
},
19+
"forwardPorts": [1313],
20+
"postCreateCommand": "hugo version",
21+
"remoteUser": "node"
22+
}

Dockerfile

Lines changed: 0 additions & 7 deletions
This file was deleted.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2007 Jason Meridth
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Website
2+
3+
## Local Development
4+
5+
Let the devcontainer start in vscode
6+
7+
Then [cmd|ctrl]+P -> Run Task -> Serve or Serve With Drafts
8+
9+
[Open Browser](http://localhost:1313)
10+
11+
## Production
12+
13+
[blog.jasonmeridth.com](http://blog.jasonmeridth.com)

content/posts/2024-03-26-new-job-github.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ tags:
88
- github
99
---
1010

11-
I have landed a new gig at GitHub. I will be a Senior Software Engineer on the GitHub OSPO (Open Source Program Office) team. I am super excited to be working with this team and this company.
11+
I have landed a new gig at [GitHub](https://github.com). I will be a Senior Software Engineer on the [GitHub OSPO (Open Source Program Office) team](https://github.blog/2023-03-13-an-open-source-project-to-empower-ospos-everywhere/). I am super excited to be working with this team and this company.
1212

13-
<picture>
14-
<a href="https://github.com">
15-
<img align="center" alt="GitHub Logo" width="50%" src="https://raw.githubusercontent.com/jmeridth/jmeridth.github.io/main/static/img/github-logo.png">
16-
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/jmeridth/jmeridth.github.io/main/static/img/github-logo-light.png?raw=true">
17-
<img alt="GitHub Logo" width="50%" src="https://raw.githubusercontent.com/jmeridth/jmeridth.github.io/main/static/img/github-logo-dark.png">
18-
</a>
19-
</picture>
13+
{{< theme-image "/img/github-logo-light.png?raw=true" "/img/github-logo-dark.png" "https://github.com" >}}

docker-compose.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{{if .Get 2 }}
2+
<a href="{{ index .Params 2 }}">
3+
{{ end }}
4+
<picture>
5+
<source media="(prefers-color-scheme: dark)" srcset="{{ index .Params 0 }}">
6+
<img alt="GitHub Logo" width="50%" src="{{ index .Params 1}}">
7+
</picture>
8+
{{if .Get 2 }}
9+
</a>
10+
{{ end }}

0 commit comments

Comments
 (0)