diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml new file mode 100644 index 0000000..b5d765a --- /dev/null +++ b/.github/workflows/hugo.yaml @@ -0,0 +1,78 @@ +# Sample workflow for building and deploying a Hugo site to GitHub Pages +name: Deploy Hugo site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: + - main + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +# Default to bash +defaults: + run: + shell: bash + +jobs: + # Build job + build: + runs-on: ubuntu-latest + env: + HUGO_VERSION: 0.115.4 + steps: + - name: Install Hugo CLI + run: | + wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ + && sudo dpkg -i ${{ runner.temp }}/hugo.deb + - name: Install Dart Sass + run: sudo snap install dart-sass + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + fetch-depth: 0 + - name: Setup Pages + id: pages + uses: actions/configure-pages@v3 + - name: Install Node.js dependencies + run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" + - name: Build with Hugo + env: + # For maximum backward compatibility with Hugo modules + HUGO_ENVIRONMENT: production + HUGO_ENV: production + run: | + hugo \ + --gc \ + --minify \ + --baseURL "${{ steps.pages.outputs.base_url }}/" + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: ./public + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..1815d0b --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "themes/tokiwa"] + path = themes/tokiwa + url = git@github.com:guttatus/hugo-theme-tokiwa.git + branch = gitalk diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..28e38c1 --- /dev/null +++ b/config.toml @@ -0,0 +1,93 @@ +DefaultContentLanguage = "zh-cn" +author = "guttatus" +baseURL = "https://guttatus.github.io" +copyright = "Copyright ©guttatus,CC BY-SA" +disqusShortname = "guttatus" +enableInlineShortcodes = true +footnoteReturnLinkContents = "^" +googleAnalytics = "UA-FAKE" ## or "G-xxxxxxxx" in Google Analytics v4, in hugo v0.82+ +hasCJKLanguage = true +languageCode = "cn" +theme = "tokiwa" +title = "Guttatus's Blog" + +[markup] +[markup.highlight] +style = "monokailight" + +[markup.goldmark.renderer] +unsafe = true + +[markup.tableOfContents] +startLevel = 2 +endLevel = 5 +ordered = false + +[params] +bannerFont = "fonts/exampleFont" +description = """ +虽千万人吾往矣 +""" +env = "production" # for Google Analytics and DISQUS. +favicon = "img/favicon.png" +fuse = true # for searchbox. "JSON" must added to output contents. See [outputs]. +math = true # for introducing $KaTEX$ +useChineseFonts = true +postDateFormat = "2006-1-2" +enableGitalk = true + +[menu] +# Shown in the side menu. +[[menu.main]] +identifier = "post" +name = "Posts" +url = "/post/" +weight = 1 +[[menu.main]] +name = "Tags" +url = "/tags/" +weight = 2 + +[[menu.main]] +name = "Categories" +url = "/categories/" +weight = 2 + +[[menu.main]] +identifier = "about" +name = "About" +url = "/about/" +weight = 3 + +[taxonomies] +category = "categories" +series = "series" +tag = "tags" +[social] +bilibili = "https://space.bilibili.com/435228864" +github = "https://github.com/guttatus" +# gitlab = "http://gitlab.com/" +# instagram = "http://example.com/" +mail = "mailto:xingzhiang2020@gmail.com" +# twitter = "http://twitter.com/" +# weibo = "http://example.com/" +# youtube = "http://youtube.com/" +# zhihu = "http://example.com/" +# any icon in layouts/partials/svg can be used by the name without the "-line.svg" + +[outputs] +home = ["HTML", "RSS", "JSON"] + +[params.gitalk] +clientID = "de25a843e28e54ff3a20" # 您刚才创建Github Application 的 Client ID +clientSecret = "29e4adfe5bd0d694813a2bddd0f2ab03b5e0f18f" # 您刚才创建Github Application 的 Client Secret +repo = "guttatus.github.io" # 您的博客的github地址Repository name,例如:xxxx.github.io +owner = "guttatus" # 您的GitHub ID +admin= "guttatus" # 您的GitHub ID +id= "location.pathname" # 文章页面的链接地址就是ID +labels= "gitalk" # Github issue labels. If you used to use Gitment, you can change it +perPage= 15 # Pagination size, with maximum 100. +pagerDirection= "last" # Comment sorting direction, available values are 'last' and 'first'. +createIssueManually= true # 设置为true,如果是管理员登录,会自动创建issue,如果是false,需要管理员手动添加第一个评论(issue) +distractionFreeMode= false # Enable hot key (cmd|ctrl + enter) submit comment. + diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..868b792 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,4 @@ ++++ +author = "guttatus" ++++ + diff --git a/content/about.md b/content/about.md new file mode 100644 index 0000000..c9bc364 --- /dev/null +++ b/content/about.md @@ -0,0 +1,54 @@ ++++ +title = "About" +description = "What should I write?🤯" +date = "2023-08-09" +aliases = ["about-me","contact"] +author = "guttatus" ++++ + +# General Information + +* 🫣 Hi, I’m @[guttatus](https://github.com/guttatus) +* 👀 I’m interested in Functional Programming and Computer Architecture. +* 🌱 I’m currently learning [__Haskell__](https://www.haskell.org/) and __Verilog HDL__ +* 📪 You can reach me by xingzhiang2020@gmail.com + +# Education + + + +
+ + | +
+ Northwestern Polytechnical University +Sep 2023 - Jul 2026 (expected) +M.Eng. in Computer Technology + |
+
+ + | +
+ Shanghai University + Sep 2019 - Jul 2023 +B.S. in Computer Science and Technology + |
+