yeungkc / hakuba Goto Github PK
View Code? Open in Web Editor NEWA fast blog starter that reads data off GitHub Discussions.
Home Page: https://hakuba.yeungkc.com/
License: GNU General Public License v3.0
A fast blog starter that reads data off GitHub Discussions.
Home Page: https://hakuba.yeungkc.com/
License: GNU General Public License v3.0
Describe the bug
There is a problem with the code block adaptation,i built it by cloudflare page.
Maybe not support escape character or other reasons. pls help me find out how to fix it.
21:57:17.717 > Using @sveltejs/adapter-static
21:57:17.717 [vite-plugin-svelte-kit] Cannot read properties of undefined (reading 'paths')
21:57:17.717 error during build:
21:57:17.717 TypeError: Cannot read properties of undefined (reading 'paths')
21:57:17.718 at create_builder (file:///opt/buildhome/repo/node_modules/@sveltejs/kit/dist/chunks/index2.js:52:48)
21:57:17.718 at adapt (file:///opt/buildhome/repo/node_modules/@sveltejs/kit/dist/chunks/index2.js:204:18)
21:57:17.718 at Object.closeBundle (file:///opt/buildhome/repo/node_modules/@sveltejs/kit/dist/vite.js:3104:11)
21:57:17.718 at async Promise.all (index 0)
21:57:17.718 at async /opt/buildhome/repo/node_modules/rollup/dist/shared/rollup.js:23693:13
21:57:17.718 at async catchUnfinishedHookActions (/opt/buildhome/repo/node_modules/rollup/dist/shared/rollup.js:23174:20)
21:57:17.718 at async rollupInternal (/opt/buildhome/repo/node_modules/rollup/dist/shared/rollup.js:23682:5)
21:57:17.719 at async doBuild (/opt/buildhome/repo/node_modules/vite/dist/node/chunks/dep-c9998dc6.js:41710:24)
21:57:17.719 at async build (/opt/buildhome/repo/node_modules/vite/dist/node/chunks/dep-c9998dc6.js:41552:16)
21:57:17.719 at async CAC.<anonymous> (/opt/buildhome/repo/node_modules/vite/dist/node/cli.js:738:9)
21:57:17.744 error Command failed with exit code 1.
21:57:17.744 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
21:57:17.758 Failed: build command exited with code: 1
21:57:18.586 Failed: an internal error occurred
````bash
ok () { echo -e "[\033[032;1mOK\033[0m $(date +%F/%T) $BASH_LINENO] $@" | tee -a $LOG_FILE 2>&1; return 0; }
info () { echo -e "[\033[034;1mINFO\033[0m $(date +%F/%T) $BASH_LINENO] $@" | tee -a $LOG_FILE 2>&1; return $?; }
fail () { echo -e "[\033[031;1mFAIL\033[0m $(date +%F/%T) $BASH_LINENO] $@" | tee -a $LOG_FILE 2>&1; return $?; }
err () { echo -e "[\033[031;1mERR\033[0m $(date +%F/%T) $BASH_LINENO] $@" | tee -a $LOG_FILE 2>&1; exit 1; }
....
Hi, YeungKC!
Hakuba is a really useful repo for the one who want to build their own blog without a server. Thanks for your efforts!
When I used it, I found it can not render mathjax field like $(ax^2 + bx + c = 0)$
which has been added in Github Markdown at 2022-05-19,Math support in markdown. This is necesssary for some people to write the blog. So I file a issue to find if there is an easy way to do it.
as titled
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
From the docs of Hakuba
, I see that BLOG_NAME
and BIO
can be fetched from GitHub profile. It's great! Then what about EMAIL
and TIMEZONE
?
If currently there are no such default behavior, then this issue could be a feature request~
as i'm using section to manage multiple discussion categories, so i wonder if Hakuba can support leveraging that to generate things like Pages
or just scan the section then put everything on blog like just one category. 😄
Waiting sveltejs/kit#4582 fix.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.