开源项目 `HugoBlox/theme-academic-CV` 使用教程
2024-08-21 21:59:06作者:田桥桑Industrious
1. 项目的目录结构及介绍
.
├── archetypes
│ └── default.md
├── assets
│ ├── css
│ └── js
├── config
│ ├── _default
│ │ ├── config.yaml
│ │ ├── languages.yaml
│ │ ├── menus.yaml
│ │ ├── params.yaml
│ │ └── publications.yaml
│ └── production
│ └── config.yaml
├── content
│ ├── home
│ │ ├── about.md
│ │ ├── contact.md
│ │ ├── experience.md
│ │ ├── featured.md
│ │ ├── hero.md
│ │ ├── publications.md
│ │ ├── skills.md
│ │ └── talks.md
│ └── post
│ └── example.md
├── data
│ └── authors
│ └── admin.yaml
├── layouts
│ ├── _default
│ │ ├── baseof.html
│ │ ├── list.html
│ │ └── single.html
│ ├── partials
│ │ ├── footer.html
│ │ ├── header.html
│ │ ├── hero.html
│ │ └── sidebar.html
│ └── shortcodes
│ └── alert.html
├── static
│ ├── images
│ └── uploads
└── themes
└── academic
├── archetypes
├── assets
├── config
├── content
├── data
├── layouts
├── static
└── theme.toml
目录结构介绍
- archetypes: 包含默认的内容模板文件。
- assets: 包含CSS和JavaScript文件。
- config: 包含项目的配置文件,分为默认配置和生产环境配置。
- content: 包含网站的内容文件,如首页和博客文章。
- data: 包含作者信息等数据文件。
- layouts: 包含网站的布局和部分模板文件。
- static: 包含静态资源文件,如图片和上传文件。
- themes: 包含主题文件,这里是
academic主题。
2. 项目的启动文件介绍
项目的启动文件主要是config/_default/config.yaml,它是Hugo项目的核心配置文件。该文件定义了网站的基本设置,如网站标题、语言、主题等。
baseURL: "http://example.org/"
languageCode: "en-us"
title: "My New Hugo Site"
theme: "academic"
3. 项目的配置文件介绍
config/_default/config.yaml
这是主要的配置文件,包含以下关键配置项:
- baseURL: 网站的根URL。
- languageCode: 网站的语言代码。
- title: 网站的标题。
- theme: 使用的主题名称。
config/_default/languages.yaml
该文件定义了网站支持的语言和语言相关的配置。
en:
title: "My New Hugo Site"
weight: 1
config/_default/menus.yaml
该文件定义了网站的导航菜单。
main:
- name: "Home"
url: "/"
weight: 1
- name: "About"
url: "/about/"
weight: 2
config/_default/params.yaml
该文件定义了网站的参数配置,如网站的描述、关键词等。
description: "A personal academic website built with Hugo and the Academic theme."
keywords: ["Hugo", "Academic", "CV"]
config/_default/publications.yaml
该文件定义了出版物的配置,如出版物的类型和显示设置。
publication_types:
- type: "Journal Article"
icon: "journal"
通过以上配置文件,可以灵活地调整和定制网站的各个方面。
登录后查看全文
热门项目推荐
相关项目推荐
暂无数据
项目优选
收起
deepin linux kernel
C
27
11
OpenHarmony documentation | OpenHarmony开发者文档
Dockerfile
540
3.77 K
Ascend Extension for PyTorch
Python
351
415
本项目是CANN提供的数学类基础计算算子库,实现网络在NPU上加速计算。
C++
889
612
openEuler内核是openEuler操作系统的核心,既是系统性能与稳定性的基石,也是连接处理器、设备与服务的桥梁。
C
338
185
openJiuwen agent-studio提供零码、低码可视化开发和工作流编排,模型、知识库、插件等各资源管理能力
TSX
987
253
openGauss kernel ~ openGauss is an open source relational database management system
C++
169
233
暂无简介
Dart
778
193
🎉 (RuoYi)官方仓库 基于SpringBoot,Spring Security,JWT,Vue3 & Vite、Element Plus 的前后端分离权限管理系统
Vue
1.35 K
758
华为昇腾面向大规模分布式训练的多模态大模型套件,支撑多模态生成、多模态理解。
Python
115
141