mirror of
https://github.com/ineesalmeida/almeida-cv.git
synced 2024-11-23 07:47:55 +00:00
Improve 'README.md' and 'exampleSite'
* Improve wording in README * Recommend to use template as a submodule (as per official Hugo guide) * Disable building unecessary Hugo elements in exampleSite Signed-off-by: Piotr Bocheński <bochenski.piotr@gmail.com>
This commit is contained in:
parent
5d9a7f3550
commit
1305b59afa
2 changed files with 20 additions and 15 deletions
28
README.md
28
README.md
|
@ -17,24 +17,24 @@ For better formatting, you can set the number of pages in the `config.toml` file
|
||||||
|
|
||||||
If badges and other elements with background don't render correctly, remember to toggle the "Background Graphics" option in the print dialog.
|
If badges and other elements with background don't render correctly, remember to toggle the "Background Graphics" option in the print dialog.
|
||||||
|
|
||||||
# Download
|
# Usage
|
||||||
Clone the repo: `git clone https://github.com/ineesalmeida/almeida-cv`
|
## Install Hugo (extended)
|
||||||
|
To use `almeida-cv` theme you need to install Hugo Extended by following https://gohugo.io/getting-started/installing/.
|
||||||
|
|
||||||
# Installation
|
## Create your personal website
|
||||||
## Install Hugo (Extended)
|
|
||||||
To use almeida-cv theme you need to install Hugo Extended by following https://gohugo.io/getting-started/installing/.
|
|
||||||
|
|
||||||
## Create your personal website and run
|
|
||||||
```
|
```
|
||||||
hugo new site <your website's name>
|
hugo new site <your website's name>
|
||||||
cd <your website's name>/themes/
|
cd <your website's name>
|
||||||
|
git init
|
||||||
|
git submodule add https://github.com/ineesalmeida/almeida-cv.git themes/almeida-cv
|
||||||
```
|
```
|
||||||
Clone the theme (`git clone https://github.com/ineesalmeida/almeida-cv`) into your themes folder.
|
Replace the files in your site root's directory with the ones in `themes/almeida-cv/exampleSite`.
|
||||||
Replace the files in your root's directory with the ones on `themes/almeida-cv/exampleSite`.
|
|
||||||
|
## Start Hugo in development mode
|
||||||
```
|
```
|
||||||
hugo server -D
|
hugo server -D
|
||||||
```
|
```
|
||||||
The theme is alive on http://localhost:1313/.
|
Your site is now available at http://localhost:1313/.
|
||||||
|
|
||||||
## Customization
|
## Customization
|
||||||
Your professional data should be added in the `data/content.yaml` file. You can change the theme colors and number of
|
Your professional data should be added in the `data/content.yaml` file. You can change the theme colors and number of
|
||||||
|
@ -43,10 +43,10 @@ pages in the `config.toml` file. For working example, see `exampleSite` director
|
||||||
For more advanced customization, in your site root directory create `assets/scss/_custom.scss` file where you can
|
For more advanced customization, in your site root directory create `assets/scss/_custom.scss` file where you can
|
||||||
overwrite theme SCSS as per your liking.
|
overwrite theme SCSS as per your liking.
|
||||||
|
|
||||||
# Building
|
## Building
|
||||||
To generate your site in the public folder, execute the following:
|
To generate static files of your website, execute the following:
|
||||||
```
|
```
|
||||||
hugo
|
hugo --minify
|
||||||
```
|
```
|
||||||
within the root of your project.
|
within the root of your project.
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
baseURL = "https://example.com/"
|
|
||||||
languageCode = "en-us"
|
languageCode = "en-us"
|
||||||
defaultContentLanguage = "en"
|
defaultContentLanguage = "en"
|
||||||
|
enableRobotsTXT = "true"
|
||||||
|
enableEmoji = "true"
|
||||||
|
|
||||||
theme = "almeida-cv"
|
theme = "almeida-cv"
|
||||||
|
disableKinds = ["page", "section", "taxonomy", "term", "RSS", "sitemap"]
|
||||||
|
|
||||||
|
baseURL = "https://example.com/"
|
||||||
title = "Example - CV"
|
title = "Example - CV"
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
Loading…
Reference in a new issue