wiki/_layouts/default.html

99 lines
4.0 KiB
HTML
Raw Permalink Normal View History

2017-12-02 02:04:52 -08:00
---
layout: compress
---
2018-02-28 07:26:11 -08:00
{% comment %}サイドメニューのMarkdownを読み込み、HTMLに変換{% endcomment %}
2017-12-02 02:04:52 -08:00
{% capture menu_markdown %}{% include menu.md %}{% endcapture %}
2018-08-12 00:29:14 -07:00
{% assign menu = menu_markdown | markdownify %}
2017-12-02 02:04:52 -08:00
2018-02-28 07:26:11 -08:00
{% comment %}SCSSを読み込み、CSSに変換{% endcomment %}
2017-12-02 02:04:52 -08:00
{% capture style_scss %}{% include style.scss %}{{ page.custom-style }}{% endcapture %}
2018-08-12 00:29:14 -07:00
{% assign style = style_scss | scssify %}
2017-12-02 02:04:52 -08:00
2018-03-21 23:12:32 -07:00
{% comment %}アイコンのURL{% endcomment %}
{% capture icon_url %}{{ site.baseurl }}/{{ site.wiki.img_dir }}/icon.png{% endcapture %}
2018-03-21 23:12:32 -07:00
{% capture amp-boilerplate %}
body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}
{% endcapture %}
{% capture amp-boilerplate-noscript %}
body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}
{% endcapture %}
2017-12-02 02:04:52 -08:00
<!doctype html>
<html amp lang="ja">
<head>
<meta charset="utf-8">
2018-03-21 23:12:32 -07:00
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
2018-04-18 02:00:00 -07:00
<meta name="theme-color" content="{{ site.wiki.theme_color }}">
2018-03-21 23:12:32 -07:00
<link rel="shortcut icon" href="{{ icon_url }}">
<link rel="apple-touch-icon" href="{{ icon_url }}">
<link rel="canonical" href="{{ site.baseurl }}{{ page.url }}">
2019-03-28 01:47:31 -07:00
{% if site.google_site_verification %}
<meta name="google-site-verification" content="{{ site.google_site_verification }}">
{% endif %}
2018-03-21 23:12:32 -07:00
2019-03-28 22:28:11 -07:00
<title>{{ page.title }} | {{ site.title }}</title>
2017-12-02 02:04:52 -08:00
<script async src="https://cdn.ampproject.org/v0.js"></script>
2018-03-21 23:12:32 -07:00
<style amp-custom>{{ style }}</style>
<style amp-boilerplate>{{ amp-boilerplate }}</style>
<noscript>
<style amp-boilerplate>{{ amp-boilerplate-noscript }}</style>
</noscript>
2017-12-02 02:04:52 -08:00
{{ page.custom-head }}
</head>
<body>
<div class="container">
<header class="container_header header">
<a class="header-title" href="{{ site.baseurl }}/index.html">
<amp-img class="header-icon" height="2em" width="2em"
alt="" src="{{ site.baseurl }}/{{ site.wiki.img_dir }}/icon.svg">
2017-12-02 02:04:52 -08:00
</amp-img>
2018-08-12 00:29:14 -07:00
{{ site.title }}
2017-12-02 02:04:52 -08:00
</a>
2018-08-12 00:29:14 -07:00
<a class="header-menu" href="#footer-menu">
<amp-img class="header-icon" height="2em" width="2em"
alt="メニュー" src="{{ site.baseurl }}/{{ site.wiki.img_dir }}/menu.svg">
2017-12-02 02:04:52 -08:00
</amp-img>
2018-08-12 00:29:14 -07:00
</a>
2017-12-02 02:04:52 -08:00
</header>
<nav class="container_menu article menu">
<h1 class="title">メニュー</h1>
<div class="body">{{ menu }}</div>
</nav>
<article class="container_main article main">
2017-12-02 02:04:52 -08:00
<h1 class="title">
{{ page.title }}
<a title="GitHubで編集" href="{{ site.github.repository_url }}/edit/gh-pages/{{ page.path }}">
<amp-img class="edit" height="0.75em" width="0.75em" media="{{ site.media-desktop }}"
alt="編集" src="{{ site.baseurl }}/{{ site.wiki.img_dir }}/edit.svg">
2017-12-02 02:04:52 -08:00
</amp-img>
</a>
</h1>
2019-03-27 03:55:10 -07:00
<div class="body">{{ content }}</div>
2019-03-27 03:55:10 -07:00
{% if page.date %}
<aside class="main-date">
<a title="変更履歴" href="{{ site.github.repository_url }}/commits/gh-pages/{{ page.path }}">
最終更新日: <time>{{ page.date }}</time>
</a>
</aside>
2019-03-27 03:55:10 -07:00
{% endif %}
</article>
2017-12-02 02:04:52 -08:00
<footer class="container_footer">
2018-08-12 00:29:14 -07:00
<div id="footer-menu" class="menu">{{ menu }}</div>
<span>© {{ site.time | date: "%Y" }} <a href="https://minetest-jp.github.io">Minetest-JP Team</a></span>
2017-12-02 02:04:52 -08:00
</footer>
</div>
</body>
</html>