GithubHelp home page GithubHelp logo

songpengwei / blog-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from theowenyoung/blog

0.0 0.0 0.0 79.33 MB

blog, en: https://www.owenyoung.com/en/ , 中文: https://www.owenyoung.com/

Home Page: https://www.owenyoung.com

License: MIT License

Shell 9.37% JavaScript 20.02% TypeScript 52.09% CSS 3.83% Makefile 0.39% HTML 14.30%

blog-1's Introduction

Owen's Blog

The blog is built with Zola, for my personal need, I've use my forked version to build it.

The only change is that I use /content/xxx.md instead of @/xxx.md to refer the internal markdown files, so that the editor can also go to the linked file.

Related docments

Related Issue 1

Visit it Online

Install

make install

Local Serve

make serve

Local Build

make build

Usage

Write

I use Foam Lite to help me input internal links quickly.

I also use Simple bash to generate template markdown file for the initial blog post.

Search

I use Meilisearch to index my blog, and I introduced it in this article.

How to init the search? the install script is in my dotfiles:

./modules/meilisearch/install_meilisearch_debian.sh
ca meilisearch

Get the meilisear admin api key:

# TEMP_MEILISEARCH_API_KEY is the master key
curl \
  -X GET 'https://meilisearch.owenyoung.com/keys' \
  -H "Authorization: Bearer $TEMP_MEILISEARCH_API_KEY" \
  | json_pp

Then add the admin api key to github actions secrets, then run build site search index.

Then, change the config.toml -> meilisearch_api_key to the user search api key with the above result.

In the future, the build workflow will take care of the search indexing automatically.

blog-1's People

Contributors

theowenyoung avatar

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.