Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/2-REC/hugo-myportfolio-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Severin <severinderek@gmail.com>2019-03-25 12:42:05 +0300
committerDerek Severin <severinderek@gmail.com>2019-03-25 12:42:05 +0300
commite4ea3e19f5e36642b211f9c23f6d496c1d74294b (patch)
tree2781d310df4d7eed72c29943e4bc9d9047ae35ba
parent3037362c744f783bdb6af645d0e5155e49c7399a (diff)
Set sections titles as links
-rw-r--r--layouts/partials/sections/projects.html5
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">