layout.jade 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. - makeRelative = env.helpers.makeRelative
  2. doctype html
  3. html(lang='en')
  4. head
  5. meta(charset='utf-8')
  6. meta(name='viewport', content='width=device-width, initial-scale=1.0')
  7. meta(name='description', content='A general-purpose, web standards-based platform for parsing and rendering PDFs.')
  8. meta(name='author', content='')
  9. link(rel='shortcut icon', href=makeRelative(page.url, '/images/favicon.ico'))
  10. title=page.title
  11. // Bootstrap core CSS
  12. link(href=makeRelative(page.url, '/css/bootstrap.min.css'), rel='stylesheet')
  13. // Custom styles for this template
  14. link(href=makeRelative(page.url, '/css/main.css'), rel='stylesheet')
  15. body
  16. header.navbar.navbar-default.navbar-static-top
  17. .container
  18. .navbar-header
  19. button.navbar-toggle(type='button', data-toggle='collapse', data-target='.navbar-collapse')
  20. span.icon-bar
  21. span.icon-bar
  22. span.icon-bar
  23. a.navbar-brand(href='#')
  24. img(src=makeRelative(page.url, '/images/logo.svg'))
  25. .collapse.navbar-collapse
  26. ul.nav.navbar-nav
  27. li(class=(page.url === '/' ? 'active' : ''))
  28. a(href=makeRelative(page.url, '/')) Home
  29. li(class=(page.url === '/getting_started/' ? 'active' : ''))
  30. a(href=makeRelative(page.url, '/getting_started/')) Getting Started
  31. li(class=(page.url === '/examples/' ? 'active' : ''))
  32. a(href=makeRelative(page.url, '/examples/')) Examples
  33. li
  34. a(href='https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions') FAQ
  35. li(class=(page.url === '/api/' ? 'active' : ''))
  36. a(href=makeRelative(page.url, '/api/')) API
  37. .container
  38. .starter-template
  39. section.content!= typogr(page.html).typogrify()
  40. .container
  41. footer
  42. p ©Mozilla and individual contributors
  43. :markdown-it
  44. PDF.js is licensed under [Apache](https://github.com/mozilla/pdf.js/blob/master/LICENSE),
  45. documentation is licensed under [CC BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/)
  46. // Bootstrap core JavaScript
  47. script(src=makeRelative(page.url, '/js/jquery-2.1.0.min.js'))
  48. script(src=makeRelative(page.url, '/js/bootstrap.min.js'))