Skip to main content

BASE_HTML

Constant BASE_HTML 

Source
pub const BASE_HTML: &str = "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>{% block title %}{{ site_title }}{% endblock %}</title>\n    <link rel=\"stylesheet\" href=\"{{ base_url }}styles.css\">\n</head>\n<body>\n    <nav class=\"site-nav\">\n        <div class=\"nav-brand\">\n            <a href=\"{{ base_url }}\">{{ site_title }}</a>\n        </div>\n        <ul class=\"nav-links\">\n            <li><a href=\"{{ base_url }}\">Home</a></li>\n            {% if features.timeline %}\n            <li><a href=\"{{ base_url }}timeline.html\">Timeline</a></li>\n            {% endif %}\n            {% if features.dependency_graph %}\n            <li><a href=\"{{ base_url }}graph.html\">Graph</a></li>\n            {% endif %}\n            {% if features.changelog %}\n            <li><a href=\"{{ base_url }}changelog.html\">Changelog</a></li>\n            {% endif %}\n            {% if features.status_indexes %}\n            <li class=\"dropdown\">\n                <span>Status</span>\n                <ul class=\"dropdown-menu\">\n                    <li><a href=\"{{ base_url }}status/completed.html\">Completed</a></li>\n                    <li><a href=\"{{ base_url }}status/in-progress.html\">In Progress</a></li>\n                    <li><a href=\"{{ base_url }}status/pending.html\">Pending</a></li>\n                </ul>\n            </li>\n            {% endif %}\n            {% if features.label_indexes and labels | length > 0 %}\n            <li class=\"dropdown\">\n                <span>Labels</span>\n                <ul class=\"dropdown-menu\">\n                    {% for label in labels %}\n                    <li><a href=\"{{ base_url }}labels/{{ label | slugify }}.html\">{{ label }}</a></li>\n                    {% endfor %}\n                </ul>\n            </li>\n            {% endif %}\n        </ul>\n    </nav>\n\n    <main class=\"site-content\">\n        {% block content %}{% endblock %}\n    </main>\n\n    <footer class=\"site-footer\">\n        <p>Generated by <a href=\"https://github.com/chant-dev/chant\">Chant</a></p>\n    </footer>\n</body>\n</html>\n";