-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.json
1 lines (1 loc) · 7.8 KB
/
index.json
1
[{"content":"","date":"7 September 2024","externalUrl":null,"permalink":"/tags/blog/","section":"Tags","summary":"","title":"Blog","type":"tags"},{"content":"","date":"7 September 2024","externalUrl":null,"permalink":"/categories/","section":"Categories","summary":"","title":"Categories","type":"categories"},{"content":" Project Dependencies # Farmework: hugo\ngohugoio/hugo The world’s fastest framework for building websites. Go 74630 7449 Theme: blowfish\nnunocoracao/blowfish Personal Website \u0026amp; Blog Theme for Hugo HTML 1350 379 Installation Guide # Referencing the Blowfish theme Installation and Configuration In the article Install using Git submodules, follow Set up the theme\u0026rsquo;s configuration file , configure your own parameters. You can copytheme/blowfish/from the pathexampleSite/Copy the files and folders from the directory to the project root directory, and then gradually add new content based on this. The directory is as follows:\nexampleSite directory contents Project root directory contents Automatic Deployment # Prepare the repository # Repository A: on GitHub as \u0026lsquo;账户名称.github.ioCreate a repository named (or on other platforms like Gitee, for example: GitHub account name: MortyZhaoy, new repository name: MortyZhaoy.github.io). The purpose of this repository is to store the static files of the website generated by Hugo.\nRepository b: Create a repository with a random name on GitHub to storehugo new site .the files generated later, including personal blog markdown files. Since it contains personal markdown files, it can be set as a private repository. This repository also needs to add a workflow for automatic building and deployment.\nPrepare token # On the GitHub user \u0026ldquo;Settings\u0026rdquo; → \u0026ldquo;Developer Settings\u0026rdquo; → \u0026ldquo;Personal access token\u0026rdquo; → \u0026ldquo;Token (classic)\u0026rdquo; page, create a new token as shown in the following image: InRepository bthe \u0026lsquo;Settings\u0026rsquo; → \u0026lsquo;Secrets and variables\u0026rsquo; → \u0026lsquo;Actions\u0026rsquo; → \u0026lsquo;New repository secret\u0026rsquo;, fill in \u0026lsquo;PAGES_ACTIONS_SECRET\u0026rsquo; in the Name field, and fill in the entire content (including the leading and trailing text) of the token (the value generated from the token created in the previous step) in the Value field, then click Add secret. The name \u0026lsquo;PAGES_ACTIONS_SECRET\u0026rsquo; filled in the Name field will be used in the GitHub Actions YAML configuration file. Implement Deployment # Create a new.github/workflows/gh-pages.ymlfile in the root directory of the project, with the content as shown in the following image:personal_token属性的\u0026quot;PAGES_ACTIONS_SECRET\u0026quot;为上一步配置的secret变量名称,external_repositoryAttribute fillingRepository AName:\nname: deploy github pages on: push: branches: - main jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: submodules: true fetch-depth: 0 - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: hugo-version: \u0026#39;latest\u0026#39; - name: Build Hugo run: hugo --minify - name: Deploy Pages uses: peaceiris/actions-gh-pages@v3 with: external_repository: MortyZhaoy/MortyZhaoy.github.io personal_token: ${{ secrets.PAGES_ACTIONS_SECRET }} publish_dir: ./public publish_branch: main At this point, when new content is pushed toRepository bthe repository, it will automatically build and push to repository a, achieving automatic deployment.\nAdditional Feature Configuration # Comment System # Waline comment system,Official Link\nLeanCloud,Official Link\nFree deployment, tutorial reference from the official site Quick Start\nYou can successfully deploy by following the official \u0026lsquo;Quick Start\u0026rsquo; tutorial.config/_default/params.tomlThe configuration for Blowfish is as follows:\nThe serverURL configuration field for Waline should be filled in asvercelthe address of the page that you are redirected to after clicking the Visit button under the projects interface with the project name created in the Waline quick start tutorial. As shown in the figure below:\nReference # How to Build a Personal Blog with GitHub Pages + Hugo\nAdding Waline Comment System to Hugo Blog\nUsing Waline Comments in the Blog\n","date":"7 September 2024","externalUrl":null,"permalink":"/posts/class/self/blog/github_pages_blog_build/","section":"Posts","summary":"\u003ch2 class=\"relative group\"\u003eProject Dependencies \n \u003cdiv id=\"project-dependencies\" class=\"anchor\"\u003e\u003c/div\u003e\n \n \u003cspan\n class=\"absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100\"\u003e\n \u003ca class=\"group-hover:text-primary-300 dark:group-hover:text-neutral-700\"\n style=\"text-decoration-line: none !important;\" href=\"#project-dependencies\" aria-label=\"Anchor\"\u003e#\u003c/a\u003e\n \u003c/span\u003e \n \n\u003c/h2\u003e\n\u003cp\u003eFarmework: \u003ca href=\"https://gohugo.io/\" target=\"_blank\"\u003ehugo\u003c/a\u003e\u003c/p\u003e","title":"Hugo + Blowfish + Github Pages to build a personal blog","type":"posts"},{"content":"Here are some of the posts I\u0026rsquo;ve made.\n","date":"7 September 2024","externalUrl":null,"permalink":"/posts/","section":"Posts","summary":"\u003cp\u003eHere are some of the posts I\u0026rsquo;ve made.\u003c/p\u003e","title":"Posts","type":"posts"},{"content":"","date":"7 September 2024","externalUrl":null,"permalink":"/categories/self/","section":"Categories","summary":"","title":"Self","type":"categories"},{"content":"Blowfish has full support for Hugo taxonomies and will adapt to any taxonomy set up. Taxonomy listings like this one also support custom content to be displayed above the list of terms.\nThis area could be used to add some extra descriptive text to each taxonomy. Check out the advanced tag below to see how to take this concept even further.\n","date":"7 September 2024","externalUrl":null,"permalink":"/tags/","section":"Tags","summary":"\u003cp\u003eBlowfish has full support for Hugo taxonomies and will adapt to any taxonomy set up. Taxonomy listings like this one also support custom content to be displayed above the list of terms.\u003c/p\u003e","title":"Tags","type":"tags"},{"content":"","date":"7 September 2024","externalUrl":null,"permalink":"/","section":"Welcome to Morty's Blog! 🎉","summary":"","title":"Welcome to Morty's Blog! 🎉","type":"page"},{"content":"This is about some of my views and profile.\n","externalUrl":null,"permalink":"/about/","section":"About","summary":"\u003cp\u003eThis is about some of my views and profile.\u003c/p\u003e","title":"About","type":"about"},{"content":"This is the advanced tag. Just like other listing pages in Blowfish, you can add custom content to individual taxonomy terms and it will be displayed at the top of the term listing. \u0026#x1f680;\nYou can also use these content pages to define Hugo metadata like titles and descriptions that will be used for SEO and other purposes.\n","externalUrl":null,"permalink":"/tags/advanced/","section":"Tags","summary":"\u003cp\u003eThis is the advanced tag. Just like other listing pages in Blowfish, you can add custom content to individual taxonomy terms and it will be displayed at the top of the term listing. \u0026#x1f680;\u003c/p\u003e","title":"Advanced","type":"tags"},{"content":"","externalUrl":null,"permalink":"/authors/","section":"Authors","summary":"","title":"Authors","type":"authors"},{"content":"This section contains all my current projects.\n","externalUrl":null,"permalink":"/projects/","section":"Projects","summary":"\u003cp\u003eThis section contains all my current projects.\u003c/p\u003e","title":"Projects","type":"projects"},{"content":"","externalUrl":null,"permalink":"/series/","section":"Series","summary":"","title":"Series","type":"series"}]