Fixed paths in templates. Added more demo content

This commit is contained in:
Sebastian 2024-05-11 17:19:33 +02:00
parent 285d5e2147
commit b474bdf10a
45 changed files with 65 additions and 84 deletions

View file

@ -3,25 +3,25 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/css/normalize.css">
<link rel="stylesheet" type="text/css" href="/css/redhat-text/redhat-text.css">
<link rel="stylesheet" type="text/css" href="{{ get_url(path='css/normalize.css') }}">
<link rel="stylesheet" type="text/css" href="{{ get_url(path='css/redhat-text/redhat-text.css') }}">
<link rel="stylesheet" type="text/css" href="/js/photoswipe/photoswipe.css">
<link rel="stylesheet" type="text/css" href="{{ get_url(path='js/photoswipe/photoswipe.css') }}">
{% block additional_css %}{% endblock %}
<link rel="stylesheet" type="text/css" href="/css/style.css">
<link rel="stylesheet" type="text/css" href="{{ get_url(path='css/style.css') }}">
<link rel="alternate" type="application/rss+xml" title="RSS Feed for {{ config.title }}" href="/rss.xml" />
<link rel="alternate" type="application/rss+xml" title="RSS Feed for {{ config.title }}" href="{{ get_url(path='/rss.xml') }}" />
<script src="/js/mathjax/tex-chtml-full.js" id="MathJax-script" async></script>
<script src="{{ get_url(path='/js/mathjax/tex-chtml-full.js') }}" id="MathJax-script" async></script>
<title>{% block title %}{{ config.title }} :: {{ page.title }}{% endblock title %}</title>
</head>
<body>
<header>
<img class="logo" src="/images/logo.png" />
<img class="logo" src="{{ get_url(path='/images/logo.png') }}" />
<div class="text">
<div class="heading">{{ config.title }}</div>
@ -39,12 +39,16 @@
<button class="dropbtn">{{subsec.title}} &#x2304;</button>
<div class="dropdown-content">
{% for subsec_page in subsec.pages %}
<a href="{{subsec_page.path}}">{{subsec_page.title}}</a>
<a href="{{ get_url(path=subsec_page.path) }}">{{subsec_page.title}}</a>
{% endfor %}
</div>
</div>
{% else %}
<a href="{{subsec.path}}">{{subsec.title}}</a>
{%if subsec.pages | length == 1 %}
<a href="{{ get_url(path=subsec.pages[0].path) }}">{{subsec.title}}</a>
{% else %}
<a href="{{ get_url(path=subsec.path) }}">{{subsec.title}}</a>
{% endif %}
{% endif %}
{% endfor %}
<a href="javascript:void(0);" style="font-size:15px;" class="icon" onclick="expandHamburger()">&#9776;</a>
@ -83,10 +87,10 @@
</script>
<script type="module">
import PhotoSwipeLightbox from '/js/photoswipe/photoswipe-lightbox.esm.min.js';
import PhotoSwipeLightbox from '{{ get_url(path="/js/photoswipe/photoswipe-lightbox.esm.min.js") }}';
const options = {
gallery: 'main .lightbox',
pswpModule: () => import('/js/photoswipe/photoswipe.esm.min.js')
pswpModule: () => import('{{ get_url(path="/js/photoswipe/photoswipe.esm.min.js") }}')
};
const lightbox = new PhotoSwipeLightbox(options);
lightbox.init();