diff options
author | Derek Severin <severinderek@gmail.com> | 2019-03-25 12:42:05 +0300 |
---|---|---|
committer | Derek Severin <severinderek@gmail.com> | 2019-03-25 12:42:05 +0300 |
commit | e4ea3e19f5e36642b211f9c23f6d496c1d74294b (patch) | |
tree | 2781d310df4d7eed72c29943e4bc9d9047ae35ba | |
parent | 3037362c744f783bdb6af645d0e5155e49c7399a (diff) |
Set sections titles as links
-rw-r--r-- | layouts/partials/sections/projects.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/layouts/partials/sections/projects.html b/layouts/partials/sections/projects.html index 6262d5a..a6850af 100644 --- a/layouts/partials/sections/projects.html +++ b/layouts/partials/sections/projects.html @@ -1,14 +1,15 @@ {{ "<!-- PROJECTS -->" | safeHTML }} <section class="section projects" id="projects_{{ trim .Dir "/\\" }}"> + {{ $path := replace .Dir "\\" "/" }} {{ with .Title }} - <div class="container-fluid padding-title"> + <a href="/{{ $path }}" class="container-fluid padding-title"> <div class="row"> <div class="col-md-8 text-right"> <h2 class="section-heading">{{ . }}</h2> <hr class="primary"> </div> </div> - </div> + </a> {{ end }} <div class="container-fluid"> <div class="row no-gutter"> |