mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 11:46:41 +02:00
Add all files
This commit is contained in:
11
layouts/404.html
Normal file
11
layouts/404.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{{ partial "header.html" . }}
|
||||
<div class="section main">
|
||||
<div class="container f04">
|
||||
<div class="content">
|
||||
<div class="num">404</div>
|
||||
<div class="detail">Sorry, this page does not exist.</div>
|
||||
<div class="suggestion"><a href="/">Visit home page</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
13
layouts/_default/list.html
Normal file
13
layouts/_default/list.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{{ partial "header.html" . }}
|
||||
<div class="section main">
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
{{ partial "page-heading" . }}
|
||||
{{ range .Data.Pages.ByPublishDate }}
|
||||
{{ partial "li.html" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
|
9
layouts/_default/single.html
Normal file
9
layouts/_default/single.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{{ partial "header.html" . }}
|
||||
<div class="section main">
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
12
layouts/fixed/single.html
Normal file
12
layouts/fixed/single.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{{ partial "header.html" . }}
|
||||
<div class="section main">
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
{{ partial "page-heading.html" . }}
|
||||
<div class="markdown">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
15
layouts/index.html
Normal file
15
layouts/index.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{{ partial "header.html" . }}
|
||||
<div class="section main">
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
<div class="page-heading">Posts</div>
|
||||
{{ range .Data.Pages.ByPublishDate }}
|
||||
{{ if eq .Section "posts" }}
|
||||
{{ partial "li.html" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
|
4
layouts/partials/footer.html
Normal file
4
layouts/partials/footer.html
Normal file
@@ -0,0 +1,4 @@
|
||||
{{ partial "footer_scripts" . }}
|
||||
|
||||
</body>
|
||||
</html>
|
13
layouts/partials/footer_scripts.html
Normal file
13
layouts/partials/footer_scripts.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<!-- Google Analytics -->
|
||||
{{ if .Site.Params.GATracker }}
|
||||
<script type="text/javascript">
|
||||
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
||||
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
try {
|
||||
var pageTracker = _gat._getTracker("{{ .Site.Params.GATracker }}");
|
||||
pageTracker._trackPageview();
|
||||
} catch(err) {}
|
||||
</script>
|
||||
{{ end }}
|
14
layouts/partials/head.html
Normal file
14
layouts/partials/head.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<head>
|
||||
{{ partial "meta.html" . }}
|
||||
<base href="{{ .Site.BaseUrl }}">
|
||||
<title>
|
||||
{{ $URL := "/" }}
|
||||
{{ if eq $URL "/" }}
|
||||
{{ .Site.Title }}
|
||||
{{ else }}
|
||||
{{ .Title }} · {{ .Site.Title }}
|
||||
{{ end }}
|
||||
</title>
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
{{ partial "head_includes.html" . }}
|
||||
</head>
|
18
layouts/partials/head_includes.html
Normal file
18
layouts/partials/head_includes.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<!-- CSS -->
|
||||
<link rel="stylesheet" href="/css/reset.css">
|
||||
<link rel="stylesheet" href="/css/pygments.css">
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
<link rel="stylesheet" href="/css/navlist.css">
|
||||
|
||||
<!-- Icon -->
|
||||
<link rel="shortcut icon"
|
||||
{{ if .Site.Params.FaviconFile }}
|
||||
href="/img/{{ .Site.Params.FaviconFile }}"
|
||||
{{ else }}
|
||||
href="/img/favicon.ico"
|
||||
{{ end }}
|
||||
>
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
66
layouts/partials/header.html
Normal file
66
layouts/partials/header.html
Normal file
@@ -0,0 +1,66 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
<body lang="{{ .Site.Params.Lang }}">
|
||||
|
||||
{{ $url := replace .Permalink ( printf "%s" .Site.BaseUrl) "" }}
|
||||
|
||||
<div class="section header">
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
<nav>
|
||||
<ul>
|
||||
<a href="/posts"><li>posts</li></a>
|
||||
<a href="/about"><li>about</li></a>
|
||||
<a href="/code"><li>code</li></a>
|
||||
</ul>
|
||||
</nav>
|
||||
<a href="/"><div class="name">{{ .Site.Params.Author }}</div></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section icons">
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
|
||||
{{ if .Site.Params.GitHub }}
|
||||
<a href="{{ .Site.Params.GitHub }}" target="_blank">
|
||||
<i class="icon ion-social-github"></i>
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.Twitter }}
|
||||
<a href="{{ .Site.Params.Twitter }}" target="_blank">
|
||||
<i class="icon ion-social-twitter"></i>
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.LinkedIn }}
|
||||
<a href="{{ .Site.Params.LinkedIn }}" target="_blank">
|
||||
<i class="icon ion-social-linkedin"></i>
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.Facebook }}
|
||||
<a href="{{ .Site.Params.Facebook }}" target="_blank">
|
||||
<i class="icon ion-social-facebook larger"></i>
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.SoundCloud }}
|
||||
<a href="{{ .Site.Params.SoundCloud }}" target="_blank">
|
||||
<i class="icon ion-ios-musical-notes larger"></i>
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.Email }}
|
||||
<a href="mailto:{{ .Site.Params.Email }}">
|
||||
<i class="icon ion-ios-email larger"></i>
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
4
layouts/partials/li.html
Normal file
4
layouts/partials/li.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<li class="post-item">
|
||||
<div class="meta">{{ .Date.Format .Site.Params.DateForm }}</div>
|
||||
<a href="{{ .Permalink }}"><div>{{ .Title }}</div></a>
|
||||
</li>
|
6
layouts/partials/meta.html
Normal file
6
layouts/partials/meta.html
Normal file
@@ -0,0 +1,6 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||
<meta name="HandheldFriendly" content="True">
|
||||
<meta name="MobileOptimized" content="320">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
||||
{{ if .Site.Params.Description }}<meta name="description" content="{{ .Site.Params.Description }}">{{ end }}
|
8
layouts/partials/page-heading.html
Normal file
8
layouts/partials/page-heading.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<div class="page-heading">
|
||||
{{ if .Params.heading }}
|
||||
{{ .Params.heading }}
|
||||
{{ else }}
|
||||
{{ .Title }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
30
layouts/posts/single.html
Normal file
30
layouts/posts/single.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
<body lang="{{ .Site.Params.Lang }}">
|
||||
|
||||
{{ $url := replace .Permalink ( printf "%s" .Site.BaseUrl) "" }}
|
||||
|
||||
<div class="section main post">
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
<div class="front-matter">
|
||||
<a href="{{ .Permalink }}">{{ partial "page-heading.html" . }}</a>
|
||||
<div class="meta">
|
||||
<div class="date">{{ .Date.Format .Site.Params.DateForm }}</div>
|
||||
<div class="word-count"><div class="middot"></div>{{ if eq 1 .FuzzyWordCount }}{{ .FuzzyWordCount }} word{{ else }}{{ .FuzzyWordCount }} words{{ end }}</div>
|
||||
<div class="reading-time"><div class="middot"></div>{{ if eq 1 .ReadingTime }}{{ .ReadingTime }} minute read{{ else }}{{ .ReadingTime }} minutes read{{ end }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="markdown">
|
||||
{{ .Content }}
|
||||
<br>
|
||||
<p><a href="/">Back home</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ partial "footer.html" . }}
|
Reference in New Issue
Block a user