Initial commit
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
/public/
|
||||||
|
/resources/_gen/
|
||||||
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "themes/hello-friend-ng"]
|
||||||
|
path = themes/hello-friend-ng
|
||||||
|
url = https://github.com/rhazdon/hugo-theme-hello-friend-ng.git
|
||||||
6
archetypes/default.md
Normal file
6
archetypes/default.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
title: "{{ replace .Name "-" " " | title }}"
|
||||||
|
date: {{ .Date }}
|
||||||
|
draft: true
|
||||||
|
---
|
||||||
|
|
||||||
22
config.toml
Normal file
22
config.toml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
baseURL = "/"
|
||||||
|
languageCode = "en-us"
|
||||||
|
title = "chmod 777"
|
||||||
|
relativeURLS = true
|
||||||
|
|
||||||
|
theme = "hello-friend-ng"
|
||||||
|
|
||||||
|
[params]
|
||||||
|
defaultTheme = "dark"
|
||||||
|
homeSubtitle = "never type this command"
|
||||||
|
|
||||||
|
[params.logo]
|
||||||
|
logoText = "chmod 777"
|
||||||
|
logoCursorColor = "#c0c0c0"
|
||||||
|
logoCursorAnimate = "0s"
|
||||||
|
|
||||||
|
|
||||||
|
[menu]
|
||||||
|
[[menu.main]]
|
||||||
|
identifier = "posts"
|
||||||
|
name = "Posts"
|
||||||
|
url = "posts/"
|
||||||
29
layouts/index.html
Normal file
29
layouts/index.html
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
<main aria-role="main">
|
||||||
|
<div>
|
||||||
|
<h1>{{ .Site.Title }}</h1>
|
||||||
|
|
||||||
|
{{- with .Site.Params.homeSubtitle }}
|
||||||
|
<p>{{.}}</p>
|
||||||
|
{{- end }}
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
<div class="posts">
|
||||||
|
{{- range first 5 (.Site.RegularPages.GroupByDate "2006") }}
|
||||||
|
<div class="posts-group">
|
||||||
|
<div class="post-year">{{ .Key }}</div>
|
||||||
|
|
||||||
|
<ul class="posts-list">
|
||||||
|
{{- range .Pages }}
|
||||||
|
<li class="post-item">
|
||||||
|
<a href="{{.Permalink}}">
|
||||||
|
<span class="post-title">{{.Title}}</span>
|
||||||
|
<span class="post-day">{{ if .Site.Params.dateformShort }}{{ .Date.Format .Site.Params.dateformShort }}{{ else }}{{ .Date.Format "Jan 2"}}{{ end }}</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{{- end }}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
{{- end }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
1
themes/hello-friend-ng
Submodule
1
themes/hello-friend-ng
Submodule
Submodule themes/hello-friend-ng added at e63dce70a9
Reference in New Issue
Block a user