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

github.com/themefisher/academia-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Aboucaya <william.aboucaya@gmail.com>2019-11-25 13:54:25 +0300
committerGitHub <noreply@github.com>2019-11-25 13:54:25 +0300
commitf5d74c1439d2d051f820f40457496c3d7e280b56 (patch)
tree5729fae330c90e4c452b0414a3e7abfba96cc2ed /layouts
parent26bf995a01607128ea4c23351c55096cc3856728 (diff)
Give the choice to display user's education or not
Added a reference to a value in the user's _index.md allowing to decide whether you want to display their education (in the hugo-academic style) or not.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/widgets/about.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/layouts/partials/widgets/about.html b/layouts/partials/widgets/about.html
index be6667b..ad91d1b 100644
--- a/layouts/partials/widgets/about.html
+++ b/layouts/partials/widgets/about.html
@@ -77,8 +77,8 @@
{{ end }}
-
- <!-- <div class="row">
+ {{ if $person.display_education }}
+ <div class="row">
{{ with $person.education }}
<div class="col-md-7">
@@ -108,6 +108,7 @@
</div>
{{ end }}
- </div> -->
+ </div>
+ {{ end }}
</div>
-</div> \ No newline at end of file
+</div>