forked from mrmierzejewski/hugo-theme-console
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
397 additions
and
397 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
# Hugo Theme: Console | ||
|
||
A minimal, responsive and light theme for Hugo inspired by Linux console. | ||
|
||
![Console](https://github.com/mrmierzejewski/hugo-theme-console/blob/master/images/preview.png?raw=true) | ||
|
||
## Live demo | ||
|
||
* https://themes.gohugo.io/themes/hugo-theme-console/ | ||
|
||
## Installation | ||
|
||
```sh | ||
$ mkdir themes | ||
$ cd themes | ||
$ git submodule add https://github.com/mrmierzejewski/hugo-theme-console.git hugo-theme-console | ||
``` | ||
|
||
See the [Hugo documentation](https://gohugo.io/themes/installing/) for more information. | ||
|
||
## Configuration | ||
|
||
Set theme parameter in your config file: | ||
|
||
``` | ||
theme = "hugo-theme-console" | ||
``` | ||
|
||
## Example Site | ||
|
||
To run the example site, please type the following command: | ||
|
||
``` | ||
make hugo-server | ||
``` | ||
|
||
### Start page | ||
|
||
The default start page template is located at ```themes/hugo-theme-console/layouts/index.html```. To change the page content, you to need to copy this file to | ||
your website top-level ```layouts``` folder (```layouts/index.html```). | ||
|
||
## License | ||
|
||
Copyright © 2021 [Marcin Mierzejewski](https://mrmierzejewski.com/) | ||
|
||
The theme is released under the MIT License. Check the [original theme license](https://github.com/panr/hugo-theme-terminal/blob/master/LICENSE.md) for additional licensing information. | ||
# Hugo Theme: Console | ||
|
||
A minimal, responsive and light theme for Hugo inspired by Linux console. | ||
|
||
![Console](https://github.com/mrmierzejewski/hugo-theme-console/blob/master/images/preview.png?raw=true) | ||
|
||
## Live demo | ||
|
||
* https://themes.gohugo.io/themes/hugo-theme-console/ | ||
|
||
## Installation | ||
|
||
```sh | ||
$ mkdir themes | ||
$ cd themes | ||
$ git submodule add https://github.com/mrmierzejewski/hugo-theme-console.git hugo-theme-console | ||
``` | ||
|
||
See the [Hugo documentation](https://gohugo.io/themes/installing/) for more information. | ||
|
||
## Configuration | ||
|
||
Set theme parameter in your config file: | ||
|
||
``` | ||
theme = "hugo-theme-console" | ||
``` | ||
|
||
## Example Site | ||
|
||
To run the example site, please type the following command: | ||
|
||
``` | ||
make hugo-server | ||
``` | ||
|
||
### Start page | ||
|
||
The default start page template is located at ```themes/hugo-theme-console/layouts/index.html```. To change the page content, you to need to copy this file to | ||
your website top-level ```layouts``` folder (```layouts/index.html```). | ||
|
||
## License | ||
|
||
Copyright © 2021 [Marcin Mierzejewski](https://mrmierzejewski.com/) | ||
|
||
The theme is released under the MIT License. Check the [original theme license](https://github.com/panr/hugo-theme-terminal/blob/master/LICENSE.md) for additional licensing information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
{{ define "main" }} | ||
<h1>{{ .Page.Title }}</h1> | ||
{{ .Content }} | ||
<div class="image-grid"> | ||
{{ range sort .Data.Pages "Date" "desc" }} | ||
{{ if and (isset .Params "image") .Params.image }} | ||
<a href="{{ .Permalink }}" title="{{ .Title }}"> | ||
{{ $image := .Page.Resources.GetMatch .Params.image }} | ||
{{ with $image }} | ||
{{ $thumb := .Resize "400x" }} | ||
<img src="{{ $image.RelPermalink }}" alt="% s" class="img-responsive gallery-image" width="{{ $image.Width }}"> | ||
|
||
{{end}} | ||
</a> | ||
{{ end }} | ||
{{ end }} | ||
</div> | ||
{{ define "main" }} | ||
<h1>{{ .Page.Title }}</h1> | ||
{{ .Content }} | ||
<div class="image-grid"> | ||
{{ range sort .Data.Pages "Date" "desc" }} | ||
{{ if and (isset .Params "image") .Params.image }} | ||
<a href="{{ .Permalink }}" title="{{ .Title }}"> | ||
{{ $image := .Page.Resources.GetMatch .Params.image }} | ||
{{ with $image }} | ||
{{ $thumb := .Resize "400x" }} | ||
<img src="{{ $image.RelPermalink }}" alt="% s" class="img-responsive gallery-image" width="{{ $image.Width }}"> | ||
|
||
{{end}} | ||
</a> | ||
{{ end }} | ||
{{ end }} | ||
</div> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
{{ define "main" }} | ||
<h1>{{ .Page.Title }}</h1> | ||
|
||
{{ if and (isset .Params "image") .Params.image }} | ||
{{ $image := .Page.Resources.GetMatch .Params.image }} | ||
{{ $thumb := $image.Resize "1000x" }} | ||
<img src="{{ $image.RelPermalink }}" alt="% s" class="img-responsive gallery-image" width="{{ $image.Width }}"> | ||
|
||
{{ end }} | ||
|
||
{{ .Content }} | ||
{{ template "_internal/disqus.html" . }} | ||
|
||
{{ define "main" }} | ||
<h1>{{ .Page.Title }}</h1> | ||
|
||
{{ if and (isset .Params "image") .Params.image }} | ||
{{ $image := .Page.Resources.GetMatch .Params.image }} | ||
{{ $thumb := $image.Resize "1000x" }} | ||
<img src="{{ $image.RelPermalink }}" alt="% s" class="img-responsive gallery-image" width="{{ $image.Width }}"> | ||
|
||
{{ end }} | ||
|
||
{{ .Content }} | ||
{{ template "_internal/disqus.html" . }} | ||
|
||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
{{ define "main" }} | ||
|
||
<h1>About</h1> | ||
|
||
<p> | ||
yo80106在這裡記錄學習、分享經驗,佐以一些有的沒的東西。內容如果剛好幫助到任何人,那真是太好了呢! <a href="about/">(more)</a> | ||
</p> | ||
<br/> | ||
|
||
<h1>Latest posts</h1> | ||
|
||
<div class="posts-list"> | ||
{{ with .Site.GetPage "/posts" }} | ||
{{ range first 3 (sort .Data.Pages "Date" "desc" (where .Pages ".Params.private" "!=" true))}} | ||
<div class="post"> | ||
<p> | ||
<div class="date">{{ .PublishDate.Format "Jan. 2, 2006" }}</div> | ||
<h1><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1> | ||
{{ .Summary }} | ||
</p> | ||
</div> | ||
{{ end }} | ||
{{ end }} | ||
</div> | ||
|
||
<h1>Latest collections</h1> | ||
|
||
<div class="image-grid"> | ||
{{ with .Site.GetPage "/collections" }} | ||
{{ range first 3 (sort .Data.Pages "Date" "desc")}} | ||
<a href="{{ .Permalink }}" title="{{ .Title }}"> | ||
{{ $image := .Page.Resources.GetMatch .Params.image }} | ||
{{ with $image }} | ||
{{ $thumb := .Resize "400x" }} | ||
<img src="{{ $image.RelPermalink }}" alt="% s" class="img-responsive gallery-image" width="{{ $image.Width }}"> | ||
|
||
{{end}} | ||
</a> | ||
{{ end }} | ||
{{ end }} | ||
</div> | ||
|
||
{{ define "main" }} | ||
|
||
<h1>About</h1> | ||
|
||
<p> | ||
yo80106在這裡記錄學習、分享經驗,佐以一些有的沒的東西。內容如果剛好幫助到任何人,那真是太好了呢! <a href="about/">(more)</a> | ||
</p> | ||
<br/> | ||
|
||
<h1>Latest posts</h1> | ||
|
||
<div class="posts-list"> | ||
{{ with .Site.GetPage "/posts" }} | ||
{{ range first 3 (sort .Data.Pages "Date" "desc" (where .Pages ".Params.private" "!=" true))}} | ||
<div class="post"> | ||
<p> | ||
<div class="date">{{ .PublishDate.Format "Jan. 2, 2006" }}</div> | ||
<h1><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1> | ||
{{ .Summary }} | ||
</p> | ||
</div> | ||
{{ end }} | ||
{{ end }} | ||
</div> | ||
|
||
<h1>Latest collections</h1> | ||
|
||
<div class="image-grid"> | ||
{{ with .Site.GetPage "/collections" }} | ||
{{ range first 3 (sort .Data.Pages "Date" "desc")}} | ||
<a href="{{ .Permalink }}" title="{{ .Title }}"> | ||
{{ $image := .Page.Resources.GetMatch .Params.image }} | ||
{{ with $image }} | ||
{{ $thumb := .Resize "400x" }} | ||
<img src="{{ $image.RelPermalink }}" alt="% s" class="img-responsive gallery-image" width="{{ $image.Width }}"> | ||
|
||
{{end}} | ||
</a> | ||
{{ end }} | ||
{{ end }} | ||
</div> | ||
|
||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.