change to theme
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,3 +1,6 @@
|
|||||||
[submodule "public"]
|
[submodule "public"]
|
||||||
path = public
|
path = public
|
||||||
url = https://gitea.balki.me/balki/blog-op
|
url = https://gitea.balki.me/balki/blog-op
|
||||||
|
[submodule "themes/mytheme"]
|
||||||
|
path = themes/mytheme
|
||||||
|
url = https://gitea.balki.me/balki/no-js-hugo-theme.git
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
baseURL: https://balki.me/
|
|
||||||
languageCode: en-us
|
|
||||||
title: Balki's Blog
|
|
13
hugo.yaml
Normal file
13
hugo.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
baseURL: https://blog.balki.me/
|
||||||
|
languageCode: en-us
|
||||||
|
title: Balki's Blog
|
||||||
|
theme: mytheme
|
||||||
|
markup:
|
||||||
|
highlight:
|
||||||
|
# This setting makes code highlighting use theme's colors instead of hugo's default
|
||||||
|
noClasses: false
|
||||||
|
|
||||||
|
params:
|
||||||
|
themeStyleSwitcher: true
|
||||||
|
footerText: "[theme](https://gitea.balki.me/balki/no-js-hugo-theme)"
|
||||||
|
showTagList: false
|
@ -1,58 +0,0 @@
|
|||||||
<!doctype html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' data: ;{{ if .Params.asciinema }}script-src 'self' 'unsafe-inline' 'unsafe-eval';{{ end }}">
|
|
||||||
<link rel="alternate" type="application/rss+xml" href="/posts/index.xml">
|
|
||||||
<title>
|
|
||||||
{{- block "title" . -}}
|
|
||||||
{{ .Site.Title }}
|
|
||||||
{{- end -}}
|
|
||||||
</title>
|
|
||||||
|
|
||||||
<!-- Diable favicon requests: https://stackoverflow.com/a/13416784 -->
|
|
||||||
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
|
|
||||||
<link href="/assets/bootstrap.min.css" rel="stylesheet" >
|
|
||||||
{{ if .Params.asciinema }}
|
|
||||||
<link rel="stylesheet" type="text/css" href="/assets/asciinema-player.css" />
|
|
||||||
{{ end }}
|
|
||||||
<style>
|
|
||||||
{{ block "styles" . }}
|
|
||||||
{{ end }}
|
|
||||||
div.highlight pre {
|
|
||||||
{{/* code highlighting */}}
|
|
||||||
padding: 1rem;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<script src="/assets/bootstrap.min.js" defer></script>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<div class="container" >
|
|
||||||
<aside>
|
|
||||||
<nav>
|
|
||||||
<ul class="nav">
|
|
||||||
<li class="nav-item"><a class="nav-link" href="/"> Home </a></li>
|
|
||||||
<li class="nav-item"><a class="nav-link" href="/posts"> Blog </a></li>
|
|
||||||
<li class="nav-item"><a class="nav-link" href="https://gitea.balki.me/balki"> Gitea </a></li>
|
|
||||||
<li class="nav-item"><a class="nav-link" href="https://github.com/balki"> Github </a></li>
|
|
||||||
<!-- TODO
|
|
||||||
<li class="nav-item"><a class="nav-link" href="/about"> About </a></li>
|
|
||||||
-->
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
</aside>
|
|
||||||
|
|
||||||
<main>
|
|
||||||
{{ block "main" . }}
|
|
||||||
{{ end }}
|
|
||||||
</main>
|
|
||||||
<hr>
|
|
||||||
<div style="height: 300px;"><!-- This space is intentionally left blank --></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,6 +0,0 @@
|
|||||||
{{ define "main" }}
|
|
||||||
<h1 class="text-center">Posts</h1>
|
|
||||||
{{ range .Pages }}
|
|
||||||
{{ partial "postcard" . }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
@ -1,23 +0,0 @@
|
|||||||
{{ define "title" }}
|
|
||||||
{{ .Title }} – {{ .Site.Title }}
|
|
||||||
{{ end }}
|
|
||||||
{{ define "main" }}
|
|
||||||
<article>
|
|
||||||
<h1 class="display-3 text-center">{{ .Title }}</h1>
|
|
||||||
<p class="text-center"><time datetime="{{ .Date }}">{{ .Date.Format "2006-01-02" }}</time>
|
|
||||||
{{ if .Params.tags }}
|
|
||||||
│
|
|
||||||
{{range .Params.tags}}
|
|
||||||
<a class="btn btn-primary" href="/tags/{{ . | urlize }}" role="button">{{ . }}</a>
|
|
||||||
{{end}}
|
|
||||||
{{end}}
|
|
||||||
{{ if .Params.categories }}
|
|
||||||
│
|
|
||||||
{{range .Params.categories}}
|
|
||||||
<a class="btn btn-secondary" href="/categories/{{ . | urlize }}" role="button">{{ . }}</a>
|
|
||||||
{{end}}
|
|
||||||
{{end}}
|
|
||||||
</p>
|
|
||||||
{{ .Content }}
|
|
||||||
</article>
|
|
||||||
{{ end }}
|
|
@ -1,16 +0,0 @@
|
|||||||
{{ define "main" }}
|
|
||||||
<article>
|
|
||||||
<div class="text-center m-4">
|
|
||||||
{{ .Content }}
|
|
||||||
</div>
|
|
||||||
<p class="text-center">Under construction. Come back later! :)</p>
|
|
||||||
<div>
|
|
||||||
<h4>Recent posts</h4>
|
|
||||||
{{ range .Pages }}
|
|
||||||
{{ range .Pages }}
|
|
||||||
{{ partial "postcard" . }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
</article>
|
|
||||||
{{ end }}
|
|
@ -1,12 +0,0 @@
|
|||||||
{{ define "styles" }}
|
|
||||||
a.title-link {
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
{{ end }}
|
|
||||||
<div class="card mb-4">
|
|
||||||
<div class="card-body">
|
|
||||||
<a class="title-link link-primary" href="{{ .RelPermalink }}" ><h3 class="card-title">{{ .Title }}</h3></a>
|
|
||||||
<p> {{ .Date.Format "2006-01-02" }} </p>
|
|
||||||
<p class="card-text"> {{ .Summary }} </p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
@ -1,20 +0,0 @@
|
|||||||
<div id='{{ with .Get "key" }}{{ . }}{{ end }}'></div>
|
|
||||||
<script src="/assets/asciinema-player.min.js"></script>
|
|
||||||
<script>
|
|
||||||
AsciinemaPlayer.create('/casts/{{ with .Get "key" }}{{ . }}{{ end }}.cast', document.getElementById('{{ with .Get "key" }}{{ . }}{{ end }}'), {
|
|
||||||
{{ if .Get "cols" }}cols: "{{ .Get "cols" }}",{{ end }}
|
|
||||||
{{ if .Get "rows" }}rows: "{{ .Get "rows" }}",{{ end }}
|
|
||||||
{{ if .Get "autoPlay" }}autoPlay: "{{ .Get "autoPlay" }}",{{ end }}
|
|
||||||
{{ if .Get "preload" }}preload: "{{ .Get "preload" }}",{{ end }}
|
|
||||||
{{ if .Get "loop" }}loop: "{{ .Get "loop" }}",{{ end }}
|
|
||||||
{{ if .Get "startAt" }}startAt: "{{ .Get "startAt" }}",{{ end }}
|
|
||||||
{{ if .Get "speed" }}speed: "{{ .Get "speed" }}",{{ end }}
|
|
||||||
{{ if .Get "idleTimeLimit" }}idleTimeLimit: "{{ .Get "idleTimeLimit" }}",{{ end }}
|
|
||||||
{{ if .Get "theme" }}theme: "{{ .Get "theme" }}",{{ end }}
|
|
||||||
{{ if .Get "poster" }}poster: "{{ .Get "poster" }}",{{ end }}
|
|
||||||
{{ if .Get "fit" }}fit: "{{ .Get "fit" }}",{{ end }}
|
|
||||||
{{ if .Get "terminalFontSize" }}terminalFontSize: "{{ .Get "terminalFontSize" }}",{{ end }}
|
|
||||||
{{ if .Get "terminalFontFamily" }}terminalFontFamily: "{{ .Get "terminalFontFamily" }}",{{ end }}
|
|
||||||
{{ if .Get "terminalLineHeight" }}terminalLineHeight: "{{ .Get "terminalLineHeight" }}",{{ end }}
|
|
||||||
});
|
|
||||||
</script>
|
|
@ -1,9 +0,0 @@
|
|||||||
{{- /*
|
|
||||||
Template comment syntax: https://hugo.d.balki.me/templates/introduction/#comments
|
|
||||||
collapsable section ref: https://stackoverflow.com/a/78475534
|
|
||||||
*/ -}}
|
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>{{ .Get "title" | default "Click to expand" | markdownify }}</summary>
|
|
||||||
<div>{{ .Inner | markdownify }}</div>
|
|
||||||
</details>
|
|
1
themes/mytheme
Submodule
1
themes/mytheme
Submodule
Submodule themes/mytheme added at c93379bf7c
Reference in New Issue
Block a user