<% let title = page.title if (is_archive()) { title = titlecase(config.archive_dir) if (is_month()) { title += ': ' + page.year + '/' + page.month } else if (is_year()) { title += ': ' + page.year } else if (page.current_url) { const pageNum = Number(page.current_url.charAt(page.current_url.length - 2)) if (Number.isInteger(pageNum)) title += ': Page ' + pageNum } } else if (is_category()) { title = __('category') + ': ' + page.category } else if (is_tag()) { title = __('tag') + ': ' + page.tag } %> <% if (title) { %><%= title %> | <% } %><%= config.title %> <%/* Add Open Graph meta tags for easier sharing on social networking sites */%> <%/* Modified from original source for compatibility with my blog */%> <%- openGraph() %> <% if (theme.rss) { %> <% } %> <%/* Favicon */%> <%/* Fallback function for SRI */%> <%- addJs({ src: '/js/sri.min.js', 'async': true }) %> <%- addCss('/css/typing.css') %> <% if (theme.icons) { %> <%- addCss({ href: '/libs/fork-awesome/1.1.7/css/fork-awesome.min.css', 'data-sri-fallback': '/forkawesome/css/fork-awesome.min.css', integrity: 'sha384-mByhW6NjnxyShh67P9+fepUvYSd7Uz/qV6e2u4kA2Fi4ZkjXxIP2mRkyK9dwK24W', crossorigin: 'anonymous' }) %> <% } %>