opendoc-theme 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +43 -0
  4. data/_includes/directory.html +95 -0
  5. data/_includes/document-title.txt +58 -0
  6. data/_includes/toc.html +107 -0
  7. data/_includes/toolbar.html +53 -0
  8. data/_includes/welcome.html +5 -0
  9. data/_layouts/default.html +147 -0
  10. data/_layouts/home.html +4 -0
  11. data/_layouts/iframe.html +13 -0
  12. data/_layouts/page.html +4 -0
  13. data/_layouts/print.html +27 -0
  14. data/_sass/_base.scss +381 -0
  15. data/_sass/_constants.scss +87 -0
  16. data/_sass/_iframe.scss +7 -0
  17. data/_sass/_layout.scss +419 -0
  18. data/_sass/_nav.scss +592 -0
  19. data/_sass/_print.scss +43 -0
  20. data/_sass/_syntax-highlighting.scss +61 -0
  21. data/_sass/_toolbar.scss +372 -0
  22. data/_sass/_welcome.scss +41 -0
  23. data/assets/export.md +30 -0
  24. data/assets/images/chevron-up-white.svg +1 -0
  25. data/assets/images/chevron-up.svg +1 -0
  26. data/assets/images/close.svg +17 -0
  27. data/assets/images/favicon.ico +0 -0
  28. data/assets/images/feedback-hover.svg +3 -0
  29. data/assets/images/feedback-mobile.svg +1 -0
  30. data/assets/images/feedback.svg +1 -0
  31. data/assets/images/github-hover.svg +3 -0
  32. data/assets/images/github.svg +1 -0
  33. data/assets/images/home.svg +14 -0
  34. data/assets/images/index-img.png +0 -0
  35. data/assets/images/logo.png +0 -0
  36. data/assets/images/menu.svg +1 -0
  37. data/assets/images/opendoc-logo-full.svg +10 -0
  38. data/assets/images/pdf-hover.svg +11 -0
  39. data/assets/images/pdf.svg +9 -0
  40. data/assets/images/search-icon-dark.svg +19 -0
  41. data/assets/images/search-icon-white.svg +12 -0
  42. data/assets/images/share.svg +1 -0
  43. data/assets/images/sidebar-hover.svg +3 -0
  44. data/assets/images/sidebar.svg +1 -0
  45. data/assets/images/vertical-dots.svg +1 -0
  46. data/assets/images/x-mobile.svg +1 -0
  47. data/assets/index.html +5 -0
  48. data/assets/js/banner.js +20 -0
  49. data/assets/js/google_analytics.js +11 -0
  50. data/assets/js/header.js +31 -0
  51. data/assets/js/helpers.js +24 -0
  52. data/assets/js/lunr.min.js +6 -0
  53. data/assets/js/navigation.js +202 -0
  54. data/assets/js/page-index.js +57 -0
  55. data/assets/js/pqueue.js +373 -0
  56. data/assets/js/pre-loader.js +43 -0
  57. data/assets/js/search.js +580 -0
  58. data/assets/js/toolbar.js +130 -0
  59. data/assets/siteIndex.json +56 -0
  60. data/assets/startup/build.sh +18 -0
  61. data/assets/startup/docprint.html +20 -0
  62. data/assets/startup/pdf-gen.js +309 -0
  63. data/assets/startup/prebuild-lunr-index.js +52 -0
  64. data/assets/styles/main.scss +13 -0
  65. data/assets/styles/normalize.css +427 -0
  66. data/assets/vendor/babel-polyfill.min.js +3 -0
  67. data/assets/vendor/dom4.js +2 -0
  68. data/assets/vendor/fetch.umd.js +531 -0
  69. data/assets/vendor/headroom.min.js +7 -0
  70. data/assets/vendor/jump.min.js +2 -0
  71. data/assets/vendor/mark.min.js +7 -0
  72. data/assets/vendor/popper.min.js +5 -0
  73. data/assets/vendor/web-share-shim.bundle.min.js +2 -0
  74. metadata +158 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: eeab15af892ce18167d4ae783570f8c19b550e85d5d1d333d04cfbcfaddacf13
4
+ data.tar.gz: 39fb8d9131caf3c1af0fb64dae834b55b43600d3e0d86b08489e4c4479515003
5
+ SHA512:
6
+ metadata.gz: 1f32596a2f7a0272efd5c47a768bcc720175a3ff2d3cf0dc5681a54cd2474ea27fffad7128180f321f2cd93c4c6f22bfe0a2f7e5d94334aba402d0251e683700
7
+ data.tar.gz: 5ab992ecc7c8727ea8279f1d5a070ec1284439e005d0133fbddb941f02fd92aeb9ed6b6d70e41f559ae351e52b88989d74b2023619b319746991af7b8b91b8c2
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Ian Chen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # opendoc-theme
2
+
3
+ Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
4
+
5
+
6
+
7
+ ## Installation
8
+
9
+ Add this line to your Jekyll site's `Gemfile`:
10
+
11
+ ```ruby
12
+ gem "opendoc-theme"
13
+ ```
14
+
15
+ And add this line to your Jekyll site's `_config.yml`:
16
+
17
+ ```yaml
18
+ theme: opendoc-theme
19
+ ```
20
+
21
+ And then execute:
22
+
23
+ $ bundle
24
+
25
+ Or install it yourself as:
26
+
27
+ $ gem install opendoc-theme
28
+
29
+ ## Development
30
+
31
+ To set up your environment to develop this theme, run `bundle install`.
32
+
33
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
34
+
35
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
36
+ To add a custom directory to your theme-gem, please edit the regexp in `opendoc-theme.gemspec` accordingly.
37
+
38
+ To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
39
+
40
+ ## License
41
+
42
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
43
+
@@ -0,0 +1,95 @@
1
+ <section class="navigation">
2
+ {% capture folder_directory %}
3
+ {% assign folders = "" | split: ',' %}
4
+ {% for page in site.html_pages %}
5
+ {% unless page.exclude %}
6
+ {% unless page.name == 'index.html' or page.name == 'index.md' %}
7
+ {% comment %}
8
+ Get first folder only
9
+ e.g. /, /folder1/,
10
+ {% endcomment %}
11
+ {% assign escaped_dir = page.dir | uri_escape | remove_first: '/' | split: '/' | first | prepend: '/' %}
12
+ {% if escaped_dir != '/' %}
13
+ {% assign escaped_dir = escaped_dir | append: '/' %}
14
+ {% endif %}
15
+
16
+ {% assign folders = folders | push: escaped_dir %}
17
+ {% endunless %}
18
+ {% endunless %}
19
+ {% endfor %}
20
+ {% assign folders = folders | uniq | sort %}
21
+
22
+ {% comment %}
23
+ Show table of directories only in root path
24
+ {% endcomment %}
25
+ {% if include.currdir != blank or include.currdir == '/' %}
26
+ <ul class="table-of-directories">
27
+ {% else %}
28
+ <ul class="table-of-directories hidden">
29
+ {% endif %}
30
+
31
+
32
+ {% comment %}
33
+ if document_order is listed, sort according to document_order
34
+ {% endcomment %}
35
+ {% if site.document_order %}
36
+ {% assign sorted_folders = '' | split: '' %}
37
+ {% for document in site.document_order %}
38
+ {% assign document_to_compare = document | strip | uri_escape | downcase %}
39
+ {% for folder in folders %}
40
+ {% assign folder_to_compare = folder | remove: '/' | downcase %}
41
+ {% if document_to_compare == folder_to_compare %}
42
+ {% assign sorted_folders = sorted_folders | push: folder %}
43
+ {% endif %}
44
+ {% endfor %}
45
+ {% endfor %}
46
+ {% else %}
47
+ {% assign sorted_folders = folders %}
48
+ {% endif %}
49
+
50
+ {% for folder in sorted_folders %}
51
+ <li>
52
+ <a href="{{ folder | relative_url }}" id="dir_{{ folder | downcase }}" class="tod-container">
53
+ <div class="directory-item">
54
+ {% include_cached document-title.txt dir=folder info="title" %}
55
+ </div></a>
56
+ </li>
57
+ {% endfor %}
58
+
59
+ </ul>
60
+ {% endcapture %}
61
+
62
+ {% comment %}
63
+ If there is only one folder or documents all at root, dont show back button
64
+ {% endcomment %}
65
+ {% if sorted_folders.size > 1 %}
66
+ {{ folder_directory | markdownify | strip }}
67
+ <div class="back-to-documents">
68
+ <p>Back to Documents <img class="btn-icon" src="{{ '/assets/images/chevron-up.svg' | relative_url }}"></p>
69
+ </div>
70
+ {% endif %}
71
+
72
+ {% for folder in sorted_folders %}
73
+ {% comment %}
74
+ Similarly, get only first subfolder of the currdir being passed in
75
+ {% endcomment %}
76
+ {% assign include_currdir_decode = include.currdir | remove_first: '/' | split: '/' | first | uri_escape | prepend: '/' %}
77
+ {% if include_currdir_decode != '/' %}
78
+ {% assign include_currdir_decode = include_currdir_decode | append: '/' %}
79
+ {% endif %}
80
+ {% comment %}
81
+ If there is only one folder, show expanded content list
82
+ {% endcomment %}
83
+ {% assign toc_id = 'toc_' | append: folder | downcase %}
84
+ {% if folders.size == 1 %}
85
+ <section class="contents lonely" id="{{ toc_id }}">
86
+ {% elsif include_currdir_decode == folder and include.currdir != '/' %}
87
+ <section class="contents" id="{{ toc_id }}">
88
+ {% else %}
89
+ <section class="contents" id="{{ toc_id }}" hidden>
90
+ {% endif %}
91
+ {% include_cached toc.html path=folder class="table-of-contents" h_min=1 h_max=2 item_class="nav-branch" anchor_class="nav-link" %}
92
+ </section>
93
+
94
+ {% endfor %}
95
+ </section>
@@ -0,0 +1,58 @@
1
+ {%- comment -%}
2
+ Accepts:
3
+ dir: folder name
4
+ info: title/subtitle/order
5
+ {%- endcomment -%}
6
+ {%- assign page_info = null -%}
7
+ {%- comment -%}
8
+ Look for config file
9
+ Compare only first folder
10
+ {%- endcomment -%}
11
+ {%- assign include_dir = include.dir | uri_escape | remove_first: '/' | split: '/' | first -%}
12
+ {%- for page in site.html_pages -%}
13
+ {%- assign page_dir = page.dir | uri_escape | remove_first: '/' | split: '/' | first -%}
14
+ {%- if page_dir == include_dir and page.name == 'index.html' or page.name == 'index.md' -%}
15
+ {%- assign page_info = page -%}
16
+ {%- endif -%}
17
+ {%- endfor -%}
18
+ {%- assign document_info = '' | split: ',' -%}
19
+
20
+ {%- if include.dir == '/' -%}
21
+ {%- comment -%}
22
+ If root folder, take info from config
23
+ {%- endcomment -%}
24
+ {%- assign document_info = document_info | push: site.title -%}
25
+ {%- assign document_info = document_info | push: site.subtitle -%}
26
+ {%- assign document_info = document_info | push: site.order -%}
27
+ {%- else -%}
28
+
29
+ {%- comment -%}
30
+ If no config file or title not set, use folder name
31
+ /document 1/something/blah -> Document 1
32
+ {%- endcomment -%}
33
+ {%- if page_info == null or page_info.title == null -%}
34
+ {%- assign folder_name = include.dir | url_decode | remove_first: '/' | split: '/' | first | capitalize -%}
35
+ {%- assign document_info = document_info | push: folder_name -%}
36
+ {%- else -%}
37
+ {%- assign document_info = document_info | push: page_info.title -%}
38
+ {%- endif -%}
39
+ {%- assign document_info = document_info | push: page_info.subtitle -%}
40
+ {%- assign document_info = document_info | push: page_info.order -%}
41
+ {%- endif -%}
42
+
43
+ {%- comment -%}
44
+ If info prop is set, return specific field
45
+ else, return all in array [ title, subtitle, order ]
46
+ {%- endcomment -%}
47
+ {%- if include.info == 'title' -%}
48
+ {{ document_info[0] }}
49
+ {%- endif -%}
50
+ {%- if include.info == 'subtitle' -%}
51
+ {{ document_info[1] }}
52
+ {%- endif -%}
53
+ {%- if include.info == 'order' -%}
54
+ {{ document_info[2] | join: '/' }}
55
+ {%- endif -%}
56
+ {%- if include.info == null -%}
57
+ {{ document_info | jsonify }}
58
+ {%- endif -%}
@@ -0,0 +1,107 @@
1
+ {% comment %}
2
+ Adapted from: https://github.com/allejo/jekyll-toc
3
+ Usage:
4
+ {% include_cached toc.html path=dir class="inline_toc" h_min=2 h_max=3 %}
5
+
6
+ Optional Parameters:
7
+ * path (string) : '' - the path of the files for the toc to be generated
8
+ * h_min (int) : 1 - the minimum TOC header level to use; any header lower than this value will be ignored
9
+ * h_max (int) : 6 - the maximum TOC header level to use; any header greater than this value will be ignored
10
+ * item_class (string) : '' - add custom class(es) for each list item; has support for '%level%' placeholder, which is the current heading level
11
+ * anchor_class (string) : '' - add custom class(es) for each anchor element
12
+
13
+ Output:
14
+ An ordered or unordered list representing the table of contents of a markdown block. This snippet will only
15
+ generate the table of contents and will NOT output the markdown given to it
16
+ {% endcomment %}
17
+
18
+ {% assign unsorted_pages = "" | split: ',' %}
19
+ {% assign sorted_pages = site.html_pages | sort: 'name' %}
20
+ {% for site_page in sorted_pages %}
21
+ {% unless site_page.exclude %}
22
+ {% if include.path == null %}
23
+ {% assign unsorted_pages = unsorted_pages | push: site_page %}
24
+ {% else %}
25
+ {% assign site_page_folder = site_page.dir | uri_escape | remove_first: '/' | split: '/' | first | prepend: '/' %}
26
+ {% if site_page_folder != '/' %}
27
+ {% assign site_page_folder = site_page_folder | append: '/' %}
28
+ {% endif %}
29
+ {% if site_page_folder == include.path %}
30
+ {% assign unsorted_pages = unsorted_pages | push: site_page %}
31
+ {% endif %}
32
+ {% endif %}
33
+ {% endunless %}
34
+ {% endfor %}
35
+
36
+ {% comment %}
37
+ Page ordering
38
+ {% endcomment %}
39
+ {% capture page_order %}
40
+ {% include document-title.txt dir=include.path info="order" %}
41
+ {% endcapture %}
42
+ {% assign page_order = page_order | strip | split: '/' %}
43
+ {% if page_order.size > 0 %}
44
+ {% assign pages = '' | split: ',' %}
45
+ {% for order in page_order %}
46
+ {% for unsorted_page in unsorted_pages %}
47
+ {% if unsorted_page.title == order or unsorted_page.name == order %}
48
+ {% assign pages = pages | push: unsorted_page %}
49
+ {% endif %}
50
+ {% endfor %}
51
+ {% endfor %}
52
+ {% else %}
53
+ {% assign pages = unsorted_pages | sort: 'name' %}
54
+ {% endif %}
55
+
56
+ {% capture tocWorkspace %}
57
+ {% capture my_toc %}{% endcapture %}
58
+ {% assign orderedList = include.ordered | default: false %}
59
+ {% assign minHeader = include.h_min | default: 1 %}
60
+ {% assign maxHeader = include.h_max | default: 6 %}
61
+ {% assign firstHeader = true %}
62
+ {% for page in pages %}
63
+ {% assign nodes = page.content | markdownify | split: '<h' %}
64
+ {% for node in nodes %}
65
+ {% if node == "" %}
66
+ {% continue %}
67
+ {% endif %}
68
+
69
+ {% assign headerLevel = node | replace: '"', '' | slice: 0, 1 | times: 1 %}
70
+
71
+ {% if headerLevel < minHeader or headerLevel > maxHeader %}
72
+ {% continue %}
73
+ {% endif %}
74
+
75
+ {% if firstHeader %}
76
+ {% assign firstHeader = false %}
77
+ {% assign minHeader = headerLevel %}
78
+ {% endif %}
79
+
80
+ {% assign indentAmount = headerLevel | minus: minHeader | add: 1 %}
81
+ {% assign _workspace = node | split: '</h' %}
82
+
83
+ {% assign _idWorkspace = _workspace[0] | split: 'id="' %}
84
+ {% assign _idWorkspace = _idWorkspace[1] | split: '"' %}
85
+ {% assign html_id = _idWorkspace[0] %}
86
+
87
+ {% capture _hAttrToStrip %}{{ _workspace[0] | split: '>' | first }}>{% endcapture %}
88
+ {% assign header = _workspace[0] | replace: _hAttrToStrip, '' %}
89
+
90
+ {% assign space = '' %}
91
+ {% for i in (1..indentAmount) %}
92
+ {% assign space = space | prepend: ' ' %}
93
+ {% endfor %}
94
+
95
+ {% unless include.item_class == blank %}
96
+ {% capture listItemClass %}{:.{{ include.item_class | replace: '%level%', headerLevel }}}{% endcapture %}
97
+ {% endunless %}
98
+
99
+ {% capture my_toc %}{{ my_toc }}
100
+ {{ space }} - {{ listItemClass }}<a href="{% if page.url %}{{ page.url | relative_url }}{% endif %}{% if headerLevel > minHeader %}#{{ html_id }}{% endif %}" class="{% if include.anchor_class %}{{ include.anchor_class }}{% endif %}"><span class="directory-item"> {{ header }} </span></a>{% endcapture %}
101
+ {% endfor %}
102
+ {% endfor %}
103
+ {% if include.class %}
104
+ {% capture my_toc %}{:.{{ include.class }}}
105
+ {{ my_toc | lstrip }}{% endcapture %}
106
+ {% endif %}
107
+ {% endcapture %}{% assign tocWorkspace = '' %}{{ my_toc | markdownify | strip }}
@@ -0,0 +1,53 @@
1
+ <div class="toolbar-container no-print">
2
+ <label for="menu-toggle" class="toolbar-button" id="menu-toggle-btn">
3
+ <input type="checkbox" id="menu-toggle" hidden>
4
+ <img class="btn-icon" src="{{ '/assets/images/sidebar.svg' | relative_url }}">
5
+ <img class="btn-icon hover" src="{{ '/assets/images/sidebar-hover.svg' | relative_url }}">
6
+ <img class="mobile-btn-icon " src="{{ '/assets/images/menu.svg' | relative_url }}">
7
+ <img class="mobile-btn-icon close" src="{{ '/assets/images/x-mobile.svg' | relative_url }}">
8
+ <div class="tooltip">Toggle Sidebar</div>
9
+ </label>
10
+ <div class="toolbar-button print-btn">
11
+ <img class="btn-icon" src="{{ '/assets/images/pdf.svg' | relative_url }}">
12
+ <img class="btn-icon hover" src="{{ '/assets/images/pdf-hover.svg' | relative_url }}">
13
+ <div class="tooltip">Save as PDF</div>
14
+ </div>
15
+ <div class="toolbar-button edit-btn">
16
+ <img class="btn-icon" src="{{ '/assets/images/github.svg' | relative_url }}">
17
+ <img class="btn-icon hover" src="{{ '/assets/images/github-hover.svg' | relative_url }}">
18
+ <div class="tooltip">View on Github</div>
19
+ </div>
20
+ </div>
21
+
22
+ <div class="fab no-print" id="fab">
23
+ <div class="overlay" id="fab-overlay"></div>
24
+ <div class="back-to-top hidden" id="back-to-top" href="#">
25
+ <img class="btn-icon" src="{{ '/assets/images/chevron-up-white.svg' | relative_url }}">
26
+ </div>
27
+ <div class="trigger" id="fab-trigger">
28
+ <img class="btn-icon" src="{{ '/assets/images/vertical-dots.svg' | relative_url }}">
29
+ <img class="btn-icon close" src="{{ '/assets/images/x-mobile.svg' | relative_url }}">
30
+ </div>
31
+ <div class="actions">
32
+ {%- assign feedback_url = 'https://form.gov.sg/5cee3d46138e3200109244df' -%}
33
+ {%- if site.styling_options.feedback_url and site.styling_options.feedback_url != '' -%}
34
+ {%- assign feedback_url = site.styling_options.feedback_url -%}
35
+ {%- endif -%}
36
+ <a class="action feedback-btn" href="{{ feedback_url }}" target="_blank">
37
+ <img class="btn-icon" src="{{ '/assets/images/feedback.svg' | relative_url }}">
38
+ <div class="tooltip">Feedback</div>
39
+ </a>
40
+ <div class="action share-btn">
41
+ <img class="btn-icon" src="{{ '/assets/images/share.svg' | relative_url }}">
42
+ <div class="tooltip">Share</div>
43
+ </div>
44
+ <div class="action print-btn">
45
+ <img class="btn-icon" src="{{ '/assets/images/pdf.svg' | relative_url }}">
46
+ <div class="tooltip">Save as PDF</div>
47
+ </div>
48
+ <div class="action edit-btn">
49
+ <img class="btn-icon" src="{{ '/assets/images/github.svg' | relative_url }}">
50
+ <div class="tooltip">View on Github</div>
51
+ </div>
52
+ </div>
53
+ </div>
@@ -0,0 +1,5 @@
1
+ <div class="welcome-container">
2
+ <p class="welcome-text">Start by searching or selecting a document to browse</p>
3
+ <img class="welcome-image" src="{{ '/assets/images/index-img.png' | relative_url }}" />
4
+ <button class="welcome-button">Start Browsing</button>
5
+ </div>
@@ -0,0 +1,147 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ page.lang | default: site.lang | default: "en" }}">
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
+ <title>{{ page.title }}</title>
8
+ <meta name="description" content="{{ content | strip_html | truncate: 100, '' }}">
9
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
10
+ <meta property="og:image" content="{{ 'site.styling_options.logo_path' | relative_url }}">
11
+
12
+ <link rel="icon" href="{{ '/assets/images/favicon.ico' | relative_url }}">
13
+ <link href="https://fonts.googleapis.com/css?family=Fira+Mono&display=swap" rel="stylesheet">
14
+ <link href="https://fonts.googleapis.com/css?family=Noto+Serif:400,700" rel="stylesheet" type="text/css">
15
+ <link href="https://fonts.googleapis.com/css?family=Noto+Sans:400,700" rel="stylesheet" type="text/css">
16
+ <link rel="stylesheet" href="{{ '/assets/styles/normalize.css' | relative_url }}">
17
+ <link rel="stylesheet" href="{{ '/assets/styles/main.css' | relative_url }}">
18
+ <link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}"
19
+ href="{{ '/feed.xml' | relative_url }}">
20
+ <!-- Polyfill for corejs functions, promises, array.includes, array.from, etc. -->
21
+ <script src="{{ '/assets/vendor/babel-polyfill.min.js' | relative_url }}"></script>
22
+ <!-- Polyfill for dom functions -->
23
+ <script src="{{ '/assets/vendor/dom4.js' | relative_url }}" charset="utf-8"></script>
24
+ <!-- Polyfill for fetch API -->
25
+ <script src="{{ '/assets/vendor/fetch.umd.js' | relative_url }}"></script>
26
+ <!-- Priority Queue library for promises -->
27
+ <script src="{{ '/assets/js/pqueue.js' | relative_url }}"></script>
28
+ <!-- Helper functions that should be preloaded go here -->
29
+ <script src="{{ '/assets/js/helpers.js' | relative_url }}"></script>
30
+ {%- if jekyll.environment == 'production' and site.google_analytics -%}
31
+ <script src="{{ '/assets/js/google_analytics.js' | relative_url }}"></script>
32
+ {%- endif -%}
33
+ </head>
34
+
35
+ <body>
36
+ <div class="site-header no-print">
37
+ <div class="site-header-left">
38
+ <a href="{{ '/' | relative_url }}">
39
+ <h1 class="site-header-text">
40
+ {{ site.title }}
41
+ </h1>
42
+ </a>
43
+ <span class="site-last-updated">
44
+ LAST UPDATED: {{ site.time | date_to_long_string | upcase }}
45
+ <span>
46
+ </div>
47
+ <div class="site-header-right">
48
+ {%- assign feedback_url = 'https://form.gov.sg/5cee3d46138e3200109244df' -%}
49
+ {%- if site.styling_options.feedback_url and site.styling_options.feedback_url != '' -%}
50
+ {%- assign feedback_url = site.styling_options.feedback_url -%}
51
+ {%- endif -%}
52
+ <a id="contact-us" href="{{ feedback_url }}" target="_blank">
53
+ <span>Contact Us</span>
54
+ </a>
55
+ <a href="{{ site.styling_options.logo_url }}" class="desktop">
56
+ <img class="agency-logo" src="{{ site.styling_options.logo_path | relative_url }}">
57
+ </a>
58
+ <a href="{{ '/' | relative_url }}" class="mobile">
59
+ <img class="agency-logo" src="{{ site.styling_options.logo_path | relative_url }}">
60
+ </a>
61
+ <a class="search-btn top-mobile-btn">
62
+ <img src="{{ '/assets/images/search-icon-dark.svg' | relative_url }}">
63
+ </a>
64
+ </div>
65
+ </div>
66
+
67
+ <nav class="site-nav no-print">
68
+ <div class="nav-header no-print">
69
+ <div class="search-box">
70
+ <div class="search-icon-container search-btn">
71
+ <img class="search-icon mobile" src="{{ '/assets/images/search-icon-dark.svg' | relative_url }}"/>
72
+ <img class="search-icon" src="{{ '/assets/images/search-icon-white.svg' | relative_url }}"/>
73
+ <img class="close-icon" src="{{ '/assets/images/close.svg' | relative_url }}"/>
74
+ </div>
75
+ <span class="search-filter hidden">
76
+ {%- include_cached document-title.txt dir=page.dir info="title" -%}
77
+ </span>
78
+ <div class="search-input-container">
79
+ <p class="search-header">search entire site</p>
80
+ <input id="search-box" placeholder="Search titles or keywords" type="text" />
81
+ </div>
82
+ <label class="clear-button">
83
+ <svg class="clear-icon" viewBox="0 0 18 18" width="18" height="18">
84
+ <path d="M2.42755 1L17.0331 15.60554l-1.41423 1.4142L1 2.38402"></path>
85
+ <path d="M1 15.51932L15.51933 1l1.4142 1.4142L2.2978 17.0331"></path>
86
+ </svg>
87
+ </label>
88
+ </div>
89
+ <div class="search-results">
90
+ </div>
91
+ </div>
92
+ <div class="nav-main no-print">
93
+ {%- if site.fast_build -%}
94
+ {% include_cached directory.html %}
95
+ {%- else -%}
96
+ {% include_cached directory.html currdir=page.dir %}
97
+ {%- endif -%}
98
+ </div>
99
+ </nav>
100
+
101
+ {%- if page.name == 'index.html' -%}
102
+ <div id="index-div" class="index">
103
+ {%- else -%}
104
+ <div id="index-div">
105
+ {%- endif- %}
106
+ <header class="doc-header no-print">
107
+ <div class=description-container>
108
+ <h2 id="document-title">
109
+ {% include_cached document-title.txt dir=page.dir info="title" %}
110
+ </h2>
111
+ <div>
112
+ <div id="document-subtitle">
113
+ {% include_cached document-title.txt dir=page.dir info="subtitle" %}
114
+ </div>
115
+ </div>
116
+ </div>
117
+ </header>
118
+
119
+ {% include_cached toolbar.html %}
120
+ </div>
121
+
122
+ <main class="site-main" id="main-content" aria-label="Content">
123
+ {%- assign stripped_content = content | strip -%}
124
+ {%- if page.name != 'index.html' and stripped_content.size > 0 -%}
125
+ {{ content | replace: "!!^", "<i style='margin-left:30px'></i>"}}
126
+ {%- else -%}
127
+ {% include_cached welcome.html %}
128
+ {%- endif- %}
129
+ </main>
130
+ <div class="site-branding no-print">
131
+ Powered by <a href="https://opendoc.sg"><img src="{{ '/assets/images/opendoc-logo-full.svg' | relative_url }}"></a>
132
+ </div>
133
+
134
+ <script src="{{ '/assets/vendor/jump.min.js' | relative_url }}" charset="utf-8"></script>
135
+ <script src="{{ '/assets/vendor/headroom.min.js' | relative_url }}" charset="utf-8"></script>
136
+ <script src="{{ '/assets/vendor/mark.min.js' | relative_url }}" charset="utf-8"></script>
137
+ <script src="{{ '/assets/vendor/web-share-shim.bundle.min.js' | relative_url }}"></script>
138
+ <script src="{{ '/assets/js/toolbar.js' | relative_url }}"></script>
139
+ <script src="{{ '/assets/js/page-index.js' | relative_url }}"></script>
140
+ <script src="{{ '/assets/js/pre-loader.js' | relative_url }}"></script>
141
+ <script src="{{ '/assets/js/lunr.min.js' | relative_url }}"></script>
142
+ <script src="{{ '/assets/js/search.js' | relative_url }}"></script>
143
+ <script src="{{ '/assets/js/header.js' | relative_url }}"></script>
144
+ <script src="{{ '/assets/js/navigation.js' | relative_url }}"></script>
145
+ </body>
146
+
147
+ </html>