Make home page sections dynamic and configurable (#14)

* Make home page sections dynamic and configurable

* Fix navbar issue when no section is configured + fix next-prev navigator

* Update exampleSite

* Fix next-prev navigator

* Make navbar brand URL context aware
This commit is contained in:
Md. Emruz Hossain 2020-06-30 01:54:28 +06:00 committed by GitHub
parent 8f99f05a98
commit e2d376215a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 455 additions and 363 deletions

View file

@ -1,16 +1,13 @@
<div class="container-fluid achievements bg-dimmed anchor pb-5" id="achievements">
{{ if .Site.Data.achievements }}
<h1 class="text-center">Achievements</h1>
<div class="container">
<div class="row" id="gallery">
</div>
<div class="container-fluid anchor pb-5" id="achievements">
<h1 class="text-center">{{ .section.name }}</h1>
<div class="container">
<div class="row" id="gallery">
</div>
<!-- achievements-holder holds achievement-entry -->
<div class="d-none" id="achievements-holder">
{{ range .Site.Data.achievements.achievements }}
{{ partial "misc/achievement.html" . }}
{{ end }}
</div>
{{ end }}
</div>
<!-- achievements-holder holds achievement-entry -->
<div class="d-none" id="achievements-holder">
{{ range .achievements }}
{{ partial "misc/achievement.html" . }}
{{ end }}
</div>
</div>