forked from nus-cs2103-AY1819S2/addressbook-level4
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/ NOTE: You must restart the gradle daemon after modifying any template file for the changes to take effect. | ||
- if !(attr? 'no-site-header') | ||
#site-header | ||
nav.navbar.navbar-light.bg-light | ||
.container | ||
- if attr? 'site-name' | ||
a.navbar-brand href=(site_url 'index.html') =(attr 'site-name') | ||
ul.navbar-nav | ||
li.nav-item | ||
=nav_link('UserGuide', 'UserGuide.html', 'User Guide') | ||
li.nav-item | ||
=nav_link('DeveloperGuide', 'DeveloperGuide.html', 'Developer Guide') | ||
- if attr? 'site-seedu' | ||
li.nav-item | ||
=nav_link('LearningOutcomes', 'LearningOutcomes.html', 'LOs') | ||
li.nav-item | ||
=nav_link('AboutUs', 'AboutUs.html', 'About Us') | ||
li.nav-item | ||
=nav_link('ContactUs', 'ContactUs.html', 'Contact Us') | ||
- if attr? 'site-githuburl' | ||
li.navitem | ||
a.nav-link href=(attr 'site-githuburl') | ||
span.fa.fa-github.fa-lg aria-hidden='true' | ||
| View on GitHub | ||
|
||
/ AsciiDoc leaves an empty header div even if there's no doctitle | ||
#header | ||
- if has_header? | ||
- unless notitle | ||
h1 =header.title | ||
- if [:author, :revnumber, :revdate, :revremark].any? {|a| attr? a } | ||
.details | ||
- if attr? :author | ||
span.author#author =(attr :author) | ||
br | ||
- if attr? :email | ||
span.email#email =sub_macros(attr :email) | ||
br | ||
- if (authorcount = (attr :authorcount).to_i) > 1 | ||
- (2..authorcount).each do |idx| | ||
span.author id="author#{idx}" =(attr "author_#{idx}") | ||
br | ||
- if attr? "email_#{idx}" | ||
span.email id="email#{idx}" =sub_macros(attr "email_#{idx}") | ||
- if attr? :revnumber | ||
span#revnumber #{((attr 'version-label') || '').downcase} #{attr :revnumber}#{',' if attr? :revdate} | ||
' | ||
- if attr? :revdate | ||
span#revdate =attr :revdate | ||
- if attr? :revremark | ||
br | ||
span#revremark =(attr :revremark) | ||
- if (attr? :toc) && (attr? 'toc-placement', 'auto') | ||
include _toc.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters