Blog-style website for karathan using the self-made Stellar Theme powered by HTML5Up http://blog.karathan.at

generic.twig 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <!DOCTYPE HTML>
  2. <!--
  3. Stellar by HTML5 UP
  4. html5up.net | @ajlkn
  5. Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
  6. -->
  7. <html>
  8. <head>
  9. <title>{{site_title}}</title>
  10. <meta charset="utf-8" />
  11. <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
  12. <link rel="stylesheet" href="{{ theme_url }}/assets/css/main.css" />
  13. <noscript><link rel="stylesheet" href="{{ theme_url }}/assets/css/noscript.css" /></noscript>
  14. </head>
  15. <body class="is-preload">
  16. <!-- Wrapper -->
  17. <div id="wrapper">
  18. <!-- Header -->
  19. <header id="header" class="alt">
  20. <span class="logo"><img src="{{ theme_url }}/images/logo.svg" alt="" /></span>
  21. <h1>{{site_title}} | {{current_page.title}}</h1>
  22. <p>{{random(pages._meta.meta.Slogans)}}</p>
  23. </header>
  24. <nav id="nav">
  25. <ul>
  26. <li><a href="{{pages.index|link}}">Startseite</a></li>
  27. <li><a href="{{"literature"|link}}">Literatur</a></li>
  28. <li><a href="{{"gamedesign"|link}}">Game Design</a></li>
  29. <li><a href="{{"programming"|link}}">Programmierung</a></li>
  30. </ul>
  31. </nav>
  32. <!-- Main -->
  33. <div id="main">
  34. <!-- Content -->
  35. <section id="content" class="main special">
  36. {% if current_page.meta.Image %}
  37. <span class="image main"><img src="{{ theme_url }}/images/{{current_page.meta.Image}}" alt="" /></span>
  38. {% endif %}
  39. <header class="major">
  40. <p>{{current_page.content}}</p>
  41. </header>
  42. </section>
  43. {% set ralign = false %}
  44. {% if current_page.tree_node.children %}
  45. {% set childPages = current_page.tree_node.children|map("page") %}
  46. {% for child in childPages|sort_by(['meta','ReleaseIndex'])|reverse if child %}
  47. {% if child.title %}
  48. <section id="content" class="main">
  49. {% if ralign == true %}
  50. <header class="major secondary">
  51. {% else %}
  52. <header class="major">
  53. {% endif %}
  54. <h2>{{child.title}}</h2>
  55. </header>
  56. {% if ralign == true %}
  57. <p class="secondary">{{child.description}}</p>
  58. {% else %}
  59. <p>{{child.description}}</p>
  60. {% endif %}
  61. <ul class="actions">
  62. {% if ralign == true %}
  63. <li class="secondary"><a href="{{child.url}}" class="button">Weiterlesen</a></li>
  64. {% set ralign = false %}
  65. {% else %}
  66. <li><a href="{{child.url}}" class="button">Weiterlesen</a></li>
  67. {% set ralign = true %}
  68. {% endif %}
  69. </ul>
  70. </section>
  71. {% endif %}
  72. {% endfor %}
  73. {% endif %}
  74. </div>
  75. <!-- Footer -->
  76. <footer id="footer">
  77. <section>
  78. {% if pages._meta.meta.FooterTitle and pages._meta.meta.FooterText %}
  79. <h2>{{pages._meta.meta.FooterTitle}}</h2>
  80. <p>{{pages._meta.meta.FooterText}}</p>
  81. {% endif %}
  82. <ul class="actions">
  83. <li><a href="" class="button" onclick="topFunction()"><span class="icon fa-angle-up"></span></a></li>
  84. </ul>
  85. </section>
  86. <section>
  87. <h2>Kontakt</h2>
  88. <dl class="alt">
  89. {% if pages._meta.meta.AddressStreet and pages._meta.meta.AddressTown and pages._meta.meta.AddressZip and pages._meta.meta.AddressCountry %}
  90. <dt>Address</dt>
  91. <dd>{{pages._meta.meta.AddressStreet}} &bull; {{pages._meta.meta.AddressTown}}, {{pages._meta.meta.AddressZip}} &bull; {{pages._meta.meta.AddressCountry}}</dd>
  92. {% endif %}
  93. {% if pages._meta.meta.Phone %}
  94. <dt>Phone</dt>
  95. <dd>{{pages._meta.meta.Phone}}</dd>
  96. {% endif %}
  97. {% if pages._meta.meta.Email %}
  98. <dt>Email</dt>
  99. <dd><a href="mailto:{{pages._meta.meta.Email}}">{{pages._meta.meta.Email}}</a></dd>
  100. {% endif %}
  101. </dl>
  102. <ul class="icons">
  103. {% for social in pages._meta.meta.social %}
  104. <li><a href="{{social.url}}" class="icon {{social.icon}}"><span class="label">{{social.title}}</span></a></li>
  105. {% endfor %}
  106. </ul>
  107. </section>
  108. <p class="copyright">&copy; {{ pages._meta.meta.Copyright }}. Design: <a href="https://html5up.net">HTML5 UP</a>. Ported to Pico by Karathan
  109. {% if pages._meta.meta.Branch %}
  110. <br/>
  111. <span class="icon fa-code-fork"></span> {{pages._meta.meta.Branch}}
  112. {% if pages._meta.meta.Commit %}
  113. - {{pages._meta.meta.Commit}}
  114. {% endif %}
  115. {% endif %}
  116. </p>
  117. </footer>
  118. </div>
  119. <!-- Scripts -->
  120. <script src="{{ theme_url }}/assets/js/jquery.min.js"></script>
  121. <script src="{{ theme_url }}/assets/js/jquery.scrollex.min.js"></script>
  122. <script src="{{ theme_url }}/assets/js/jquery.scrolly.min.js"></script>
  123. <script src="{{ theme_url }}/assets/js/browser.min.js"></script>
  124. <script src="{{ theme_url }}/assets/js/breakpoints.min.js"></script>
  125. <script src="{{ theme_url }}/assets/js/util.js"></script>
  126. <script src="{{ theme_url }}/assets/js/main.js"></script>
  127. </body>
  128. </html>