Add custom theme submodule
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "themes/huell"]
|
||||||
|
path = themes/huell
|
||||||
|
url = https://git.karaolidis.com/karaolidis/huell.git
|
@@ -1,4 +1,4 @@
|
|||||||
baseURL = 'https://www.karaolidis.com/'
|
baseURL = 'https://www.karaolidis.com/'
|
||||||
languageCode = 'en-us'
|
languageCode = 'en-us'
|
||||||
title = 'Jupiter Lab'
|
title = 'Jupiter Lab'
|
||||||
theme = 'caldwell-59'
|
theme = 'huell'
|
||||||
|
@@ -1,5 +0,0 @@
|
|||||||
+++
|
|
||||||
date = '{{ .Date }}'
|
|
||||||
draft = true
|
|
||||||
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
|
|
||||||
+++
|
|
@@ -1,22 +0,0 @@
|
|||||||
body {
|
|
||||||
color: #222;
|
|
||||||
font-family: sans-serif;
|
|
||||||
line-height: 1.5;
|
|
||||||
margin: 1rem;
|
|
||||||
max-width: 768px;
|
|
||||||
}
|
|
||||||
|
|
||||||
header {
|
|
||||||
border-bottom: 1px solid #222;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
footer {
|
|
||||||
border-top: 1px solid #222;
|
|
||||||
margin-top: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: #00e;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
@@ -1 +0,0 @@
|
|||||||
console.log("This site was generated by Hugo.");
|
|
@@ -1,20 +0,0 @@
|
|||||||
[menus]
|
|
||||||
[[menus.main]]
|
|
||||||
name = 'Home'
|
|
||||||
pageRef = '/'
|
|
||||||
weight = 10
|
|
||||||
|
|
||||||
[[menus.main]]
|
|
||||||
name = 'Posts'
|
|
||||||
pageRef = '/posts'
|
|
||||||
weight = 20
|
|
||||||
|
|
||||||
[[menus.main]]
|
|
||||||
name = 'Tags'
|
|
||||||
pageRef = '/tags'
|
|
||||||
weight = 30
|
|
||||||
|
|
||||||
[module]
|
|
||||||
[module.hugoVersion]
|
|
||||||
extended = false
|
|
||||||
min = '0.146.0'
|
|
@@ -1 +0,0 @@
|
|||||||
<p>Copyright {{ now.Year }}. All rights reserved.</p>
|
|
@@ -1,11 +0,0 @@
|
|||||||
<meta charset="utf-8" />
|
|
||||||
<meta name="viewport" content="width=device-width" />
|
|
||||||
<title>
|
|
||||||
{{ if .IsHome }}
|
|
||||||
{{ site.Title }}
|
|
||||||
{{ else }}
|
|
||||||
{{ printf "%s | %s" .Title site.Title }}
|
|
||||||
{{ end }}
|
|
||||||
</title>
|
|
||||||
{{ partialCached "head/css.html" . }}
|
|
||||||
{{ partialCached "head/js.html" . }}
|
|
@@ -1,14 +0,0 @@
|
|||||||
{{- with resources.Get "css/main.css" }}
|
|
||||||
{{- if hugo.IsDevelopment }}
|
|
||||||
<link rel="stylesheet" href="{{ .RelPermalink }}" />
|
|
||||||
{{- else }}
|
|
||||||
{{- with . | minify | fingerprint }}
|
|
||||||
<link
|
|
||||||
rel="stylesheet"
|
|
||||||
href="{{ .RelPermalink }}"
|
|
||||||
integrity="{{ .Data.Integrity }}"
|
|
||||||
crossorigin="anonymous"
|
|
||||||
/>
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
@@ -1,20 +0,0 @@
|
|||||||
{{- with resources.Get "js/main.js" }}
|
|
||||||
{{- $opts := dict
|
|
||||||
"minify" (not hugo.IsDevelopment)
|
|
||||||
"sourceMap" (cond hugo.IsDevelopment "external" "")
|
|
||||||
"targetPath" "js/main.js"
|
|
||||||
}}
|
|
||||||
{{- with . | js.Build $opts }}
|
|
||||||
{{- if hugo.IsDevelopment }}
|
|
||||||
<script src="{{ .RelPermalink }}"></script>
|
|
||||||
{{- else }}
|
|
||||||
{{- with . | fingerprint }}
|
|
||||||
<script
|
|
||||||
src="{{ .RelPermalink }}"
|
|
||||||
integrity="{{ .Data.Integrity }}"
|
|
||||||
crossorigin="anonymous"
|
|
||||||
></script>
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
@@ -1,2 +0,0 @@
|
|||||||
<h1>{{ site.Title }}</h1>
|
|
||||||
{{ partial "menu.html" (dict "menuID" "main" "page" .) }}
|
|
@@ -1,52 +0,0 @@
|
|||||||
{{- /*
|
|
||||||
Renders a menu for the given menu ID.
|
|
||||||
|
|
||||||
@context {page} page The current page.
|
|
||||||
@context {string} menuID The menu ID.
|
|
||||||
|
|
||||||
@example: {{ partial "menu.html" (dict "menuID" "main" "page" .)
|
|
||||||
}}
|
|
||||||
*/}}
|
|
||||||
{{- $page := .page }}
|
|
||||||
{{- $menuID := .menuID }}
|
|
||||||
|
|
||||||
{{- with index site.Menus $menuID }}
|
|
||||||
<nav>
|
|
||||||
<ul>
|
|
||||||
{{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }}
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{- define "_partials/inline/menu/walk.html" }}
|
|
||||||
{{- $page := .page }}
|
|
||||||
{{- range .menuEntries }}
|
|
||||||
{{- $attrs := dict "href" .URL }}
|
|
||||||
{{- if $page.IsMenuCurrent .Menu . }}
|
|
||||||
{{- $attrs = merge $attrs (dict "class" "active" "aria-current" "page") }}
|
|
||||||
{{- else if $page.HasMenuCurrent .Menu . }}
|
|
||||||
{{- $attrs = merge $attrs (dict "class" "ancestor" "aria-current" "true") }}
|
|
||||||
{{- end }}
|
|
||||||
{{- $name := .Name }}
|
|
||||||
{{- with .Identifier }}
|
|
||||||
{{- with T . }}
|
|
||||||
{{- $name = . }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
<li>
|
|
||||||
<a
|
|
||||||
{{- range $k, $v := $attrs }}
|
|
||||||
{{- with $v }}
|
|
||||||
{{- printf " %s=%q" $k $v | safeHTMLAttr }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end -}}
|
|
||||||
>{{ $name }}</a
|
|
||||||
>
|
|
||||||
{{- with .Children }}
|
|
||||||
<ul>
|
|
||||||
{{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }}
|
|
||||||
</ul>
|
|
||||||
{{- end }}
|
|
||||||
</li>
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
@@ -1,23 +0,0 @@
|
|||||||
{{- /*
|
|
||||||
For a given taxonomy, renders a list of terms assigned to the page.
|
|
||||||
|
|
||||||
@context {page} page The current page.
|
|
||||||
@context {string} taxonomy The taxonomy.
|
|
||||||
|
|
||||||
@example: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .)
|
|
||||||
}}
|
|
||||||
*/}}
|
|
||||||
{{- $page := .page }}
|
|
||||||
{{- $taxonomy := .taxonomy }}
|
|
||||||
|
|
||||||
{{- with $page.GetTerms $taxonomy }}
|
|
||||||
{{- $label := (index . 0).Parent.LinkTitle }}
|
|
||||||
<div>
|
|
||||||
<div>{{ $label }}:</div>
|
|
||||||
<ul>
|
|
||||||
{{- range . }}
|
|
||||||
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
|
|
||||||
{{- end }}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{{- end }}
|
|
@@ -1,20 +0,0 @@
|
|||||||
<!doctype html>
|
|
||||||
<html
|
|
||||||
lang="{{ site.Language.LanguageCode }}"
|
|
||||||
dir="{{ or site.Language.LanguageDirection `ltr` }}"
|
|
||||||
>
|
|
||||||
<head>
|
|
||||||
{{ partial "head.html" . }}
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<header>
|
|
||||||
{{ partial "header.html" . }}
|
|
||||||
</header>
|
|
||||||
<main>
|
|
||||||
{{ block "main" . }}{{ end }}
|
|
||||||
</main>
|
|
||||||
<footer>
|
|
||||||
{{ partial "footer.html" . }}
|
|
||||||
</footer>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@@ -1,7 +0,0 @@
|
|||||||
{{ define "main" }}
|
|
||||||
{{ .Content }}
|
|
||||||
{{ range site.RegularPages }}
|
|
||||||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
|
||||||
{{ .Summary }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
@@ -1,10 +0,0 @@
|
|||||||
{{ define "main" }}
|
|
||||||
<h1>{{ .Title }}</h1>
|
|
||||||
|
|
||||||
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
|
|
||||||
{{ $dateHuman := .Date | time.Format ":date_long" }}
|
|
||||||
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
|
|
||||||
|
|
||||||
{{ .Content }}
|
|
||||||
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
|
|
||||||
{{ end }}
|
|
@@ -1,8 +0,0 @@
|
|||||||
{{ define "main" }}
|
|
||||||
<h1>{{ .Title }}</h1>
|
|
||||||
{{ .Content }}
|
|
||||||
{{ range .Pages }}
|
|
||||||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
|
||||||
{{ .Summary }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
@@ -1,7 +0,0 @@
|
|||||||
{{ define "main" }}
|
|
||||||
<h1>{{ .Title }}</h1>
|
|
||||||
{{ .Content }}
|
|
||||||
{{ range .Pages }}
|
|
||||||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
@@ -1,7 +0,0 @@
|
|||||||
{{ define "main" }}
|
|
||||||
<h1>{{ .Title }}</h1>
|
|
||||||
{{ .Content }}
|
|
||||||
{{ range .Pages }}
|
|
||||||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
1
themes/huell
Submodule
1
themes/huell
Submodule
Submodule themes/huell added at 75b84da3b5
Reference in New Issue
Block a user