Skip to content

Commit c0eb6be

Browse files
authored
Merge pull request #136 from jasalt/fix-documentation-url
Fix `/documentation` url
2 parents bcb718d + ed3d945 commit c0eb6be

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

content/documentation/_index.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,16 @@ insert_anchor_links = "right"
44
paginate_by = 5
55
+++
66

7-
Documentation
7+
# Documentation
8+
9+
Welcome to the Phel documentation. Here you'll find comprehensive guides and references for using Phel.
10+
11+
<div class="redirect-notice">
12+
<p><strong>Notice:</strong> You will be automatically redirected to the <a href="/documentation/getting-started/">Getting Started</a> guide in a few seconds.</p>
13+
</div>
14+
15+
<script>
16+
setTimeout(function() {
17+
window.location.href = "/documentation/getting-started/";
18+
}, 3000);
19+
</script>

templates/section.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{% extends "base.html" %}
2+
3+
{% block body %}
4+
{% include "header.html" %}
5+
6+
<div class="page">
7+
{% block content %}
8+
<div class="page__content" style="max-width: 800px; margin: 0 auto; padding: 0 20px;">
9+
{{ section.content | safe }}
10+
11+
{% if section.pages %}
12+
<ul>
13+
{% for page in section.pages %}
14+
<li>
15+
<a href="{{ page.permalink }}">{{ page.title }}</a>
16+
</li>
17+
{% endfor %}
18+
</ul>
19+
{% endif %}
20+
</div>
21+
{% endblock %}
22+
23+
{% include "footer.html" %}
24+
</div>
25+
26+
{% endblock body %}

0 commit comments

Comments
 (0)