diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..86c95ef4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +# 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 diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..de274c04 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/FixIt"] + path = themes/FixIt + url = https://github.com/hugo-fixit/FixIt.git diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 00000000..00e77bd7 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/config.toml b/config.toml new file mode 100644 index 00000000..addaedfe --- /dev/null +++ b/config.toml @@ -0,0 +1,113 @@ +baseURL = 'http://shuosc.github.io/fly' +title = 'SHUFly - 上海大学飞跃手册' +theme = 'FixIt' + +# [en, zh-cn, fr, ...] 设置默认的语言 +defaultContentLanguage = "zh-cn" +# 网站语言,仅在这里 CN 大写 +languageCode = "zh-CN" +# 是否包括中日韩文字 +hasCJKLanguage = true + +[params] + # FixIt 主题版本 + version = "0.2.X" + # Header config + [params.header] + # FixIt 0.2.13 | CHANGED desktop header mode ("sticky", "normal", "auto") + desktopMode = "sticky" + # FixIt 0.2.13 | CHANGED mobile header mode ("sticky", "normal", "auto") + mobileMode = "auto" + # FixIt 0.2.0 | NEW Header title config + [params.header.title] + # URL of the LOGO + logo = "/fly/logo.webp" + # title name + name = "SHUFly" + +# 中文主页信息设置 +[languages.zh-cn.params.home] + # RSS 文章数目 + rss = 10 + # 主页个人信息 + [languages.zh-cn.params.home.profile] + enable = true + # Gravatar 邮箱,用于优先在主页显示的头像 + gravatarEmail = "" + # 主页显示头像的 URL + avatarURL = "/fly/logo.webp" + # 主页显示的网站标题 (支持 HTML 格式) + title = "上海大学飞跃手册" + # 是否为副标题显示打字机动画 + typeit = true + # 是否显示社交账号 + social = false + # 免责声明 (支持 HTML 格式) + disclaimer = "" + # 主页文章列表 + [languages.zh-cn.params.home.posts] + enable = true + # 主页每页显示文章数量 + paginate = 8 + +# 中文菜单配置 +[languages.zh-cn.menu] + [[languages.zh-cn.menu.main]] + identifier = "posts" + # 父级菜单项的标识符 (identifier) since v0.2.14 + parent = "" + # 你可以在名称 (允许 HTML 格式) 之前添加其他信息, 例如图标 + pre = "" + # 你可以在名称 (允许 HTML 格式) 之后添加其他信息, 例如图标 + post = "" + name = "所有文章" + url = "/posts/" + title = "" + weight = 1 + [[languages.zh-cn.menu.main]] + identifier = "categories" + pre = "" + post = "" + name = "分类" + url = "/categories/" + title = "" + weight = 2 + [[languages.zh-cn.menu.main]] + identifier = "tags" + pre = "" + post = "" + name = "标签" + url = "/tags/" + title = "" + weight = 3 + [[languages.zh-cn.menu.main]] + identifier = "friends" + pre = "" + post = "" + name = "友链" + url = "/friends/" + title = "友情链接" + weight = 4 + [[languages.zh-cn.menu.main]] + identifier = "about" + pre = "" + post = "" + name = "关于" + url = "/about/" + title = "" + weight = 5 + [[languages.zh-cn.menu.main]] + identifier = "github" + pre = "" + post = "" + name = "" + url = "https://github.com/shuosc/SHUFly" + title = "GitHub" + weight = 6 + [languages.zh-cn.menu.main.params] + class = "d-none-desktop text-center" + +# Hugo 解析文档的配置 +[markup] + # 语法高亮设置 (https://gohugo.io/content-management/syntax-highlighting) + [markup.highlight] diff --git a/content/about/index.md b/content/about/index.md new file mode 100644 index 00000000..c6a79c66 --- /dev/null +++ b/content/about/index.md @@ -0,0 +1,9 @@ +--- +title: "关于上海大学飞跃手册" +date: 2022-08-29T11:04:49+08:00 +draft: false +comment: false +lightgallery: true +--- + +由 [上海大学开源社区](https://github.com/shuosc/) 出品 diff --git a/content/friends/index.md b/content/friends/index.md new file mode 100644 index 00000000..84e8777e --- /dev/null +++ b/content/friends/index.md @@ -0,0 +1,13 @@ +--- +title: "各大高校飞跃手册" +date: 2022-08-29T11:04:49+08:00 +draft: false +comment: false +lightgallery: true +--- + +- [华东理工大学飞跃手册 2.0](https://github.com/paulzrq/Ecust-Lea) +- [南方科技大学飞跃手册](https://sustech-application.com/#/?id=%e5%8d%97%e6%96%b9%e7%a7%91%e6%8a%80%e5%a4%a7%e5%ad%a6%e9%a3%9e%e8%b7%83%e6%89%8b%e5%86%8c) +- [华中科技大学飞跃手册](https://hust-feiyue.github.io/link_exchange.html) +- [上海交通大学飞跃手册](https://survivesjtu.github.io/SJTU-Application/#/) +- [浙江大学数院飞跃手册 PDF](http://www.math.zju.edu.cn/_upload/article/files/99/e1/32b8399349af89f05033bf19a32e/4fd486a5-8a4e-47f0-a9c1-9fdba8cae593.pdf) diff --git a/content/posts/init.md b/content/posts/init.md new file mode 100644 index 00000000..d2896e75 --- /dev/null +++ b/content/posts/init.md @@ -0,0 +1,9 @@ +--- +title: "SHUFly 上海大学飞跃手册上线" +date: 2022-08-29T11:09:02+08:00 +draft: false +--- + +许多一流高校的学生都会自发编制「飞跃手册」,记录出国保研等经验以供后人参考,上海大学虽然创立时间有限,但也有相当一部分同学选择出国或在境内深造,目前缺乏系统性的经验总结,有必要编制一份飞跃手册,不限专业和出路,以公开或半公开的方式收集整理和编辑发布。 + +在经过了暑假的长久策划后,我们决定使用 Hugo 来生成静态网页,区别于其他高校普遍采用的 docsify 模板,我们的网站并没有手册那样严格的层次结构,而更像无数篇个人经验贴的集合,在维护上会更加便捷,合理使用 category 和 tag 功能也可以让读者快速找到所需内容。 diff --git a/static/logo.webp b/static/logo.webp new file mode 100644 index 00000000..da4a41ac Binary files /dev/null and b/static/logo.webp differ diff --git a/themes/FixIt b/themes/FixIt new file mode 160000 index 00000000..f37622a1 --- /dev/null +++ b/themes/FixIt @@ -0,0 +1 @@ +Subproject commit f37622a1557bd7ccff20364c5ce042b13714ce48