Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Containerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM registry.fedoraproject.org/fedora

ARG QUARTZ_REF=v4.2.3
ARG QUARTZ_REF=eccad3da5d7b84b0f78a85b357efedef8c0127fc

USER root

Expand All @@ -10,6 +10,7 @@ RUN dnf install -y git make nodejs && \
npm install -g npm@latest && \
dnf remove -y nodejs

RUN git config --global --add safe.directory /repo
RUN cd /opt && git clone https://github.com/jackyzha0/quartz.git && \
cd quartz && git checkout ${QUARTZ_REF} && \
npm ci
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ PWD := $(shell pwd)
IMAGE_ID_FILE := .generated/.image-id

define COMMON_MOUNTS
-v $(MAKEFILE_DIR):/repo:Z -v "$(MAKEFILE_DIR)/content:/opt/quartz/content:Z"
-v $(MAKEFILE_DIR):/repo:Z
endef

.DEFAULT_GOAL := scratchpad
Expand Down Expand Up @@ -55,7 +55,7 @@ $(IMAGE_ID_FILE): .generated Containerfile quartz.config.ts quartz.layout.ts
$(CONTAINER_RUNTIME) inspect --format='{{.Id}}' $(SCRATCHPAD_IMAGE_NAME):$(IMAGE_TAG) > $(IMAGE_ID_FILE)

public:
npx quartz build $(QUARTZ_BUILD_OPTS)
npx quartz build $(QUARTZ_BUILD_OPTS) --directory=/repo/content

.PHONY: clean
clean:
Expand Down
4 changes: 2 additions & 2 deletions content/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: Welcome 👋
title: Welcome 👋
---

Hello. My name is [Shane McDonald](https://www.linkedin.com/in/theshanemcd/). I
Hello. My name is [Shane McDonald](https://www.linkedin.com/in/theshanemcd/). I
live in Jersey City NJ with my lovely wife Chao, along with our cat Milla and
our dog Rodger. I am currently employed by [Red Hat](https://www.redhat.com) as
one of the lead engineers for [Ansible](https://github.com/ansible).
Expand Down
2 changes: 1 addition & 1 deletion quartz.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const config: QuartzConfig = {
transformers: [
Plugin.FrontMatter(),
Plugin.CreatedModifiedDate({
priority: ["frontmatter", "filesystem"],
priority: ["frontmatter", "git", "filesystem"],
}),
Plugin.SyntaxHighlighting({
theme: {
Expand Down
7 changes: 5 additions & 2 deletions quartz.layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import * as Component from "./quartz/components";
export const sharedPageComponents: SharedLayout = {
head: Component.Head(),
header: [],
afterBody: [],
footer: Component.Footer({
links: {
GitHub: "https://github.com/shanemcd"
GitHub: "https://github.com/shanemcd",
},
}),
};
Expand All @@ -30,7 +31,9 @@ export const defaultContentPageLayout: PageLayout = {
title: "Recent Posts",
limit: 4,
filter: (f) =>
f.slug!.startsWith("posts/") && f.slug! !== "posts/index" && !f.frontmatter?.noindex,
f.slug!.startsWith("posts/") &&
f.slug! !== "posts/index" &&
!f.frontmatter?.noindex,
linkToMore: "posts/" as SimpleSlug,
}),
),
Expand Down
Loading