You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
2.1 KiB
90 lines
2.1 KiB
11 months ago
|
---
|
||
|
title: Hello World
|
||
|
date: 2022-09-29T17:06:11+08:00
|
||
|
tags:
|
||
|
- hello
|
||
|
- FixIt
|
||
|
categories:
|
||
|
- hello
|
||
|
code:
|
||
|
maxShownLines: 11
|
||
|
# See details front matter: https://fixit.lruihao.cn/documentation/content-management/introduction/#front-matter
|
||
|
---
|
||
|
|
||
|
Welcome to Hugo FixIt! This is your very first post.
|
||
|
|
||
|
<!--more-->
|
||
|
|
||
|
Head to the documentation page linked below for a complete guidence to get started with the [FixIt](https://github.com/hugo-fixit/FixIt) theme.
|
||
|
|
||
|
{{< link href="https://fixit.lruihao.cn/documentation/" content="All Documentation - FixIt" title="documentation of FixIt Theme" card=true >}}
|
||
|
|
||
|
## Quick Start
|
||
|
|
||
|
For a complete quick start, see this [page](https://fixit.lruihao.cn/documentation/getting-started/).
|
||
|
|
||
|
### Prerequisites
|
||
|
|
||
|
[Hugo](https://gohugo.io/installation/): >= 0.109.0 (extended version)
|
||
|
|
||
|
### Use this Template
|
||
|
|
||
|
1. Click **Use this template**, and create your repository on GitHub.
|
||
|
|
||
|
<img width="913" alt="image" src="https://github.com/hugo-fixit/hugo-fixit-blog-git/assets/33419593/d5fbd940-3ffd-4750-b1e6-4e87b50b0696">
|
||
|
|
||
|
2. Once the repository is created, just clone and enjoy it!
|
||
|
|
||
|
```bash
|
||
|
# Clone with your own repository url
|
||
|
git clone --recursive https://github.com/<your_name>/<your_blog_repo>.git
|
||
|
```
|
||
|
|
||
|
### Launching the Site
|
||
|
|
||
|
```bash
|
||
|
# Development environment
|
||
|
hugo server
|
||
|
# Production environment
|
||
|
hugo server -e production
|
||
|
```
|
||
|
|
||
|
### Build the Site
|
||
|
|
||
|
When your site is ready to deploy, run the following command:
|
||
|
|
||
|
```bash
|
||
|
hugo
|
||
|
```
|
||
|
|
||
|
### Update theme
|
||
|
|
||
|
Afterwards you can upgrade the theme with the following command:
|
||
|
|
||
|
```bash
|
||
|
# Update theme manually
|
||
|
git submodule update --remote --merge themes/FixIt
|
||
|
```
|
||
|
|
||
|
<details>
|
||
|
<summary>Start via NPM script</summary>
|
||
|
|
||
|
```bash
|
||
|
# build the blog
|
||
|
npm run build
|
||
|
# run a local debugging server with watch
|
||
|
npm run server
|
||
|
# run a local debugging server in production environment
|
||
|
npm run server:production
|
||
|
# update theme submodules
|
||
|
npm run update:theme
|
||
|
```
|
||
|
|
||
|
</details>
|
||
|
|
||
|
## Feedback
|
||
|
|
||
|
Whether it's questions, ideas, bugs or pull requests, all feedback is welcome!
|
||
|
|
||
|
Head over to the [issues](https://github.com/hugo-fixit/FixIt/issues) or [discussions](https://github.com/hugo-fixit/FixIt/discussions) tracker.
|