Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
b6c2bafbdc | |||
3c03c1b0ea | |||
c57581a3b3 | |||
9cee0bf239 | |||
a45f003c7a | |||
241ee05a3b | |||
75878308e0 | |||
7910e41eb6 |
@ -23,3 +23,7 @@ eg:
|
|||||||
- **Single Page Website** (https://github.com/justinnuwin/hugo-theme-terminal)
|
- **Single Page Website** (https://github.com/justinnuwin/hugo-theme-terminal)
|
||||||
- A layout where the homepage can render lists of pages and the navigation menu can link to sections on the homepage.
|
- A layout where the homepage can render lists of pages and the navigation menu can link to sections on the homepage.
|
||||||
- Justin Nguyen, software and hardware developer.
|
- Justin Nguyen, software and hardware developer.
|
||||||
|
|
||||||
|
- **Support for beautiful *KaTeX* formulae** ([amtoine/hugo-theme-terminal-katex](https://github.com/amtoine/hugo-theme-terminal-katex))
|
||||||
|
- SHORT DESCRIPTION
|
||||||
|
- Antoine Stevan ([@amtoine](https://github.com/amtoine)), software engineer into open source
|
||||||
|
10
README.md
@ -1,10 +1,14 @@
|
|||||||
# Terminal
|
# Terminal
|
||||||
|
|
||||||
|
**Demo: https://panr.github.io/hugo-theme-terminal-demo/**
|
||||||
|
|
||||||
|
**Create your own color scheme: https://panr.github.io/terminal-css/**
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
**DEMO - https://panr.github.io/hugo-theme-terminal-demo/**
|
---
|
||||||
|
|
||||||
**⚠️ The theme needs at least Hugo **Extended** v0.90.x.**
|
⚠️ The theme needs at least Hugo **Extended** v0.90.x.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -24,7 +28,7 @@
|
|||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- fully customizable color schemes generated by [**terminal.css**](https://panr.github.io/terminal-css/).
|
- fully customizable color schemes generated by [**Terminal.css**](https://panr.github.io/terminal-css/).
|
||||||
- [**Fira Code**](https://github.com/tonsky/FiraCode) as default monospaced font. It's gorgeous!
|
- [**Fira Code**](https://github.com/tonsky/FiraCode) as default monospaced font. It's gorgeous!
|
||||||
- **really nice duotone**, custom syntax highlighting based on [**PrismJS**](https://prismjs.com)
|
- **really nice duotone**, custom syntax highlighting based on [**PrismJS**](https://prismjs.com)
|
||||||
- fully responsive
|
- fully responsive
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
@import url("https://fonts.googleapis.com/css2?family=Fira+Code&family=Fira+Code:wght@400;700&display=swap");
|
@import url("https://fonts.googleapis.com/css2?family=Fira+Code&family=Fira+Code:wght@400;700&display=swap");
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--background: #222129;
|
--background: #1a170f;
|
||||||
--foreground: #ffffff;
|
--foreground: #eceae5;
|
||||||
--accent: #ffa86a;
|
--accent: #eec35e;
|
||||||
--font-size: 1rem;
|
--font-size: 1rem;
|
||||||
--line-height: 1.54rem;
|
--line-height: 1.54rem;
|
||||||
--radius: 0px;
|
--radius: 0px;
|
||||||
@ -28,7 +28,7 @@ body {
|
|||||||
"Fira Code",
|
"Fira Code",
|
||||||
Monaco,
|
Monaco,
|
||||||
Consolas,
|
Consolas,
|
||||||
Ubuntu Mono,
|
"Ubuntu Mono",
|
||||||
monospace;
|
monospace;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 84 KiB |
Before Width: | Height: | Size: 173 KiB After Width: | Height: | Size: 208 KiB |
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 49 KiB |
BIN
images/tn.png
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
@ -37,15 +37,15 @@
|
|||||||
{{ if .Params.showFullContent }}
|
{{ if .Params.showFullContent }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{ else if .Description }}
|
{{ else if .Description }}
|
||||||
{{ .Description | markdownify }}
|
<p>{{ .Description | markdownify }}</p>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ .Summary }}
|
{{ .Summary }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ if not .Params.showFullContent }}
|
{{ if not .Params.showFullContent }}
|
||||||
<div>
|
<div>
|
||||||
<a class="read-more button" href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a>
|
<a class="read-more button inline" href="{{ .RelPermalink }}">{{ $.Site.Params.ReadMore }}</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</article>
|
</article>
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
{{ if .Params.showFullContent }}
|
{{ if .Params.showFullContent }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{ else if .Description }}
|
{{ else if .Description }}
|
||||||
{{ .Description | markdownify }}
|
<p>{{ .Description | markdownify }}</p>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ .Summary }}
|
{{ .Summary }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
{{ if not .Params.showFullContent }}
|
{{ if not .Params.showFullContent }}
|
||||||
<div>
|
<div>
|
||||||
<a class="read-more button" href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a>
|
<a class="read-more button inline" href="{{ .RelPermalink }}">{{ $.Site.Params.ReadMore }}</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</article>
|
</article>
|
||||||
|
@ -9,13 +9,13 @@
|
|||||||
<ul>
|
<ul>
|
||||||
{{ $type := .Type }}
|
{{ $type := .Type }}
|
||||||
{{ range $key, $value := .Data.Terms.Alphabetical }}
|
{{ range $key, $value := .Data.Terms.Alphabetical }}
|
||||||
{{ $name := .Name }}
|
{{ $name := .Name }}
|
||||||
{{ $count := .Count }}
|
{{ $count := .Count }}
|
||||||
{{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
|
{{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
|
||||||
<li>
|
<li>
|
||||||
<a class="terms-title" href="{{ .Permalink }}">{{ .Name }} [{{ $count }}]</a>
|
<a class="terms-title" href="{{ .Permalink }}">{{ .Name }} [{{ $count }}]</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|