-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87d85c9
commit 6b6f70e
Showing
122 changed files
with
9,598 additions
and
11,454 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[submodule "themes/blowfish"] | ||
path = themes/blowfish | ||
url = https://github.com/nunocoracao/blowfish.git | ||
branch = main |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
title: '{{ replace .File.ContentBaseName "-" " " | title }}' | ||
summary: Summary here, shown in various places. | ||
description: Description here, copy the summary. | ||
date: {{ .Date.Format "2006-02-1" }} | ||
#series: [] | ||
#series_order: 0 | ||
#tags: [] | ||
draft: true | ||
--- | ||
|
||
TODO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
title: '{{ replace .File.ContentBaseName "-" " " | title }}' | ||
summary: Summary here, shown in various places. | ||
description: Description here, copy the summary. | ||
date: {{ time.Format "2006-02-1" .Date }} | ||
#series: [] | ||
#series_order: 0 | ||
#tags: [] | ||
draft: true | ||
--- | ||
|
||
## Repo | ||
|
||
{{< github repo="danvolchek/TODO" >}} | ||
|
||
## Overview | ||
|
||
TODO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* Sunflower scheme */ | ||
:root { | ||
--color-neutral: 255, 255, 255; | ||
/* Gray */ | ||
--color-neutral-50: 255,255,255; | ||
--color-neutral-100: 255,255,255; | ||
--color-neutral-200: 214,219,222; | ||
--color-neutral-300: 172,183,188; | ||
--color-neutral-400: 129,146,154; | ||
--color-neutral-500: 92,107,115; | ||
--color-neutral-600: 74,86,92; | ||
--color-neutral-700: 56,65,70; | ||
--color-neutral-800: 38,44,47; | ||
--color-neutral-900: 19,23,24; | ||
/* Yellow */ | ||
--color-primary-50: 255,255,255; | ||
--color-primary-100: 255,255,255; | ||
--color-primary-200: 253,250,242; | ||
--color-primary-300: 243,227,175; | ||
--color-primary-400: 232,204,109; | ||
--color-primary-500: 222,181,43; | ||
--color-primary-600: 194,156,30; | ||
--color-primary-700: 159,128,25; | ||
--color-primary-800: 123,100,19; | ||
--color-primary-900: 88,71,14; | ||
/* Rose */ | ||
--color-secondary-50: 255, 241, 242; | ||
--color-secondary-100: 255, 228, 230; | ||
--color-secondary-200: 254, 205, 211; | ||
--color-secondary-300: 253, 164, 175; | ||
--color-secondary-400: 251, 113, 133; | ||
--color-secondary-500: 244, 63, 94; | ||
--color-secondary-600: 225, 29, 72; | ||
--color-secondary-700: 190, 18, 60; | ||
--color-secondary-800: 159, 18, 57; | ||
--color-secondary-900: 136, 19, 55; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
// This overrides blowfish's default code.js to enable code copy even when | ||
// highlight.noClasses is true in markup.yml. | ||
// The docs say it needs to be false to work, but I want it true so that | ||
// I can override blowfish's syntax highlighting with hugo's syntax highlighting | ||
// which looks better. | ||
// | ||
// Look for OLD and NEW. | ||
var scriptBundle = document.getElementById("script-bundle"); | ||
var copyText = scriptBundle && scriptBundle.getAttribute("data-copy")? scriptBundle.getAttribute("data-copy") : "Copy"; | ||
var copiedText = scriptBundle && scriptBundle.getAttribute("data-copied")? scriptBundle.getAttribute("data-copied") : "Copied"; | ||
|
||
function createCopyButton(highlightDiv) { | ||
const button = document.createElement("button"); | ||
button.className = "copy-button"; | ||
button.type = "button"; | ||
button.ariaLabel = copyText; | ||
button.innerText = copyText; | ||
button.addEventListener("click", () => copyCodeToClipboard(button, highlightDiv)); | ||
addCopyButtonToDom(button, highlightDiv); | ||
} | ||
|
||
async function copyCodeToClipboard(button, highlightDiv) { | ||
// OLD | ||
// const codeToCopy = highlightDiv.querySelector(":last-child > .chroma > code").innerText; | ||
// NEW | ||
const codeToCopy = [...highlightDiv.querySelectorAll("code > span")].map(line => line.innerText.trimEnd()).join("\n"); | ||
try { | ||
result = await navigator.permissions.query({ name: "clipboard-write" }); | ||
if (result.state == "granted" || result.state == "prompt") { | ||
await navigator.clipboard.writeText(codeToCopy); | ||
} else { | ||
copyCodeBlockExecCommand(codeToCopy, highlightDiv); | ||
} | ||
} catch (_) { | ||
copyCodeBlockExecCommand(codeToCopy, highlightDiv); | ||
} finally { | ||
codeWasCopied(button); | ||
} | ||
} | ||
|
||
function copyCodeBlockExecCommand(codeToCopy, highlightDiv) { | ||
const textArea = document.createElement("textArea"); | ||
textArea.contentEditable = "true"; | ||
textArea.readOnly = "false"; | ||
textArea.className = "copy-textarea"; | ||
textArea.value = codeToCopy; | ||
highlightDiv.insertBefore(textArea, highlightDiv.firstChild); | ||
const range = document.createRange(); | ||
range.selectNodeContents(textArea); | ||
const sel = window.getSelection(); | ||
sel.removeAllRanges(); | ||
sel.addRange(range); | ||
textArea.setSelectionRange(0, 999999); | ||
document.execCommand("copy"); | ||
highlightDiv.removeChild(textArea); | ||
} | ||
|
||
function codeWasCopied(button) { | ||
button.blur(); | ||
button.innerText = copiedText; | ||
setTimeout(function () { | ||
button.innerText = copyText; | ||
}, 2000); | ||
} | ||
|
||
function addCopyButtonToDom(button, highlightDiv) { | ||
highlightDiv.insertBefore(button, highlightDiv.firstChild); | ||
const wrapper = document.createElement("div"); | ||
wrapper.className = "highlight-wrapper"; | ||
highlightDiv.parentNode.insertBefore(wrapper, highlightDiv); | ||
wrapper.appendChild(highlightDiv); | ||
} | ||
|
||
window.addEventListener("DOMContentLoaded", (event) => { | ||
document.querySelectorAll(".highlight").forEach((highlightDiv) => createCopyButton(highlightDiv)); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# -- Site Configuration -- | ||
# Refer to the theme docs for more details about each of these parameters. | ||
# https://blowfish.page/docs/getting-started/ | ||
|
||
|
||
theme: blowfish | ||
baseURL: https://danvolchek.com/ | ||
defaultContentLanguage: en | ||
|
||
publishDir: docs | ||
|
||
enableRobotsTXT: false | ||
paginate: 10 | ||
summaryLength: 0 | ||
|
||
buildDrafts: false | ||
buildFuture: false | ||
|
||
imaging: | ||
anchor: Center | ||
|
||
taxonomies: | ||
tag: tags | ||
category: categories | ||
author: authors | ||
series: series | ||
blog: blog | ||
projects: projects | ||
|
||
sitemap: | ||
changefreq: daily | ||
filename: sitemap.xml | ||
priority: 0.5 | ||
|
||
outputs: | ||
home: | ||
- HTML | ||
- RSS | ||
- JSON | ||
|
||
related: | ||
threshold: 0 | ||
toLower: false | ||
indices: | ||
- name: tags | ||
weight: 100 | ||
- name: categories | ||
weight: 100 | ||
- name: series | ||
weight: 50 | ||
- name: authors | ||
weight: 20 | ||
- name: date | ||
weight: 10 | ||
- applyFilter: false | ||
name: fragmentrefs | ||
type: fragments | ||
weight: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
languageCode: en | ||
languageName: English | ||
weight: 1 | ||
title: Dan Volchek | ||
|
||
params: | ||
displayName: EN | ||
isoCode: en | ||
rtl: false | ||
dateFormat: January 2, 2006 | ||
logo: img/logo_padded.png | ||
description: Project website and blog. | ||
|
||
author: | ||
name: Dan Volchek | ||
image: img/logo.png | ||
headline: Software Engineer | ||
bio: Incredibly powerful | ||
links: | ||
- email: mailto:danvnad@gmail.com | ||
- github: https://github.com/danvolchek | ||
- linkedin: https://linkedin.com/in/dan-volchek/ | ||
- mastodon: https://mastodon.social/@danvolchek | ||
- resume: /dan_volchek_resume.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# -- Markup -- | ||
# These settings are required for the theme to function. | ||
|
||
goldmark: | ||
renderer: | ||
unsafe: true | ||
|
||
highlight: | ||
noClasses: true | ||
style: catppuccin-frappe | ||
|
||
tableOfContents: | ||
startLevel: 2 | ||
endLevel: 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# -- Main Menu -- | ||
# The main menu is displayed in the header at the top of the page. | ||
# Acceptable parameters are name, pageRef, page, url, title, weight. | ||
# | ||
# The simplest menu configuration is to provide: | ||
# name = The name to be displayed for this menu link | ||
# pageRef = The identifier of the page or section to link to | ||
# | ||
# By default the menu is ordered alphabetically. This can be | ||
# overridden by providing a weight value. The menu will then be | ||
# ordered by weight from lowest to highest. | ||
|
||
main: | ||
- name: Projects | ||
pageRef: projects | ||
weight: 10 | ||
|
||
- name: Blog | ||
pageRef: blog | ||
weight: 20 | ||
|
||
# - name: example sub-menu 1 | ||
# parent: Parent | ||
# pageRef: posts | ||
# weight: 20 | ||
|
||
# - name: example sub-menu 2 | ||
# parent: Parent | ||
# pageRef: posts | ||
# weight: 20 | ||
|
||
# - name: Categories | ||
# pageRef: categories | ||
# weight: 20 | ||
|
||
# - name: Tags | ||
# pageRef: tags | ||
# weight: 30 | ||
|
||
# subnavigation: | ||
# - name: An interesting topic | ||
# pageRef: tags/interesting-topic | ||
# weight: 10 | ||
|
||
# - name: My Awesome Category | ||
# pre: github | ||
# pageRef: categories/awesome | ||
# weight: 20 | ||
|
||
# -- Footer Menu -- | ||
# The footer menu is displayed at the bottom of the page, just before | ||
# the copyright notice. Configure as per the main menu above. | ||
|
||
|
||
# footer: | ||
# - name: Tags | ||
# pageRef: tags | ||
# weight: 10 | ||
|
||
# - name: Categories | ||
# pageRef: categories | ||
# weight: 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
hugoVersion: | ||
extended: false | ||
min: 0.87.0 |
Oops, something went wrong.