Render footer links

This commit is contained in:
thePR0M3TH3AN
2025-07-10 14:44:13 -04:00
parent 79b33b165d
commit 0b60e4fb03
3 changed files with 22 additions and 0 deletions

View File

@@ -94,6 +94,14 @@ main {
padding: 1rem;
background: var(--sidebar-bg);
}
.footer-links {
margin-bottom: 0.5rem;
}
.footer-links a {
margin: 0 0.5rem;
text-decoration: none;
color: var(--text-color);
}
@media (max-width: 768px) {
.sidebar {
position: fixed;

View File

@@ -4,3 +4,10 @@ site:
navigation:
search: true
footer:
links:
- text: "GitHub"
url: "https://github.com/yourusername/DocForge"
- text: "License"
url: "/license.html"

View File

@@ -1,3 +1,10 @@
<footer class="footer">
{% if config.footer.links %}
<nav class="footer-links">
{% for link in config.footer.links %}
<a href="{{ link.url }}">{{ link.text }}</a>
{% endfor %}
</nav>
{% endif %}
<p>&copy; {{ config.site.title }}</p>
</footer>