mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2025-10-09 10:11:14 +00:00
🐼 first commit
This commit is contained in:
commit
8c7ec3df80
27 changed files with 2823 additions and 0 deletions
8
layouts/404.html
Normal file
8
layouts/404.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
{{ define "main"}}
|
||||
<div>
|
||||
<h1>404 page not found.</h1>
|
||||
<p><a href="/">Go Home</p>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
12
layouts/_default/baseof.html
Normal file
12
layouts/_default/baseof.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<div class="main">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
</html>
|
||||
|
14
layouts/_default/list.html
Normal file
14
layouts/_default/list.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
{{ define "main"}}
|
||||
<div>
|
||||
{{ range $index, $value := .Pages.GroupByDate "January, 2006" }}
|
||||
{{ if (ne $index 0) }}
|
||||
<hr class="separator">
|
||||
{{ end }}
|
||||
<p class="date">{{ .Key }}</p>
|
||||
{{ range .Pages }}
|
||||
<p><a href="{{ .Permalink }}">{{ .Title }}</a></p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
10
layouts/_default/single.html
Normal file
10
layouts/_default/single.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
{{ define "main"}}
|
||||
<div>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<p class="date">{{ .Date.Format "January 2, 2006" }}</p>
|
||||
<div class="markdown-body">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
27
layouts/index.html
Normal file
27
layouts/index.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
<div class="profile">
|
||||
<div class="profile-body">
|
||||
<div class="avatar">
|
||||
<img class="avatar-mask" src="{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}">
|
||||
<img src="{{ .Site.BaseURL }}img/avatar-border.svg">
|
||||
</div>
|
||||
<h1 class="author">{{ .Site.Params.Author }}</h1>
|
||||
<p>
|
||||
{{ .Site.Params.discription }}
|
||||
</p>
|
||||
<nav>
|
||||
<ul>
|
||||
{{ range .Site.Params.Nav }}
|
||||
<li><a href="{{ .url }}">{{ .name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
</html>
|
||||
|
11
layouts/partials/footer.html
Normal file
11
layouts/partials/footer.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<footer>
|
||||
<p>
|
||||
© {{ .Site.Params.publicationYear }} {{ .Site.Params.Author }}.
|
||||
Powered by <a href="https://gohugo.io/" target="_blank">Hugo</a>
|
||||
using the <a href="https://github.com/koirand/pulp/">pulp</a> theme.
|
||||
</p>
|
||||
</footer>
|
||||
<script src="{{ .Site.BaseURL }}js/main.js"></script>
|
||||
{{- range .Site.Params.custom_js -}}
|
||||
<script src="{{ $.Site.BaseURL }}{{ . }}"></script>
|
||||
{{ end }}
|
20
layouts/partials/head.html
Normal file
20
layouts/partials/head.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="author" content="{{ .Site.Author }}" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{{ .Site.BaseURL }}img/favicon.ico">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/markdown.css">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/syntax-highlight.css">
|
||||
{{ range .Site.Params.custom_css }}
|
||||
<link rel="stylesheet" href="{{ $.Site.BaseURL }}{{ . }}">
|
||||
{{ end }}
|
||||
<title>
|
||||
{{ if eq .Title .Site.Title }}
|
||||
{{ .Site.Title }}
|
||||
{{ else }}
|
||||
{{ .Title }} - {{ .Site.Title }}
|
||||
{{ end }}
|
||||
</title>
|
||||
</head>
|
6
layouts/partials/header.html
Normal file
6
layouts/partials/header.html
Normal file
|
@ -0,0 +1,6 @@
|
|||
<header>
|
||||
<div class="avatar">
|
||||
<img class="avatar-mask" src="{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}">
|
||||
<a href="/"><img src="{{ .Site.BaseURL }}img/avatar-border.svg"></a>
|
||||
</div>
|
||||
</header>
|
Loading…
Add table
Add a link
Reference in a new issue