docs: rename article slug
This commit is contained in:
2
themes/uio/layout/_partial/footer.ejs
Executable file
2
themes/uio/layout/_partial/footer.ejs
Executable file
@@ -0,0 +1,2 @@
|
||||
<!-- Umami Analytics -->
|
||||
<script async defer data-website-id="<%- config.umami.id %>" src="https://<%- config.umami.host %>/umami.js"></script>
|
55
themes/uio/layout/_partial/head.ejs
Executable file
55
themes/uio/layout/_partial/head.ejs
Executable file
@@ -0,0 +1,55 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<!-- Icon -->
|
||||
<link rel="shortcut icon" href="<%- url_for('images/favicon.ico') %>" />
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="180x180"
|
||||
href="<%- url_for('images/apple-touch-icon.png') %>"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
href="<%- url_for('images/favicon-32x32.png') %>"
|
||||
sizes="32x32"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
href="<%- url_for('images/favicon-16x16.png') %>"
|
||||
sizes="16x16"
|
||||
/>
|
||||
<link
|
||||
rel="mask-icon"
|
||||
href="<%- url_for('images/safari-pinned-tab.svg') %>"
|
||||
color="#5bbad5"
|
||||
/>
|
||||
|
||||
<!-- Metadata -->
|
||||
<%
|
||||
const pageUrl = `${config.url}/${page.canonical_path.replace('index.html', '')}`
|
||||
const title = page.title || config.title
|
||||
const description = strip_html(page.excerpt) || config.description
|
||||
%>
|
||||
<title><%- title %></title>
|
||||
<link rel="canonical" href="<%- pageUrl %>">
|
||||
<meta name="description" content="<%- description %>">
|
||||
<meta property="og:title" content="<%- title %>">
|
||||
<meta property="og:description" content="<%- description %>">
|
||||
<meta property="og:url" content="<%- pageUrl %>">
|
||||
<meta property="og:site_name" content="<%- config.title %>">
|
||||
<meta property="og:locale" content="<%- config.language %>">
|
||||
<meta property="twitter:title" content="<%- title %>">
|
||||
<meta name="twitter:site" content="@<%- config.twitter.username %>">
|
||||
<meta name="twitter:card" content="summary">
|
||||
|
||||
<!-- Styles -->
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css"
|
||||
/>
|
||||
<%- css('css/index') %>
|
||||
</head>
|
24
themes/uio/layout/_partial/header.ejs
Executable file
24
themes/uio/layout/_partial/header.ejs
Executable file
@@ -0,0 +1,24 @@
|
||||
<header class="header">
|
||||
<a class="logo" href="<%- config.root %>"
|
||||
><img src="<%- url_for('/images/logo.svg') %>" style="height: 50px"
|
||||
/></a>
|
||||
<nav>
|
||||
<ul class="menu">
|
||||
<li class="menu__item">
|
||||
<a href="/me">Me</a>
|
||||
</li>
|
||||
<li class="menu__item">
|
||||
<a href="https://github.com/<%- config.github.username %>">GitHub</a>
|
||||
</li>
|
||||
<li class="menu__item">
|
||||
<a href="https://twitter.com/<%- config.twitter.username %>">Twitter</a>
|
||||
</li>
|
||||
<li class="menu__item">
|
||||
<a href="/wallpaper">Wallpaper</a>
|
||||
</li>
|
||||
<li class="menu__item">
|
||||
<a href="/pay">Pay</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
29
themes/uio/layout/_partial/paginator.ejs
Executable file
29
themes/uio/layout/_partial/paginator.ejs
Executable file
@@ -0,0 +1,29 @@
|
||||
<% if (page.prev || page.next) { %>
|
||||
<nav class="page-nav">
|
||||
<% if (page.prev) { %>
|
||||
<a class="page-prev" href="<%- url_for(page.prev_link) %>">
|
||||
<
|
||||
<!-- <span>
|
||||
<% if (page.prev.title) { %>
|
||||
<%= page.prev.title %>
|
||||
<% } else { %>
|
||||
(no title)
|
||||
<% } %>
|
||||
</span> -->
|
||||
</a>
|
||||
<% } %>
|
||||
<div class="page-number date"><%= page.current %> / <%= Math.ceil(site.posts.length / config.per_page) %></div>
|
||||
<% if (page.next) { %>
|
||||
<a class="page-next" href="<%- url_for(page.next_link) %>">
|
||||
>
|
||||
<!-- <span>
|
||||
<% if (page.next.title) { %>
|
||||
<%= page.next.title %>
|
||||
<% } else { %>
|
||||
(no title)
|
||||
<% } %>
|
||||
</span> -->
|
||||
</a>
|
||||
<% } %>
|
||||
</nav>
|
||||
<% } %>
|
Reference in New Issue
Block a user