diff options
author | Curtis Timson <curt@live.co.uk> | 2018-02-17 01:50:53 +0300 |
---|---|---|
committer | Curtis Timson <curt@live.co.uk> | 2018-02-17 01:50:53 +0300 |
commit | e6525a5b5fe89b08e47892953072c405b9053104 (patch) | |
tree | 20ff5670a2f7a049d1819da0c6bd8dfe3bbce0ce | |
parent | 4c6356d4100433e023fc7c0c6dd1228c569643e2 (diff) |
:wrench: Configure portfolio title
-rw-r--r-- | exampleSite/config-prod.toml | 5 | ||||
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | layouts/partials/nav.html | 2 | ||||
-rw-r--r-- | layouts/partials/portfolio.html | 2 |
4 files changed, 8 insertions, 2 deletions
diff --git a/exampleSite/config-prod.toml b/exampleSite/config-prod.toml index 7cb2739..e03a277 100644 --- a/exampleSite/config-prod.toml +++ b/exampleSite/config-prod.toml @@ -8,12 +8,15 @@ theme = "../.." subtitleline2 = "A responsive template by HTML5 UP" [params.intro] + icon1 = "fa-cog" title1 = "Ipsum consequat" description1 = "Nisl amet dolor sit ipsum veroeros sed blandit consequat veroeros et magna tempus." + icon2 = "fa-flash" title2 = "Magna etiam dolor" description2 = "Nisl amet dolor sit ipsum veroeros sed blandit consequat veroeros et magna tempus." + icon3 = "fa-star" title3 = "Tempus adipiscing" description3 = "Nisl amet dolor sit ipsum veroeros sed blandit consequat veroeros et magna tempus." @@ -40,7 +43,9 @@ theme = "../.." title5 = "Vitae tempor lorem" [params.portfolio] + title = "My Portfolio" foldername = "portfolio" + findoutmoretext = "Find out more" [params.blog] title = "The Blog" diff --git a/exampleSite/config.toml b/exampleSite/config.toml index ed22389..0a1f9f9 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -43,6 +43,7 @@ theme = "../.." title5 = "Vitae tempor lorem" [params.portfolio] + title = "My Portfolio" foldername = "portfolio" findoutmoretext = "Find out more" diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 9c901c5..0819e07 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -5,7 +5,7 @@ {{ $portfolioItems := where .Site.Pages "Type" .Site.Params.Portfolio.foldername }} {{ if $portfolioItems }} <li> - <a href="{{ .Site.BaseURL }}#portfolio">My Portfolio</a> + <a href="{{ .Site.BaseURL }}#portfolio">{{ .Site.Params.Portfolio.title }}</a> </li> {{ end }} {{ $blogPosts := first 5 (where .Site.Pages "Type" .Site.Params.Blog.foldername) }} diff --git a/layouts/partials/portfolio.html b/layouts/partials/portfolio.html index 594ea57..5c46e89 100644 --- a/layouts/partials/portfolio.html +++ b/layouts/partials/portfolio.html @@ -1,7 +1,7 @@ <!-- Portfolio --> <section id="portfolio"> <header class="major"> - <h2>My Portfolio</h2> + <h2>{{ .Site.Params.Portfolio.title }}</h2> </header> <div class="row"> {{ range where .Data.Pages "Type" .Site.Params.Portfolio.foldername }} |