base.html 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <!DOCTYPE html>
  2. <html lang="en-US">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. {% if article and article.author %}
  8. <meta name="author" content="{{ article.author }}" />
  9. <meta name="copyright" content="{{ article.author }}" />
  10. {% elif page and page.author %}
  11. <meta name="author" content="{{ page.author }}" />
  12. <meta name="copyright" content="{{ page.author }}" />
  13. {% else %}
  14. <meta name="author" content="{{ AUTHOR }}" />
  15. <meta name="copyright" content="{{ AUTHOR }}" />
  16. {% endif %}
  17. {% from '_includes/_defaults.html' import SITE_DESCRIPTION with context %}
  18. {% if SITE_DESCRIPTION %}
  19. <meta name="description" content="{% block head_description %}{{ SITE_DESCRIPTION|e }}{% endblock head_description %}" />
  20. {% endif %}
  21. {% block meta_tags_in_head %}
  22. {% from '_includes/_defaults.html' import GOOGLE_PLUS_PROFILE_URL with context %}
  23. {% if GOOGLE_PLUS_PROFILE_URL %}
  24. <link rel="author" href={{GOOGLE_PLUS_PROFILE_URL}} />
  25. {% endif %}
  26. {% from '_includes/_defaults.html' import TWITTER_USERNAME with context %}
  27. {%if TWITTER_USERNAME %}
  28. <meta name="twitter:creator" content="@{{TWITTER_USERNAME}}">
  29. {% endif %}
  30. <meta property="og:type" content="article" />
  31. <meta name="twitter:card" content="summary">
  32. {% endblock meta_tags_in_head %}
  33. <title>{% block title %}{{ SITENAME|striptags|e }}{% endblock title %}</title>
  34. {% block head_links %}
  35. <script type="text/x-mathjax-config">
  36. MathJax.Hub.Config({
  37. TeX: { equationNumbers: { autoNumber: "AMS" } }
  38. });
  39. </script>
  40. <script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML' async></script>
  41. <link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
  42. <link href="https://netdna.bootstrapcdn.com/font-awesome/4.0.1/css/font-awesome.css" rel="stylesheet">
  43. {% if 'assets' in PLUGINS %}
  44. {% include '_includes/minify_css.html' with context %}
  45. {% else %}
  46. <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/pygments.css" media="screen">
  47. <link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.0/normalize.min.css">
  48. <script src="{{ SITEURL }}/theme/tipuesearch/tipuesearch_content.js"></script>
  49. <link rel="stylesheet" type="text/css" href="./theme/tipuesearch/tipuesearch.css" media="screen">
  50. <link rel="stylesheet" type="text/css" href="./theme/css/elegant.css" media="screen">
  51. <link rel="stylesheet" type="text/css" href="./theme/css/custom.css" media="screen">
  52. {% endif %}
  53. {% endblock head_links %}
  54. {% include '_includes/favicon_links.html' %}
  55. {% block feed_links %}
  56. {% include '_includes/feeds.html' %}
  57. {% endblock feed_links %}
  58. {% include '_includes/analytics.html' %}
  59. {% block style %}
  60. {% endblock %}
  61. </head>
  62. <body>
  63. <div id="content-sans-footer">
  64. <div class="navbar navbar-static-top">
  65. <div class="navbar-inner">
  66. <div class="container-fluid">
  67. <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
  68. <span class="icon-bar"></span>
  69. <span class="icon-bar"></span>
  70. <span class="icon-bar"></span>
  71. </a>
  72. <a class="brand" href="{{ SITEURL }}/"><span class=site-name>{{ SITENAME }}</span></a>
  73. <div class="nav-collapse collapse">
  74. <ul class="nav pull-right top-menu">
  75. <li {% if page_name == 'index' %} class="active"{% endif %}><a href="{{ SITEURL }}">Home</a></li>
  76. {% if DISPLAY_PAGES_ON_MENU %}
  77. {% for p in pages %}
  78. <li {% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
  79. {% endfor %}
  80. {% endif %}
  81. <!-- <li {% if page_name == 'categories' %} class="active"{% endif %}><a href="{{ SITEURL }}/categories.html">Categories</a></li> -->
  82. <!-- <li {% if page_name == 'tags' %} class="active"{% endif %}><a href="{{ SITEURL }}/tags.html">Tags</a></li> -->
  83. <!-- <li {% if page_name == 'archives' %} class="active"{% endif %}><a href="{{ SITEURL }}/archives.html">Archives</a></li> -->
  84. <li><a href="{{ SITEURL }}/thesis.pdf">Get PDF</a></li>
  85. <li><form class="navbar-search" action="{{ SITEURL }}/search.html" onsubmit="return validateForm(this.elements['q'].value);"> <input type="text" class="search-query" placeholder="Search" name="q" id="tipue_search_input"></form></li>
  86. </ul>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <div class="container-fluid">
  92. <div class="row-fluid">
  93. <div class="span1"></div>
  94. <div class="span10">
  95. {% block content %}
  96. {% endblock content %}
  97. </div>
  98. <div class="span1"></div>
  99. </div>
  100. </div>
  101. <div id="push"></div>
  102. </div>
  103. {% include '_includes/footer.html' %}
  104. {% block script %}
  105. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  106. <script src="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
  107. <script>
  108. function validateForm(query)
  109. {
  110. return (query.length > 0);
  111. }
  112. </script>
  113. {% endblock script %}
  114. {% include '_includes/stat_counter.html' %}
  115. </body>
  116. <!-- Theme: Elegant built for Pelican
  117. License : http://oncrashreboot.com/pelican-elegant -->
  118. </html>