Files
docmd-io--docmd/packages/ui/templates/partials/footer.ejs
T
wehub-resource-sync 6db8fca185
docmd CI verification / verify (push) Failing after 0s
chore: import upstream snapshot with attribution
2026-07-13 12:31:55 +08:00

59 lines
3.8 KiB
Plaintext

<%# ---------------------------------------------------------------
# docmd : the zero-config documentation engine.
# @website https://docmd.io
# [docmd-source] - Please do not remove this header.
# ---------------------------------------------------------------
%>
<% if (footerConfig?.style === 'complete') { %>
<footer class="footer-complete">
<div class="footer-complete-top">
<div class="footer-brand">
<% if (logo && logo.light && logo.dark) { %>
<a href="<%= logo.href || relativePathToRoot %>" class="logo-link">
<img src="<%= relativePathToRoot %><%= logo.light.startsWith('/') ? logo.light.substring(1) : logo.light %>" alt="<%= logo.alt || siteTitle %>" class="logo-light">
<img src="<%= relativePathToRoot %><%= logo.dark.startsWith('/') ? logo.dark.substring(1) : logo.dark %>" alt="<%= logo.alt || siteTitle %>" class="logo-dark">
</a>
<% } else { %>
<span class="footer-title"><%= siteTitle %></span>
<% } %>
<% if (footerConfig.description) { %>
<p class="footer-desc"><%= footerConfig.description %></p>
<% } %>
</div>
<% if (footerConfig.columns && footerConfig.columns.length > 0) { %>
<div class="footer-columns">
<% footerConfig.columns.forEach(col => { %>
<div class="footer-column">
<span class="footer-column-title"><%= typeof t === 'function' ? t(col.title) : col.title %></span>
<ul>
<% col.links.forEach(link => { %>
<li><a href="<%= link.external ? link.url : buildRelativeUrl(link.url) %>" <%= link.external ? 'target="_blank" rel="noopener"' : '' %>><%= typeof t === 'function' ? t(link.text) : link.text %></a></li>
<% }) %>
</ul>
</div>
<% }) %>
</div>
<% } %>
</div>
<div class="footer-complete-bottom">
<div class="user-footer"><%- footerHtml || (footerConfig.copyright ? footerConfig.copyright : '') %></div>
<% if (footerConfig.branding !== false) { %>
<div class="branding-footer">
<%= typeof t === 'function' ? t('builtWith') : 'Built with' %> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"></path><path d="M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66"></path><path d="m18 15-2-2"></path><path d="m15 18-2-2"></path></svg> <a href="https://docmd.io" target="_blank" rel="noopener">docmd.</a>
</div>
<% } %>
</div>
</footer>
<% } else { %>
<footer class="page-footer">
<div class="footer-content">
<div class="user-footer"><%- footerHtml || (footerConfig?.copyright ? footerConfig.copyright : '') %></div>
<% if (footerConfig?.branding !== false) { %>
<div class="branding-footer">
<%= typeof t === 'function' ? t('builtWith') : 'Built with' %> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"></path><path d="M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66"></path><path d="m18 15-2-2"></path><path d="m15 18-2-2"></path></svg> <a href="https://docmd.io" target="_blank" rel="noopener">docmd.</a>
</div>
<% } %>
</div>
</footer>
<% } %>