base.html.twig 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. {% set body_classes = body_class(['header-fixed', 'header-animated', 'header-dark', 'header-transparent', 'sticky-footer']) %}
  2. {% set grid_size = theme_var('grid-size') %}
  3. {% set compress = theme_var('production-mode') ? '.min.css' : '.css' %}
  4. <!DOCTYPE html>
  5. <html lang="{{ grav.language.getActive ?: grav.config.site.default_lang }}">
  6. <head>
  7. {% block head %}
  8. <meta charset="utf-8" />
  9. <title>{% if header.title %}{{ header.title|e('html') }} | {% endif %}{{ site.title|e('html') }}</title>
  10. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  11. <meta name="viewport" content="width=device-width, initial-scale=1">
  12. {% include 'partials/metadata.html.twig' %}
  13. <link rel="icon" type="image/png" href="{{ url('theme://images/favicon.png') }}" />
  14. <link rel="canonical" href="{{ page.url(true, true) }}" />
  15. {% block stylesheets %}
  16. {% do assets.addCss('theme://css-compiled/theme'~compress) %}
  17. {% do assets.addCss('theme://css/owl.carousel.min.css') %}
  18. {% do assets.addCss('theme://css/owl.theme.default.min.css') %}
  19. {% do assets.addCss('theme://css/jquery.mCustomScrollbar.css') %}
  20. {% endblock %}
  21. {{ assets.css()|raw }}
  22. {% block javascripts %}
  23. {% do assets.addJs('jquery', 101) %}
  24. {% do assets.addJs('theme://js/jquery-1.10.2.js', {group:'bottom'}) %}
  25. {% do assets.addJs('theme://js/owl.carousel.min.js', {group:'bottom'}) %}
  26. {% do assets.addJs('theme://js/jquery.mCustomScrollbar.js', {group:'bottom'}) %}
  27. {% do assets.addJs('theme://js/scritps.js', {group:'bottom'}) %}
  28. {% endblock %}
  29. {{ assets.js()|raw }}
  30. {% endblock head %}
  31. </head>
  32. <body id="top">
  33. <div class="background">
  34. <div class="fond-g">
  35. <svg version="1.1" viewBox="0 0 500 500" preserveAspectRatio="xMinYMin meet">
  36. <path
  37. sodipodi:nodetypes="cccc"
  38. inkscape:connector-curvature="0"
  39. id="path3336"
  40. d="M 0,0 500,0 0,500 Z"
  41. style="fill:#fff59b;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3.22091293px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;enable-background:new" />
  42. </svg>
  43. </div>
  44. <div class="fond-d">
  45. <svg version="1.1" viewBox="0 0 500 500" preserveAspectRatio="xMinYMin meet">
  46. <path
  47. sodipodi:nodetypes="cccc"
  48. inkscape:connector-curvature="0"
  49. id="path3336"
  50. d="M 0,0 500,500 500,0 Z"
  51. style="fill:#f39655;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3.22091293px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;enable-background:new" />
  52. </svg>
  53. </div>
  54. </div>
  55. {% block header %}
  56. <header>
  57. <nav class="navbar">
  58. {% block header_navigation %}
  59. {% include 'partials/navigation.html.twig' %}
  60. {% endblock %}
  61. </nav>
  62. <div class="title">
  63. <h1><a href="{{ home_url }}">{{site.title}}</a></h1>
  64. </div>
  65. <div class="logo">
  66. <div id="user">
  67. <div id="name">
  68. <p>{{ theme_config.profile.name | default(site.author.name) }}</p>
  69. </div>
  70. <div id="pro">
  71. <p>{{ site.metadata.Description }}</p>
  72. </div>
  73. </div>
  74. {% include 'partials/logo.html.twig' %}
  75. {% for module in page.find('/home').children.order('date', 'desc') %}
  76. <section class="why_lsdo ">
  77. <h3>{{module.title}}</h3>
  78. {{module.content}}
  79. <svg>
  80. <path id='' d="M 0,0 100,0 0,20 0,20 Z" style="fill:#964587" />
  81. </svg>
  82. </section>
  83. {% endfor %}
  84. </div>
  85. </header>
  86. {% endblock %}
  87. {% block hero %}{% endblock %}
  88. <section id="start">
  89. {% block body %}
  90. {% block content %}{% endblock %}
  91. {% endblock %}
  92. </section>
  93. {% block footer %}
  94. <footer>
  95. <ul>
  96. {% for module in page.find('/pied-de-page').children.order('date', 'desc') %}
  97. <li>
  98. <a href="#{{ macro.pageLinkName(module.menu)|hyphenize }}">{{module.title}}</a>
  99. </li>
  100. {% endfor %}
  101. </ul>
  102. {% for module in page.find('/pied-de-page').children.order('date', 'desc') %}
  103. <section id="{{ macro.pageLinkName(module.menu)|hyphenize }}">
  104. <h3>{{module.title}}</h3>
  105. {{module.content}}
  106. </section>
  107. {% endfor %}
  108. </footer>
  109. {% endblock %}
  110. <div class="background-footer">
  111. <div class="fond-g">
  112. <svg version="1.1" viewBox="0 0 500 500" preserveAspectRatio="xMinYMin meet">
  113. <path
  114. sodipodi:nodetypes="cccc"
  115. inkscape:connector-curvature="0"
  116. id="path3336"
  117. d="M 500,500 0,0 0,500 Z"
  118. style="fill:#fff59b;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3.22091293px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;enable-background:new" />
  119. </svg>
  120. </div>
  121. <div class="fond-d">
  122. <svg version="1.1" viewBox="0 0 500 500" preserveAspectRatio="xMinYMin meet">
  123. <path
  124. sodipodi:nodetypes="cccc"
  125. inkscape:connector-curvature="0"
  126. id="path3336"
  127. d="M 500,500 0,500 500,0 Z"
  128. style="fill:#f39655;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3.22091293px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;enable-background:new" />
  129. </svg>
  130. </div>
  131. </div>
  132. {% block bottom %}
  133. {{ assets.js('bottom')|raw }}
  134. {% endblock %}
  135. </body>
  136. </html>