Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Guanran928 committed Jan 6, 2024
0 parents commit 84c9aeb
Show file tree
Hide file tree
Showing 20 changed files with 212 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .gitignore
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
5 changes: 5 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
+++
Binary file added assets/img/author.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions config/_default/hugo.toml
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
13 changes: 13 additions & 0 deletions config/_default/languages.en.toml
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" }]
13 changes: 13 additions & 0 deletions config/_default/languages.zh-cn.toml
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" }]
23 changes: 23 additions & 0 deletions config/_default/menus.en.toml
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"
29 changes: 29 additions & 0 deletions config/_default/menus.zh-cn.toml
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"
2 changes: 2 additions & 0 deletions config/_default/module.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[[imports]]
path = "github.com/jpanther/congo/v2"
20 changes: 20 additions & 0 deletions config/_default/params.toml
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 added content/posts/.gitkeep
Empty file.
Empty file added data/.gitkeep
Empty file.
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions flake.nix
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];};
});
}
5 changes: 5 additions & 0 deletions go.mod
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
2 changes: 2 additions & 0 deletions go.sum
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 added i18n/.gitkeep
Empty file.
Empty file added layouts/.gitkeep
Empty file.
Empty file added static/.gitkeep
Empty file.
Empty file added themes/.gitkeep
Empty file.

0 comments on commit 84c9aeb

Please sign in to comment.