added search
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Kaan Barmore-Genç 2023-10-27 03:58:04 +00:00
parent 82a9aa3779
commit 13f6f1ec6b
6 changed files with 35 additions and 11 deletions

View file

@ -11,14 +11,15 @@
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [1313],
"onCreateCommand": "apk add git-lfs",
"customizations": {
"vscode": {
"extensions": [
"streetsidesoftware.code-spell-checker"
]
}
}
"onCreateCommand": {
"lfs": "apk add git-lfs",
"pagefind": "export VER=v1.0.3 && wget \"https://github.com/CloudCannon/pagefind/releases/download/${VER}/pagefind-${VER}-x86_64-unknown-linux-musl.tar.gz\" && tar -xf \"pagefind-${VER}-x86_64-unknown-linux-musl.tar.gz\" && mv pagefind /usr/bin/ && rm \"pagefind-${VER}-x86_64-unknown-linux-musl.tar.gz\""
},
"customizations": {
"vscode": {
"extensions": ["streetsidesoftware.code-spell-checker"]
}
}
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "uname -a",

14
.vscode/tasks.json vendored
View file

@ -12,7 +12,19 @@
{
"label": "build",
"type": "shell",
"command": "hugo -D",
"command": "hugo",
"problemMatcher": []
},
{
"label": "pagefind",
"type": "shell",
"command": "pagefind --site public",
"problemMatcher": []
},
{
"label": "view",
"type": "shell",
"command": "python3 -m http.server 1313 --directory public",
"problemMatcher": []
}
]

View file

@ -8,7 +8,7 @@ steps:
build:
image: klakegg/hugo:ext-alpine
commands:
- hugo -D
- hugo --minify
deploy:
image: minio/mc
secrets: [MINIO_URL, ACCESS_KEY, SECRET_KEY]

View file

@ -66,6 +66,8 @@ homeSubtitle = [
"My interests include building web and mobile applications, both front and back end. Over the years I learned and used many programming languages and technologies, including JavaScript, TypeScript, React, React Native, Python, Java, C, C++, Clojure, Rust, and Haskell. Pretty much everything I've worked on is open source and available on <a href='https://github.com/SeriousBug/'>my Github page</a>.",
]
enablePagefind = true
# Set a background for the homepage
# backgroundImage = "assets/images/background.jpg"

View file

@ -0,0 +1,9 @@
<link href="/pagefind/pagefind-ui.css" rel="stylesheet">
<script src="/pagefind/pagefind-ui.js"></script>
<div id="search"></div>
<script>
window.addEventListener('DOMContentLoaded', (event) => {
new PagefindUI({ element: "#search", showSubResults: true, resetStyles: false, showImages: true });
});
</script>

@ -1 +1 @@
Subproject commit 9a12bd312aad34529c95b5efbe3eed414704a805
Subproject commit 9782b57a9195096534a4326c54b8289b9b4e928f