forked from mirrors/hugo-theme-terminal
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
b6c2bafbdc | |||
3c03c1b0ea | |||
c57581a3b3 | |||
9cee0bf239 | |||
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
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
|
||||||
|
@ -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>
|
||||||
|
Reference in New Issue
Block a user