Coder Social home page Coder Social logo

yeungkc / hakuba Goto Github PK

View Code? Open in Web Editor NEW
136.0 2.0 19.0 1.97 MB

A fast blog starter that reads data off GitHub Discussions.

Home Page: https://hakuba.yeungkc.com/

License: GNU General Public License v3.0

JavaScript 7.00% TypeScript 38.25% CSS 8.65% HTML 1.18% Svelte 44.92%
blog giscus svelte discussions tailwindcss

hakuba's People

Contributors

dependabot[bot] avatar redl0tus avatar yeungkc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hakuba's Issues

code block adaptation issue

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.

  • error stack:
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
  • original code block content
````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; }
....

Math support

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.

Markdown Grammar Support & Logo

Is your feature request related to a problem? Please describe.

  1. 最好有简洁直接的方式来添加网站logo,或者直接增加在discussion里编辑metadata的功能
  2. 部分markdown语法不支持,目前已知注脚语法“[^1]”无法使用

Describe the solution you'd like

  1. 添加在discussion里直接编辑metadata的功能,这样可以直接添加metadata,免去了logo以及seo两个问题。
  2. 或者在discussion.index里添加logo链接的设置。
  3. html.a标签默认自带nofollow,不知道可不可以去掉
    Describe alternatives you've considered
    直接编辑app.html,但是还有一个PageMeta
    文件,故在metadata方面比较混乱,然后logo也不知道加哪里

Github Discussion Category Section Support

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. 😄

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.