From 1c5cb37ef1d275e4be29859858ff8a1d58ac62bc Mon Sep 17 00:00:00 2001 From: gangjun06 Date: Thu, 13 Aug 2020 12:26:05 +0000 Subject: [PATCH] . --- README.md | 76 +++++++++++++++++++++++++++-- exampleSite/.gitignore | 1 + exampleSite/archetypes/default.md | 6 +++ exampleSite/config.toml | 3 +- exampleSite/themes/CLONE_THEME_HERE | 0 5 files changed, 81 insertions(+), 5 deletions(-) create mode 100644 exampleSite/.gitignore create mode 100644 exampleSite/archetypes/default.md delete mode 100644 exampleSite/themes/CLONE_THEME_HERE diff --git a/README.md b/README.md index ba221b3..a6736e4 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,78 @@ simple theme for hugo ![intro](imgaes/img1.png) # 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) \ No newline at end of file +# Get Started + +```bash +hugo new site +cd +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 + """ +``` diff --git a/exampleSite/.gitignore b/exampleSite/.gitignore new file mode 100644 index 0000000..d373863 --- /dev/null +++ b/exampleSite/.gitignore @@ -0,0 +1 @@ +themes/simple-intro \ No newline at end of file diff --git a/exampleSite/archetypes/default.md b/exampleSite/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/exampleSite/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/exampleSite/config.toml b/exampleSite/config.toml index e36b2a4..cd1e022 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -21,5 +21,4 @@ title = "Theme Demo" [[menu.main]] identifier = "projects" name = "Projects" - url = "#projects" - \ No newline at end of file + url = "#projects" \ No newline at end of file diff --git a/exampleSite/themes/CLONE_THEME_HERE b/exampleSite/themes/CLONE_THEME_HERE deleted file mode 100644 index e69de29..0000000