technicalsuwako.moe/site.tmpl

91 行
4.3 KiB
Cheetah
Raw Blame 履歴

このファイルには曖昧(ambiguous)なUnicode文字が含まれています

このファイルには、他の文字と見間違える可能性があるUnicode文字が含まれています。 それが意図的なものと考えられる場合は、この警告を無視して構いません。 それらの文字を表示するにはエスケープボタンを使用します。

{{ define "header" }}<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<meta name="author" content="{{ html .Site.Other.Author }}" />
<meta name="description" content="デジタル自主のロリ神様" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="alternate" type="application/atom+xml" title="{{ html .Site.Other.Title }} feed" href="/blog.atom" />
<title>{{ .Site.Other.Title }}{{ if .Title }}: {{ .Title }}{{ end }}</title>
<link rel="stylesheet" type="text/css" href="/static/style.css" />
</head>
<body>
<div id="jswarning">JavaScriptが有効です。安全・安心の為、JavaScriptを無効にしてください。</div>
<script>document.getElementById('jswarning').style.display = 'block';</script>
<div class="container">
<img src="/static/Eqjk_WgVQAE2psn-new.jpeg" class="header-img" alt="ヘッダー" />
{{ end }}
{{ define "footer" }} <hr />
<a href="https://github.com/piranha/gostatic">gostatic</a>で創作しました。
<a href="https://git.076.ne.jp/TechnicalSuwako/StaticSuwako">ページの<span class="icon git-icon">Git</span>リポジトリ</a>
<div class="emblems">
<a href="https://validator.w3.org/check?uri=https%3A%2F%2Ftechnicalsuwako.moe%2F">
<img src="/static/valid-xhtml11.png" alt="Valid XHTML 1.1" height="31" width="88" />
</a>
<a href="https://jigsaw.w3.org/css-validator/validator?lang=ja&amp;profile=none&amp;uri=https%3A%2F%2Ftechnicalsuwako.moe%2F&amp;usermedium=all&amp;vextwarning=&amp;warning=1">
<img style="border:0;width:88px;height:31px" src="/static/valid-css.png" alt="正当なCSSです" />
</a>
<a href="https://anybrowser.org/campaign/images/button_enhanced.gif">
<img style="border:0;width:88px;height:31px" src="/static/any1.gif" alt="どのブラウザでも表示出来ます!" />
</a>
<a href="http://www.catb.org/hacker-emblem/">
<img src="/static/hacker.png" alt="hacker emblem" />
</a>
</div>
</div>
</body>
</html>
{{ end }}
{{ define "page" }}{{ template "header" . }} <div class="header-links">
<a href="/">トップ</a>
<a href="/about/">自己紹介</a>
<a href="/contact/">連絡先</a>
<a href="/skill/">スキル</a>
<a href="/portfolio/">ポートフォリオ</a>
<a href="/service/">サービス</a>
<a href="/webring/">リング</a>
<a href="/i2pabout/">I2Pについて</a>
</div>
<div class="header-links">
<a href="/blog.atom"><span class="icon atom-icon">Atom</span>で登録</a>
<a href="https://social.076.ne.jp/TechnicalSuwako"><span class="icon mastodon-icon">Mastodon</span> / <span class="icon pleroma-icon">Pleroma</span>でフォロー</a>
<a href="https://video.076.ne.jp/c/technicalsuwako"><span class="icon peertube-icon">PeerTube</span>で登録</a>
<a href="https://technicalsuwako.moe/"><span class="icon clearnet-icon">一般ネット</span></a>
<a href="http://6qiatzlijtqo6giwvuhex5zgg3czzwrq5g6yick3stnn4xekw26zf7qd.onion/"><span class="icon tor-icon">Tor</span></a>
<a href="http://technicalsuwako.i2p/"><span class="icon i2p-icon">I2P</span></a>
</div>
<div>
支援♡:
<a href="/support/monero/"><span class="icon monero-icon">Monero</span></a>
</div>
<hr />
{{ replace "<code>" "<code lang=\"\">" ( replace "<pre style=\"background-color:#f8f8f8;overflow-x: auto\">" "<pre>" .Content ) }}{{ template "footer" . }}{{ end }}
{{ define "date" }}{{ .Format "2006年01月02日" }}{{ end }}
{{ define "pagelist" }}{{ range . }} <div class="mb5{{ if .Date.Year | changed "year" }} mt15{{ end }}">
<div>{{ template "date" .Date }}</div>
<div><a href="/{{ .Url }}">{{ .Title }}</a></div>
</div>
{{ end }}{{ end }}
{{ define "post" }}<div class="header">
<h1>{{ .Title }}</h1>
<a href="/">トップページに戻る</a>
<div class="info">
{{ .Other.Author }}、
{{ template "date" .Date }} &mdash;
{{ range $i, $t := .Tags }}{{ if $i }},{{ end }}
<a href="/tags/{{ $t }}/">{{ $t }}</a>{{ end }}
</div>
</div>
<hr />
<div class="section">
{{ .Content }} </div>
{{ end }}
{{ define "tag" }} <h1>{{ .Title }} のタグが付いているページ</h1>
{{ template "pagelist" .Site.Pages.WithTag .Title }}{{ end }}