Skip to content

Commit

Permalink
modify test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zsbyqx20 committed Sep 16, 2023
1 parent 91ed190 commit 71b10a3
Show file tree
Hide file tree
Showing 15 changed files with 71 additions and 106 deletions.
Empty file added .hugo_build.lock
Empty file.
58 changes: 2 additions & 56 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,57 +1,3 @@
<img align="right" width="150" alt="logo" src="https://user-images.githubusercontent.com/5889006/190859553-5b229b4f-c476-4cbd-928f-890f5265ca4c.png">
# Hugo Website Test

# Hugo Theme Stack Starter Template

This is a quick start template for [Hugo theme Stack](https://github.com/CaiJimmy/hugo-theme-stack). It uses [Hugo modules](https://gohugo.io/hugo-modules/) feature to load the theme.

It comes with a basic theme structure and configuration. GitHub action has been set up to deploy the theme to a public GitHub page automatically. Also, there's a cron job to update the theme automatically everyday.

## Get started

1. Click *Use this template*, and create your repository on GitHub.
![Step 1](https://user-images.githubusercontent.com/5889006/156916624-20b2a784-f3a9-4718-aa5f-ce2a436b241f.png)

2. Once the repository is created, create a GitHub codespace asociated with it.
![Create codespace](https://user-images.githubusercontent.com/5889006/156916672-43b7b6e9-4ffb-4704-b4ba-d5ca40ffcae7.png)

3. And voila! You're ready to go. The codespace has been configured with the latest version of Hugo extended, just run `hugo server` in the terminal and see your new site in action.

4. Check `config` folder for the configuration files. You can edit them to suit your needs. Make sure to update the `baseurl` property in `config/_default/config.toml` to your site's URL.

5. Once you're done editing the site, just commit it and push it. GitHub action will deploy the site automatically to GitHub page asociated with the repository.
![GitHub action](https://user-images.githubusercontent.com/5889006/156916881-90b8bb9b-1925-4e60-9d7a-8026cda729bf.png)

---

In case you don't want to use GitHub codespace, you can also run this template in your local machine. **You need to install Git, Go and Hugo extended locally.**

## Update theme manually

Run:

```bash
hugo mod get -u github.com/CaiJimmy/hugo-theme-stack/v3
hugo mod tidy
```

> This starter template has been configured with `v3` version of theme. Due to the limitation of Go module, once the `v4` or up version of theme is released, you need to update the theme manually. (Modifying `config/module.toml` file)
## Deploy to another static page hostings

If you want to build this site using another static page hosting, you need to make sure they have Go installed in the machine.

<details>
<summary>Vercel</summary>

You need to overwrite build command to install manually Go:

```
amazon-linux-extras install golang1.11 && hugo --gc --minify
```

![](https://user-images.githubusercontent.com/5889006/156917172-01e4d418-3469-4ffb-97e4-a905d28b8424.png)

Make sure also to specify Hugo version in the environment variable `HUGO_VERSION` (Use the latest version of Hugo extended):

![Environment variable](https://user-images.githubusercontent.com/5889006/156917212-afb7c70d-ab85-480f-8288-b15781a462c0.png)
</details>
preview version for personal blogs.
8 changes: 8 additions & 0 deletions assets/icons/brand-bilibili.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/icons/brand-reddit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions assets/icons/help-hexagon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/avatar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions assets/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"*": [
"../../../../.cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/!cai!jimmy/hugo-theme-stack/[email protected]/assets/*"
]
}
}
}
6 changes: 5 additions & 1 deletion assets/scss/custom.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
You can add your own custom styles here.
*/
*/

:root {
--base-font-family: "Poppins", var(--sys-font-family), var(--zh-font-family), sans-serif
}
6 changes: 3 additions & 3 deletions config/_default/config.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Change baseurl before deploy
baseurl = "https://demo.stack.jimmycai.com"
baseurl = "https://Zsbyqx20.github.io"
languageCode = "en-us"
paginate = 5
title = "Hugo Theme Stack Starter"
title = "Zacha's Story Soup"

# Theme i18n support
# Available values: en, fr, id, ja, ko, pt-br, zh-cn, zh-tw, es, de, nl, it, th, el, uk, ar
defaultContentLanguage = "en"

# Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko]
# This will make .Summary and .WordCount behave correctly for CJK languages.
hasCJKLanguage = false
hasCJKLanguage = true

# Change it to your Disqus shortname before using
disqusShortname = "hugo-theme-stack"
10 changes: 5 additions & 5 deletions config/_default/menu.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
[[social]]
identifier = "github"
name = "GitHub"
url = "https://github.com/CaiJimmy/hugo-theme-stack"
url = "https://github.com/Zsbyqx20"

[social.params]
icon = "brand-github"

[[social]]
identifier = "twitter"
name = "Twitter"
url = "https://twitter.com"
identifier = "bilibili"
name = "Bilibili"
url = "https://space.bilibili.com/669357833"

[social.params]
icon = "brand-twitter"
icon = "brand-bilibili"
14 changes: 7 additions & 7 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
mainSections = ["post"]
# Output page's full content in RSS.
rssFullContent = true
favicon = "/favicon.png"
favicon = "/story.png"

[footer]
since = 2020
customText = ""
since = 2023
customText = "👋Welcome to Zacha's Story Soup😴"

[dateFormat]
published = "Jan 02, 2006"
lastUpdated = "Jan 02, 2006 15:04 MST"

[sidebar]
emoji = "🍥"
subtitle = "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
emoji = "🍹"
subtitle = "行云逝水/纵吴歌。"

[sidebar.avatar]
enabled = true
local = true
src = "img/avatar.png"
src = "img/avatar.jpg"

[article]
math = false
Expand Down Expand Up @@ -75,7 +75,7 @@ enabled = true

## Comments
[comments]
enabled = true
enabled = false
provider = "disqus"

[comments.disqusjs]
Expand Down
11 changes: 11 additions & 0 deletions content/page/about/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: "About"
date: 2023-09-16
layout: "about"
slug: "about"
menu:
main:
weight: 4
params:
icon: help-hexagon
---
33 changes: 0 additions & 33 deletions content/page/links/index.md

This file was deleted.

6 changes: 5 additions & 1 deletion content/post/hello-world/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ For more information about this theme, check the documentation: https://stack.ji

Want a site like this? Check out [hugo-theme-stack-stater](https://github.com/CaiJimmy/hugo-theme-stack-starter)

> Photo by [Pawel Czerwinski](https://unsplash.com/@pawel_czerwinski) on [Unsplash](https://unsplash.com/)
> Photo by [Pawel Czerwinski](https://unsplash.com/@pawel_czerwinski) on [Unsplash](https://unsplash.com/)
```python
import pandas as pd
```
Binary file added static/story.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 71b10a3

Please sign in to comment.