This commit is contained in:
gangjun06 2020-08-13 12:26:05 +00:00
parent 08882d82a5
commit 1c5cb37ef1
5 changed files with 81 additions and 5 deletions

View File

@ -4,8 +4,78 @@ simple theme for hugo
![intro](imgaes/img1.png) ![intro](imgaes/img1.png)
# Live Demo # Live Demo
https://gangjun06.github.io/hugo-theme-simple-intro https://gangjun06.github.io/hugo-theme-simple-intro-demo
# Configure [Demo Source Code](exampleSite)
see [this](exampleSite) # Get Started
```bash
hugo new site <site-name>
cd <site-name>
git submodule add https://github.com/gangjun06/hugo-theme-simple-intro themes/simple-intro
# Apply config
hugo serve -D
```
config.toml
```toml
baseURL = "/"
languageCode = "en-us"
theme = "simple-intro"
title = "Title"
[params]
mainbg = "backroundImage Path"
name = "Your Name"
mainTitle = "Header Title"
mainText = "Header Text"
[menus]
[[menu.main]]
identifier = "about"
name = "About"
url = "#about"
[[menu.main]]
identifier = "skills"
name = "Skills"
url = "#skills"
[[menu.main]]
identifier = "projects"
name = "Projects"
url = "#projects"
```
data/home/about.toml
```toml
title = "about title"
text = """
about text
"""
[[link]]
icon = "fontawesome icon"
link = "#"
```
data/home/project.toml
```toml
[[list]]
title = "project name"
image = "Project image"
text = """
project description
"""
```
data/home/skills.toml
```toml
[[list]]
name = "lang Name"
icon = "lang Icon"
text = """
skill text
"""
```

1
exampleSite/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
themes/simple-intro

View File

@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

View File

@ -21,5 +21,4 @@ title = "Theme Demo"
[[menu.main]] [[menu.main]]
identifier = "projects" identifier = "projects"
name = "Projects" name = "Projects"
url = "#projects" url = "#projects"