forked from jamestthompson3/serverless-micropub-hugo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (47 loc) · 1.35 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html lang="en-US" prefix="og:http://ogp.me/ns#">
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<style>
code {
background-color: #c4c4c4;
padding: 3px;
border-radius: 3px;
}
li {
margin: 3px 0px;
}
</style>
<meta name="robots" content="index, follow" />
<title>Micropub</title>
</head>
<body>
<h1>Serverless micropub</h1>
<p>Provides a serverless function for micropub -> hugo markdown</p>
<h2>Getting Started</h2>
<p>
You can clone the
<a href="https://github.com/jamestthompson3/micropub-serverless-hugo"
>repo</a
>
and adjust the following settings in <code>config.json</code>
</p>
<ul>
<li><code>ghUser</code> your github username</li>
<li><code>sites</code> the site specific configuration</li>
</ul>
<p>
<strong>NOTE: </strong>Your micropub endpoint will be available at
<code>/api/[site]</code>. This means that if you take the configuration as
is, the URL will be <code>/api/main</code>
</p>
<p>
You will also need to add a personal access token as an environment
variable named <code>GH_TOKEN</code>
</p>
</body>
</html>