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
2 changes: 1 addition & 1 deletion .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb

- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: exampleSite

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ jobs:
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: exampleSite
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
uses: actions/configure-pages@v6
- name: Get Theme
run: git submodule update --init --recursive
- name: Update theme to Latest commit
Expand All @@ -63,7 +63,7 @@ jobs:
--buildDrafts --gc \
--baseURL ${{ steps.pages.outputs.base_url }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
uses: actions/upload-pages-artifact@v5
with:
path: ./public
# Deployment job
Expand All @@ -79,4 +79,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v5
15 changes: 7 additions & 8 deletions assets/css/common/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
flex-wrap: wrap;
justify-content: space-between;
max-width: calc(var(--nav-width) + var(--gap) * 2);
margin-inline-start: auto;
margin-inline-end: auto;
margin: auto;
line-height: var(--header-height);
padding: 0 var(--gap);
column-gap: var(--gap);
}

.header-nav a {
Expand All @@ -15,7 +16,6 @@
.logo,
.menu {
display: flex;
margin: auto var(--gap);
}

.logo {
Expand Down Expand Up @@ -82,10 +82,7 @@
word-break: keep-all;
overflow-x: auto;
white-space: nowrap;
}

.menu li+li {
margin-inline-start: var(--gap);
column-gap: var(--gap);
}

.menu a {
Expand All @@ -94,5 +91,7 @@

.menu .active {
font-weight: 500;
border-bottom: 2px solid currentColor;
text-decoration: underline;
text-underline-offset: 0.3rem;
text-decoration-thickness: 2px;
}
27 changes: 15 additions & 12 deletions assets/css/common/md-content.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
font-size: 12px;
}

.md-content a {
.md-content a:not(.anchor) {
text-underline-offset: 0.3rem;
text-decoration: underline;
}
Expand All @@ -40,21 +40,21 @@
text-decoration: line-through;
}

.md-content dl,
.md-content ol,
.md-content p,
.md-content figure,
.md-content ul {
.md-content dl:not(:last-child),
.md-content ol:not(:last-child),
.md-content p:not(:last-child),
.md-content figure:not(:last-child),
.md-content ul:not(:last-child) {
margin-bottom: var(--content-gap);
}

.md-content ol,
.md-content ul {
padding-inline-start: 20px;
padding-inline-start: 1.25rem;
}

.md-content li {
margin-top: 5px;
margin-top: 0.3rem;
}

.md-content li p {
Expand Down Expand Up @@ -90,9 +90,9 @@
.md-content table th,
.md-content table:not(.highlighttable, .highlight table, .gist .highlight) td {
min-width: 80px;
padding: 8px 5px;
padding: 6px 13px;
line-height: 1.5;
border-bottom: 1px solid var(--border);
border: 1px solid var(--border);
}

.md-content table th {
Expand Down Expand Up @@ -165,7 +165,7 @@
.md-content blockquote {
margin: 1rem 0;
padding-inline-start: 1rem;
border-inline-start: 0.3rem solid var(--primary);
border-inline-start: 0.3rem solid var(--content);
}

.md-content hr {
Expand Down Expand Up @@ -213,11 +213,14 @@
.md-content h6:hover .anchor {
display: inline-flex;
color: var(--secondary);
margin-inline-start: 8px;
margin-inline-start: 0.5em;
font-weight: 500;
user-select: none;
}

.anchor:hover {
color: var(--content) !important;
}

.md-content img.in-text {
display: inline;
Expand Down
11 changes: 7 additions & 4 deletions assets/css/common/post-entry.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
}

.home-info .entry-content {
--content-gap: 0.5rem;
-webkit-line-clamp: unset;
margin: 0;
}
Expand All @@ -49,12 +50,14 @@
padding: var(--gap);
background: var(--entry);
border-radius: var(--radius);
transition: transform 0.1s;
transition: transform 0.25s ease;
border: 1px solid var(--border);
}

.post-entry:active {
transform: scale(0.96);
.post-entry:hover,
.post-entry:focus-within {
transform: translateY(-2px);
border-color: var(--tertiary);
}

.tag-entry .entry-cover {
Expand Down Expand Up @@ -93,6 +96,7 @@
right: 0;
top: 0;
bottom: 0;
border-radius: var(--radius);
}

.entry-hint {
Expand All @@ -108,7 +112,6 @@
font-size: 14px;
margin-bottom: var(--gap);
text-align: center;
border-radius: var(--radius);
display: flex;
flex-direction: column;
gap: .5rem;
Expand Down
39 changes: 18 additions & 21 deletions assets/css/common/search.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,35 @@
border-radius: var(--radius);
}

.searchbox input:focus {
border-color: var(--secondary);
}

.searchResults li {
list-style: none;
border-radius: var(--radius);
padding: 10px;
margin: 10px 0;
padding: 10px 15px;
position: relative;
font-weight: 500;
display: flex;
align-items: center;
justify-content: space-between;
background: var(--entry);
transition: transform .25s ease;
border: 1px solid var(--border);
}

.searchResults {
margin: 10px 0;
margin: var(--content-gap) 0;
width: 100%;
display: flex;
flex-direction: column;
gap: 10px;
}

.searchResults li:active {
transition: transform 0.1s;
transform: scale(0.98);
}

.searchResults a {
position: absolute;
width: 100%;
height: 100%;
top: 0px;
left: 0px;
.searchResults li:hover,
.searchResults li:focus-within {
transform: translateY(-2px);
border-color: var(--tertiary);
}

.searchResults .focus {
transform: scale(0.98);
border: 2px solid var(--tertiary);
.searchResults li .entry-link:focus {
outline: 2px solid var(--secondary);
outline-offset: -2px;
}
9 changes: 2 additions & 7 deletions assets/css/common/terms.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.terms-tags {
display: flex;
flex-wrap: wrap;
gap: 20px;
gap: 1em;
margin-top: var(--content-gap);
}

Expand All @@ -14,11 +14,6 @@
display: block;
padding: 4px 10px;
background: var(--tertiary);
border-radius: 6px;
border-radius: var(--radius);
transition: transform 0.1s;
}

.terms-tags a:active {
background: var(--tertiary);
transform: scale(0.96);
}
10 changes: 7 additions & 3 deletions assets/js/fastsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ sInput.onkeyup = function (e) {
if (fuse) {
let results;
if (params.fuseOpts) {
results = fuse.search(this.value.trim(), {limit: params.fuseOpts.limit}); // the actual query being run using fuse.js along with options
results = fuse.search(this.value.trim(), { limit: params.fuseOpts.limit }); // the actual query being run using fuse.js along with options
} else {
results = fuse.search(this.value.trim()); // the actual query being run using fuse.js
}
Expand All @@ -88,8 +88,12 @@ sInput.onkeyup = function (e) {
let resultSet = ''; // our results bucket

for (let item in results) {
resultSet += `<li class="post-entry"><header class="entry-header">${results[item].item.title}&nbsp;»</header>` +
`<a href="${results[item].item.permalink}" aria-label="${results[item].item.title}"></a></li>`
resultSet +=
`<li>` +
`${results[item].item.title}` +
`<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-chevrons-right"><polyline points="13 17 18 12 13 7"></polyline><polyline points="6 17 11 12 6 7"></polyline></svg>` +
`<a class="entry-link" href="${results[item].item.permalink}" aria-label="${results[item].item.title}"></a>` +
`</li>`
}

resList.innerHTML = resultSet;
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h1>
{{- end }}

{{- if .Content }}
<div class="md-content">
<div class="post-content md-content">
{{- if not (.Param "disableAnchoredHeadings") }}
{{- partial "anchored_headings.html" .Content -}}
{{- else }}{{ .Content }}{{ end }}
Expand Down
Loading