-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 84c9aeb
Showing
20 changed files
with
212 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# https://github.com/github/gitignore/blob/main/community/Golang/Hugo.gitignore | ||
|
||
# Generated files by hugo | ||
/public/ | ||
/resources/_gen/ | ||
/assets/jsconfig.json | ||
hugo_stats.json | ||
|
||
# Executable may be added to repository | ||
hugo.exe | ||
hugo.darwin | ||
hugo.linux | ||
|
||
# Temporary lock file while building | ||
.hugo_build.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
+++ | ||
title = '{{ replace .File.ContentBaseName "-" " " | title }}' | ||
date = {{ .Date }} | ||
draft = true | ||
+++ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# config/_default/config.toml | ||
|
||
baseURL = "https://Guanran928.github.io/" | ||
|
||
languageCode = 'zh-cn' | ||
defaultContentLanguage = 'zh-cn' | ||
#defaultContentLanguageInSubdir = true | ||
hasCJKLanguage = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# config/_default/languages.en.toml | ||
|
||
languageCode = "en" | ||
languageName = "English" | ||
|
||
title = "Guanran928's blog." | ||
|
||
[author] | ||
name = "Guanran928" | ||
image = "img/author.jpg" | ||
headline = "This is me, probably." | ||
bio = "Not a developer." | ||
links = [{ github = "https://github.com/Guanran928" }] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# config/_default/languages.zh-cn.toml | ||
|
||
languageCode = "zh-cn" | ||
languageName = "简体中文" | ||
|
||
title = "Guanran928's 的博客。" | ||
|
||
[author] | ||
name = "Guanran928" | ||
image = "img/author.jpg" | ||
headline = "这有可能是我。" | ||
bio = "我不是程序员。" | ||
links = [{ github = "https://github.com/Guanran928" }] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# config/_default/menus.en.toml | ||
|
||
#[[main]] | ||
# name = "Blog" | ||
# pageRef = "posts" | ||
# weight = 10 | ||
|
||
[[main]] | ||
name = "GitHub" | ||
url = "https://github.com/Guanran928/Guanran928.github.io" | ||
weight = 30 | ||
|
||
[main.params] | ||
icon = "github" | ||
showName = false | ||
target = "_blank" | ||
|
||
[[main]] | ||
identifier = "search" | ||
weight = 99 | ||
[main.params] | ||
action = "search" | ||
icon = "search" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# config/_default/menus.zh-cn.toml | ||
|
||
|
||
[[main]] | ||
name = "文章" | ||
pageRef = "posts" | ||
weight = 10 | ||
|
||
[[main]] | ||
name = "标签" | ||
pageRef = "tags" | ||
weight = 20 | ||
|
||
[[main]] | ||
name = "GitHub" | ||
url = "https://github.com/Guanran928/Guanran928.github.io" | ||
weight = 30 | ||
|
||
[main.params] | ||
icon = "github" | ||
showName = false | ||
target = "_blank" | ||
|
||
[[main]] | ||
identifier = "search" | ||
weight = 99 | ||
[main.params] | ||
action = "search" | ||
icon = "search" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[[imports]] | ||
path = "github.com/jpanther/congo/v2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# config/_default/params.toml | ||
|
||
colorScheme = "ocean" | ||
enableSearch = true | ||
enableCodeCopy = true | ||
|
||
[homepage] | ||
layout = "profile" | ||
|
||
[header] | ||
#layout = "hamburger" | ||
|
||
[article] | ||
showBreadcrumbs = true | ||
showTableOfContents = true | ||
showWordCount = true | ||
|
||
[list] | ||
showBreadcrumbs = true | ||
showTableOfContents = true |
Empty file.
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
description = "Guanran928's blog"; | ||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11"; | ||
inputs.flake-utils.url = "github:numtide/flake-utils"; | ||
|
||
outputs = inputs: | ||
inputs.flake-utils.lib.eachDefaultSystem (system: let | ||
pkgs = inputs.nixpkgs.legacyPackages.${system}; | ||
in { | ||
### nix fmt | ||
formatter = inputs.nixpkgs.legacyPackages.${system}.alejandra; | ||
|
||
### nix develop | ||
devShells.default = pkgs.mkShell {packages = with pkgs; [hugo go];}; | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module myblog | ||
|
||
go 1.21.5 | ||
|
||
require github.com/jpanther/congo/v2 v2.7.6 // indirect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
github.com/jpanther/congo/v2 v2.7.6 h1:gBz+Zx6PIVgMhknn0t9uOUQA0sSBFKhH4Miox/q9xew= | ||
github.com/jpanther/congo/v2 v2.7.6/go.mod h1:1S7DRoO1ZYS4YUdFd1LjTkdyjQwsjFWd8TqSfz3Jd+M= |
Empty file.
Empty file.
Empty file.
Empty file.