Merge pull request #28 from PR0M3TH3AN/codex/update-footer-template-to-display-links

Display footer links
This commit is contained in:
thePR0M3TH3AN
2025-07-10 14:44:41 -04:00
committed by GitHub
3 changed files with 22 additions and 0 deletions

View File

@@ -94,6 +94,14 @@ main {
padding: 1rem; padding: 1rem;
background: var(--sidebar-bg); 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) { @media (max-width: 768px) {
.sidebar { .sidebar {
position: fixed; position: fixed;

View File

@@ -4,3 +4,10 @@ site:
navigation: navigation:
search: true 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"> <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> <p>&copy; {{ config.site.title }}</p>
</footer> </footer>