Initial commit
This commit is contained in:
commit
304186774e
36 changed files with 4787 additions and 0 deletions
25
layouts/_default/baseof.html
Normal file
25
layouts/_default/baseof.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
|
||||
<head>
|
||||
{{ partial "head" }}
|
||||
|
||||
<title>{{ block "title" . }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
|
||||
|
||||
{{ with .Description }}
|
||||
<meta name="description" content="{{ . }}">
|
||||
{{ end }}
|
||||
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container sidebar-layout">
|
||||
<nav class="sidebar">{{ partial "sidebar" . }}</nav>
|
||||
<main>{{ block "main" . }}{{ end }}</main>
|
||||
</div>
|
||||
|
||||
{{ partial "footer" . }}
|
||||
</body>
|
||||
|
||||
</html>
|
11
layouts/_default/list.html
Normal file
11
layouts/_default/list.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{{ define "title"}} {{ .Title}} {{end}}
|
||||
|
||||
{{ define "main" }}
|
||||
|
||||
<ul id="posts">
|
||||
{{ range .Paginator.Pages.ByWeight }}
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
{{ end }}
|
15
layouts/_default/single.html
Normal file
15
layouts/_default/single.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
{{ define "title"}} {{ .Title}} {{end}}
|
||||
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
<aside>{{ .TableOfContents }}</aside>
|
||||
|
||||
<div class="e-content">
|
||||
{{ .Content }}
|
||||
|
||||
<p style="color: #687590;">
|
||||
Last updated {{ .Lastmod.Format "January 2, 2006" }}
|
||||
</p>
|
||||
</div>
|
||||
{{ end }}
|
5
layouts/partials/cta.html
Normal file
5
layouts/partials/cta.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<div class="cta-banner">
|
||||
<h4>Join the social media revolution</h4>
|
||||
<p>Mastodon is a free, decentralized platform with over a million people</p>
|
||||
<a href='https://joinmastodon.org/#getting-started'>Join Mastodon now!</a>
|
||||
</div>
|
14
layouts/partials/footer.html
Normal file
14
layouts/partials/footer.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<footer class="footer container">
|
||||
<a href="https://designbyhumans.com/shop/mastodon" class="panel" style="background-image: url(/shirt.png)">
|
||||
<div class="overlay">
|
||||
<h5>Merch</h5>
|
||||
<p>T-shirts and stickers</p>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<p class="legal" style="float: right; text-align: right">
|
||||
<a href='https://joinmastodon.org'>Join Mastodon</a> · <a href='https://bridge.joinmastodon.org'>Find Twitter friends</a> · <a href='https://mastodon.social/@Mastodon' target='_blank'><i class='fab fa-mastodon'></i></a> · <a href='https://twitter.com/MastodonProject' rel='nofollow' target='_blank'><i class='fab fa-twitter'></i></a> · <a href='https://facebook.com/joinmastodon' rel='nofollow' target='_blank'><i class='fab fa-facebook'></i></a>
|
||||
</p>
|
||||
|
||||
<p class="legal"><a href='https://source.joinmastodon.org/mastodon/docs/tree/master/content/{{.Lang}}/{{.File.Path}}'>View source</a> · <a href='https://creativecommons.org/licenses/by-sa/4.0/'>CC BY-SA 4.0</a> · <a href='https://joinmastodon.org/imprint'>Imprint</a></p>
|
||||
</footer>
|
8
layouts/partials/head.html
Normal file
8
layouts/partials/head.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{{ .Hugo.Generator }}
|
||||
|
||||
<meta charset='utf-8'>
|
||||
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
||||
|
||||
<link rel="shortcut icon" type="image/png" href="/favicon.ico"/>
|
||||
<link rel='stylesheet' href='/style.css'>
|
||||
<link rel='stylesheet' href='/fontawesome.css'>
|
36
layouts/partials/sidebar.html
Normal file
36
layouts/partials/sidebar.html
Normal file
|
@ -0,0 +1,36 @@
|
|||
<a class='brand' href='/'>
|
||||
<img class='link-logo' src='/brand.svg' alt='Mastodon' />
|
||||
</a>
|
||||
|
||||
<div class='mascot'>
|
||||
<img src='/elephant.svg' alt='' role='presentational' />
|
||||
</div>
|
||||
|
||||
<ul>
|
||||
{{ $currentPage := . }}
|
||||
{{ range .Site.Menus.docs }}
|
||||
{{ if .HasChildren }}
|
||||
<li>
|
||||
<a href="#" class="{{ if $currentPage.HasMenuCurrent "docs" . }}active{{ end }}">
|
||||
{{ .Pre }}
|
||||
<span>{{ .Name }}</span>
|
||||
</a>
|
||||
|
||||
<ul class="sub-menu">
|
||||
{{ range .Children }}
|
||||
<li>
|
||||
<a href="{{ .URL }}" class="{{ if $currentPage.IsMenuCurrent "docs" . }}active{{ end }}">{{ .Name }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</li>
|
||||
{{ else }}
|
||||
<li>
|
||||
<a href="{{ .URL }}">
|
||||
{{ .Pre }}
|
||||
<span>{{ .Name }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
Loading…
Add table
Add a link
Reference in a new issue