Skip to content

Commit 51c79e9

Browse files
committed
Improve docs template, and index mobile support
1 parent 1a60660 commit 51c79e9

File tree

3 files changed

+30
-4
lines changed

3 files changed

+30
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Changelog
22

3+
* 0.7.2
4+
- Improve docs template, and index mobile support
35
* 0.7.1
46
- Deploy documentation for each tagged release
57
- HTTPS for documentation site

docs/bin/make-index-page.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,30 @@ echo "
2525
<head>
2626
<meta charset="UTF-8">
2727
<title>Hyper</title>
28+
<meta name="keywords" content="http web purescript middleware routing type-safe">
29+
<meta name="description" content="Hyper is an experimental middleware architecture for HTTP servers written in PureScript.">
30+
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
31+
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
32+
<meta name="apple-mobile-web-app-capable" content="yes">
33+
<link rel="shortcut icon" href="static/favicon.png">
34+
35+
<meta name="twitter:card" content="summary">
36+
<meta name="twitter:creator" content="owickstrom">
37+
<meta name="twitter:title" content="Hyper">
38+
<meta name="twitter:url" content="http://hyper.wickstrom.tech">
39+
<meta name="twitter:description" content="Hyper is an experimental middleware architecture for HTTP servers written in PureScript.">
40+
<meta name="twitter:image:src" content="http://hyper.wickstrom.tech/static/icon-large.png">
41+
42+
<meta property="og:type" content="article" />
43+
<meta property="og:article:author" content="Oskar Wickström" />
44+
<meta property="og:article:section" content="Technology" />
45+
<meta property="og:article:keyword" content="http web purescript middleware routing type-safe" />
46+
<meta property="og:title" content="Hyper" />
47+
<meta property="og:description" content="Hyper is an experimental middleware architecture for HTTP servers written in PureScript.">
48+
<meta property="og:type" content="article" />
49+
<meta property="og:url" content="http://hyper.wickstrom.tech" />
50+
<meta property="og:image" content="http://hyper.wickstrom.tech/static/icon-large.png" />
51+
2852
<link rel="stylesheet" href="static/style.css">
2953
<link rel="stylesheet" href="static/bootstrap/css/bootstrap.min.css">
3054
<link rel="stylesheet" href="static/overrides.css">

docs/src/theme/layout.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{% if pagename == 'index' %}
99
{% set title = 'Type-safe, statically checked composition of HTTP servers' %}
1010
{% endif %}
11-
<title>{{ title|striptags|e }} &mdash; {{ shorttitle }}</title>
11+
<title>{{ title|striptags|e }} &mdash; {{ shorttitle }} {{ version }}</title>
1212
{% endblock %}
1313

1414
{% block extrahead %}
@@ -21,7 +21,7 @@
2121

2222
<meta name="twitter:card" content="summary">
2323
<meta name="twitter:creator" content="owickstrom">
24-
<meta name="twitter:title" content="{{ title|striptags|e }} &mdash; {{ shorttitle }}">
24+
<meta name="twitter:title" content="{{ title|striptags|e }} &mdash; {{ shorttitle }} {{ version }}">
2525
<meta name="twitter:url" content="http://hyper.wickstrom.tech">
2626
<meta name="twitter:description" content="Hyper is an experimental middleware architecture for HTTP servers written in PureScript.">
2727
<meta name="twitter:image:src" content="http://hyper.wickstrom.tech/_static/icon-large.png">
@@ -30,7 +30,7 @@
3030
<meta property="og:article:author" content="Oskar Wickström" />
3131
<meta property="og:article:section" content="Technology" />
3232
<meta property="og:article:keyword" content="http web purescript middleware routing type-safe" />
33-
<meta property="og:title" content="{{ title|striptags|e }} &mdash; {{ shorttitle }}" />
33+
<meta property="og:title" content="{{ title|striptags|e }} &mdash; {{ shorttitle }} {{ version }}" />
3434
<meta property="og:description" content="Hyper is an experimental middleware architecture for HTTP servers written in PureScript.">
3535
<meta property="og:type" content="article" />
3636
<meta property="og:url" content="http://hyper.wickstrom.tech" />
@@ -144,7 +144,7 @@ <h3>More Resources</h3>
144144
{%- block footer %}
145145
<footer class="footer" role="contentinfo">
146146
<div class="footer-wrapper text-muted">
147-
<span class="version">{{ version }} &mdash;</span>
147+
<span class="version">Hyper {{ version }} &mdash;</span>
148148
{%- if show_copyright %}
149149
{%- if hasdoc('copyright') %}
150150
{% trans path=pathto('copyright'), copyright=copyright|e %}&copy; <a href="{{ path }}">Copyright</a> {{ copyright }}{% endtrans %} &mdash;

0 commit comments

Comments
 (0)