initial commit
3
themes/hugo-theme-console/.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
.DS_Store
|
||||
public
|
||||
*.lock
|
21
themes/hugo-theme-console/LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2020 Marcin Mierzejewski
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
74
themes/hugo-theme-console/README.md
Normal file
|
@ -0,0 +1,74 @@
|
|||
# Hugo Theme: Console
|
||||
|
||||
A minimal and responsive Hugo theme inspired by the system console, crafted for optimal performance with an average page load time of under one second.
|
||||
|
||||
Theme is based on a modern and minimal [Terminal CSS](https://terminalcss.xyz/) framework.
|
||||
|
||||

|
||||
|
||||
## Live demo
|
||||
|
||||
* [https://mrmierzejewski.com/hugo-theme-console/](https://mrmierzejewski.com/hugo-theme-console/)
|
||||
|
||||
## Installation
|
||||
|
||||
From the root of your Hugo site, clone the theme into ```themes/hugo-theme-console``` by running :
|
||||
|
||||
```
|
||||
$ git submodule add https://github.com/mrmierzejewski/hugo-theme-console.git hugo-theme-console
|
||||
```
|
||||
|
||||
See the [Hugo documentation](https://gohugo.io/hugo-modules/theme-components/) for more information.
|
||||
|
||||
## Configuration
|
||||
|
||||
Set theme parameter in your config file:
|
||||
|
||||
```
|
||||
theme = "hugo-theme-console"
|
||||
```
|
||||
|
||||
## Quick start
|
||||
|
||||
After installation, take a look in the `exampleSite` folder at. This directory contains an example config file and the content for the demo.
|
||||
|
||||
```
|
||||
exampleSite
|
||||
├── config.toml
|
||||
├── content
|
||||
│ ├── about
|
||||
│ │ └── index.md
|
||||
│ └── photos
|
||||
│ │ └── arizona-us
|
||||
│ │ ├── arizona-us.jpg
|
||||
│ │ └── index.md
|
||||
│ └── posts
|
||||
│ └── introduction
|
||||
│ └── index.md
|
||||
├── layouts
|
||||
│
|
||||
└── static
|
||||
```
|
||||
|
||||
Copy at least the `config.toml` in the root directory of your website. Overwrite the existing config file if necessary.
|
||||
|
||||
Hugo includes a development server, so you can view your changes as you go -
|
||||
very handy. Spin it up with the following command:
|
||||
|
||||
```
|
||||
hugo serve
|
||||
```
|
||||
|
||||
Now you can go to [http://localhost:1313](http://localhost:1313) and the theme should be visible.
|
||||
|
||||
## Example Site
|
||||
|
||||
To run the example site, please type the following command.
|
||||
|
||||
```
|
||||
make hugo-server
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
Copyright © 2024 [Marcin Mierzejewski](https://mrmierzejewski.com/). This theme is released under the [MIT License](https://github.com/panr/hugo-theme-terminal/blob/master/LICENSE.md).
|
1
themes/hugo-theme-console/exampleSite/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
resources
|
24
themes/hugo-theme-console/exampleSite/config.toml
Normal file
|
@ -0,0 +1,24 @@
|
|||
baseurl = "https://example.com/"
|
||||
title = "console-demo"
|
||||
theme = "hugo-theme-console"
|
||||
languageCode = "en-us"
|
||||
|
||||
[params]
|
||||
# Cutting off the page title to two chars for mobile (console-demo -> co)
|
||||
titleCutting = true
|
||||
|
||||
# Set the animation style -- https://animate.style/
|
||||
# To disable animations, please remove or comment animationStyle parameter
|
||||
animateStyle = "animated zoomIn fast"
|
||||
|
||||
[[params.navlinks]]
|
||||
name = "about/"
|
||||
url = "about/"
|
||||
|
||||
[[params.navlinks]]
|
||||
name = "posts/"
|
||||
url = "posts/"
|
||||
|
||||
[[params.navlinks]]
|
||||
name = "photos/"
|
||||
url = "photos/"
|
79
themes/hugo-theme-console/exampleSite/content/about/index.md
Normal file
|
@ -0,0 +1,79 @@
|
|||
+++
|
||||
date = "2016-11-05T21:05:33+05:30"
|
||||
title = "About"
|
||||
+++
|
||||
|
||||
A minimal and responsive Hugo theme inspired by the system console, crafted for optimal performance with an average page load time of under one second.
|
||||
|
||||
Theme is based on a modern and minimal [Terminal CSS](https://terminalcss.xyz/) framework.
|
||||
|
||||

|
||||
|
||||
## Live demo
|
||||
|
||||
* [https://mrmierzejewski.com/hugo-theme-console/](https://mrmierzejewski.com/hugo-theme-console/)
|
||||
|
||||
## Installation
|
||||
|
||||
From the root of your Hugo site, clone the theme into ```themes/hugo-theme-console``` by running :
|
||||
|
||||
```
|
||||
$ git submodule add https://github.com/mrmierzejewski/hugo-theme-console.git hugo-theme-console
|
||||
```
|
||||
|
||||
See the [Hugo documentation](https://gohugo.io/hugo-modules/theme-components/) for more information.
|
||||
|
||||
## Configuration
|
||||
|
||||
Set theme parameter in your config file:
|
||||
|
||||
```
|
||||
theme = "hugo-theme-console"
|
||||
```
|
||||
|
||||
## Quick start
|
||||
|
||||
After installation, take a look in the `exampleSite` folder at. This directory contains an example config file and the content for the demo.
|
||||
|
||||
```
|
||||
exampleSite
|
||||
├── config.toml
|
||||
├── content
|
||||
│ ├── about
|
||||
│ │ └── index.md
|
||||
│ └── photos
|
||||
│ │ └── arizona-us
|
||||
│ │ ├── arizona-us.jpg
|
||||
│ │ └── index.md
|
||||
│ └── posts
|
||||
│ └── introduction
|
||||
│ └── index.md
|
||||
├── layouts
|
||||
│
|
||||
└── static
|
||||
```
|
||||
|
||||
Copy at least the `config.toml` in the root directory of your website. Overwrite the existing config file if necessary.
|
||||
|
||||
Hugo includes a development server, so you can view your changes as you go -
|
||||
very handy. Spin it up with the following command:
|
||||
|
||||
```
|
||||
hugo serve
|
||||
```
|
||||
|
||||
Now you can go to [http://localhost:1313](http://localhost:1313) and the theme should be visible.
|
||||
|
||||
## Example Site
|
||||
|
||||
To run the example site, please type the following command.
|
||||
|
||||
```
|
||||
make hugo-server
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
Copyright © 2024 [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.
|
|
@ -0,0 +1,6 @@
|
|||
+++
|
||||
title = "Photos"
|
||||
type = "gallery"
|
||||
+++
|
||||
|
||||
|
After Width: | Height: | Size: 469 KiB |
|
@ -0,0 +1,10 @@
|
|||
+++
|
||||
image = "arizona-us.jpg"
|
||||
date = "2020-01-21"
|
||||
title = "Arizona, US"
|
||||
type = "gallery"
|
||||
+++
|
||||
|
||||
The [Grand Canyon](https://en.wikipedia.org/w/index.php?title=Grand_Canyon&oldid=952699432)
|
||||
is a steep-sided canyon carved by the Colorado River in Arizona, United States.
|
||||
The canyon is 277 miles (446 km) long, up to 18 miles (29 km) wide and attains a depth of over a mile (6,093 feet or 1,857 meters).
|
After Width: | Height: | Size: 463 KiB |
|
@ -0,0 +1,8 @@
|
|||
+++
|
||||
image = "chicago-us.jpg"
|
||||
date = "2020-01-21"
|
||||
title = "Chicago, US"
|
||||
type = "gallery"
|
||||
+++
|
||||
|
||||
[Chicago](https://en.wikipedia.org/w/index.php?title=Chicago&oldid=953376675), officially the City of Chicago, is the most populous city in the U.S. state of Illinois, and the third-most-populous city in the United States. With an estimated population of 2,705,994 (2018), it is also the most populous city in the Midwestern United States. Chicago is the county seat of Cook County, the second-most-populous county in the US, with a small portion of the northwest side of the city extending into DuPage County near O'Hare Airport. Chicago is the principal city of the Chicago metropolitan area, often referred to as Chicagoland. At nearly 10 million people, the metropolitan area is the third most populous in the United States.
|
After Width: | Height: | Size: 490 KiB |
|
@ -0,0 +1,9 @@
|
|||
+++
|
||||
image = "hel-poland-2.jpg"
|
||||
date = "2020-01-23"
|
||||
title = "Hel, Poland"
|
||||
type = "gallery"
|
||||
+++
|
||||
|
||||
[Hel Peninsula](https://en.wikipedia.org/w/index.php?title=Hel_Peninsula&oldid=939640541) (Polish: Mierzeja Helska) is a 35-km-long sand bar peninsula in northern Poland separating the Bay of Puck from the open Baltic Sea.
|
||||
The width of the peninsula varies from approximately 300 m near Jurata, through 100 m in the most narrow part to over 3 km at the tip. Since the peninsula was formed entirely of sand, it is frequently turned into an island by winter storms. Until the 17th century the peninsula was a chain of islands that formed a strip of land only during the summer.
|
After Width: | Height: | Size: 338 KiB |
|
@ -0,0 +1,9 @@
|
|||
+++
|
||||
image = "hel-poland-3.jpg"
|
||||
date = "2020-02-06"
|
||||
title = "Hel, Poland"
|
||||
type = "gallery"
|
||||
+++
|
||||
|
||||
[Hel Peninsula](https://en.wikipedia.org/w/index.php?title=Hel_Peninsula&oldid=939640541) (Polish: Mierzeja Helska) is a 35-km-long sand bar peninsula in northern Poland separating the Bay of Puck from the open Baltic Sea.
|
||||
The width of the peninsula varies from approximately 300 m near Jurata, through 100 m in the most narrow part to over 3 km at the tip. Since the peninsula was formed entirely of sand, it is frequently turned into an island by winter storms. Until the 17th century the peninsula was a chain of islands that formed a strip of land only during the summer.
|
|
@ -0,0 +1,8 @@
|
|||
+++
|
||||
image = "panaji-india-2.jpg"
|
||||
date = "2020-01-07"
|
||||
title = "Panaji, India"
|
||||
type = "gallery"
|
||||
+++
|
||||
|
||||
[Panaji](https://en.wikipedia.org/w/index.php?title=Panaji&oldid=949879387), formerly Panjim, is the capital of the Indian state of Goa and the headquarters of North Goa district. It lies on the banks of the Mandovi River estuary in the Ilhas de Goa sub-district (taluka). With a population of 114,759 in the metropolitan area, Panjim is Goa's largest urban agglomeration, ahead of Margão and Vasco da Gama.
|
After Width: | Height: | Size: 450 KiB |
|
@ -0,0 +1,9 @@
|
|||
+++
|
||||
image = "warsaw-poland.jpg"
|
||||
date = "2020-02-09"
|
||||
title = "Warsaw, Poland"
|
||||
type = "gallery"
|
||||
+++
|
||||
|
||||
[Palace of Culture and Science](https://en.wikipedia.org/w/index.php?title=Palace_of_Culture_and_Science&oldid=945815549) (Polish: Pałac Kultury i Nauki), is a notable high-rise building in central Warsaw, Poland. With a total height of 237 metres (778 ft) it is the tallest building in Poland, the 5th-tallest building in the European Union (including spire) and one of the tallest on the European continent.
|
||||
Constructed in 1955, it houses various public and cultural institutions such as cinemas, theatres, libraries, sports clubs, university faculties and authorities of the Polish Academy of Sciences.
|
After Width: | Height: | Size: 462 KiB |
|
@ -0,0 +1,3 @@
|
|||
+++
|
||||
title = "Posts"
|
||||
+++
|
|
@ -0,0 +1,12 @@
|
|||
+++
|
||||
title = "What is Hugo"
|
||||
date = "2019-07-01"
|
||||
+++
|
||||
|
||||
Hugo is a fast and modern static site generator written in Go, and designed to make website creation fun again.
|
||||
<!--more-->
|
||||
Hugo is a general-purpose website framework. Technically speaking, Hugo is a static site generator. Unlike systems that dynamically build a page with each visitor request, Hugo builds pages when you create or update your content. Since websites are viewed far more often than they are edited, Hugo is designed to provide an optimal viewing experience for your website’s end users and an ideal writing experience for website authors.
|
||||
|
||||
Websites built with Hugo are extremely fast and secure. Hugo sites can be hosted anywhere, including Netlify, Heroku, GoDaddy, DreamHost, GitHub Pages, GitLab Pages, Surge, Aerobatic, Firebase, Google Cloud Storage, Amazon S3, Rackspace, Azure, and CloudFront and work well with CDNs. Hugo sites run without the need for a database or dependencies on expensive runtimes like Ruby, Python, or PHP.
|
||||
|
||||
We think of Hugo as the ideal website creation tool with nearly instant build times, able to rebuild whenever a change is made.
|
|
@ -0,0 +1,45 @@
|
|||
+++
|
||||
title = "Introduction"
|
||||
date = "2019-08-03"
|
||||
+++
|
||||
|
||||
Hugo is an open-source project and lives by the work of its contributors. There are plenty of open issues, and we need your help to make Hugo even more awesome. You don't need to be a Go guru to contribute to the project's development.
|
||||
|
||||
<!--more-->
|
||||
|
||||
## Assumptions
|
||||
|
||||
This contribution guide takes a step-by-step approach in hopes of helping newcomers. Therefore, we only assume the following:
|
||||
|
||||
* You are new to Git or open-source projects in general
|
||||
* You are a fan of Hugo and enthusiastic about contributing to the project
|
||||
|
||||
## Install Go
|
||||
|
||||
The installation of Go should take only a few minutes. You have more than one option to get Go up and running on your machine.
|
||||
|
||||
If you are having trouble following the installation guides for Go, check out Go Bootcamp, which contains setups for every platform or reach out to the Hugo community in the Hugo Discussion Forums.
|
||||
|
||||
### Install Go From Source
|
||||
|
||||
Download the latest stable version of Go and follow the official Go installation guide.
|
||||
|
||||
Once you're finished installing Go, let's confirm everything is working correctly. Open a terminal---or command line under Windows--and type the following:
|
||||
|
||||
```
|
||||
go version
|
||||
```
|
||||
|
||||
You should see something similar to the following written to the console. Note that the version here reflects the most recent version of Go as of the last update for this page:
|
||||
|
||||
```
|
||||
go version go1.12 darwin/amd64
|
||||
```
|
||||
|
||||
Next, make sure that you set up your `GOPATH` as described in the installation guide.
|
||||
|
||||
You can print the `GOPATH` with `echo $GOPATH`. You should see a non-empty string containing a valid path to your Go workspace; for example:
|
||||
|
||||
```
|
||||
/Users/<yourusername>/Code/go
|
||||
```
|
BIN
themes/hugo-theme-console/images/preview.png
Normal file
After Width: | Height: | Size: 963 KiB |
BIN
themes/hugo-theme-console/images/screenshot.png
Normal file
After Width: | Height: | Size: 568 KiB |
BIN
themes/hugo-theme-console/images/tn.png
Normal file
After Width: | Height: | Size: 246 KiB |
4
themes/hugo-theme-console/layouts/404.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
{{ define "main" }}
|
||||
<h1>Page not found</h1>
|
||||
<p><a href="{{ .Site.BaseURL }}">Return to the home page</a>.</p>
|
||||
{{ end }}
|
56
themes/hugo-theme-console/layouts/_default/baseof.html
Normal file
|
@ -0,0 +1,56 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>{{ .Site.Title }}{{ $url := urls.Parse .Page.Permalink }}{{ $url.Path }}</title>
|
||||
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="robots" content="all,follow">
|
||||
<meta name="googlebot" content="index,follow,snippet,archive">
|
||||
<link rel="stylesheet" href="{{ "hugo-theme-console/css/terminal-0.7.4.min.css" | absURL }}">
|
||||
<link rel="stylesheet" href="{{ "hugo-theme-console/css/animate-4.1.1.min.css" | absURL }}">
|
||||
<link rel="stylesheet" href="{{ "hugo-theme-console/css/console.css" | absURL }}">
|
||||
{{ `
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
` | safeHTML }}
|
||||
|
||||
{{- partial "favicon.html" . -}}
|
||||
{{ with .OutputFormats.Get "RSS" }}
|
||||
{{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }}
|
||||
{{ end }}
|
||||
{{- partial "opengraph.html" . -}}
|
||||
{{- partial "twitter_cards.html" . -}}
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
|
||||
{{- partial "header.html" . -}}
|
||||
</head>
|
||||
<body class="terminal">
|
||||
<div class="container">
|
||||
<div class="terminal-nav">
|
||||
<header class="terminal-logo">
|
||||
<div class="logo terminal-prompt">
|
||||
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
|
||||
{{ $.Scratch.Add "path" .Site.BaseURL }}
|
||||
<a href="{{ .Site.BaseURL }}" class="no-style {{ with .Site.Params.TitleCutting }}site-name{{ end }}">{{ .Site.Title }}</a>:~#
|
||||
{{ range $index, $element := split $url "/" }}{{ $.Scratch.Add "path" $element }}{{ if ne $element "" }}<a href='{{ $.Scratch.Get "path" | absURL }}'>{{ . }}</a>/{{ $.Scratch.Add "path" "/" }}{{ end }}{{ end }}</div></header>
|
||||
<nav class="terminal-menu">
|
||||
<ul vocab="https://schema.org/" typeof="BreadcrumbList">
|
||||
{{ range .Site.Params.navlinks }}
|
||||
<li><a href="{{ absURL .url }}" typeof="ListItem">{{ .name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container {{ .Site.Params.animateStyle }}" >
|
||||
{{ block "main" . }}
|
||||
{{ end }}
|
||||
{{ partial "footer.html" . }}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
20
themes/hugo-theme-console/layouts/_default/list.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
{{ define "main" }}
|
||||
<h1>{{ .Page.Title }}</h1>
|
||||
<br/>
|
||||
{{ .Content }}
|
||||
|
||||
<div class="posts-list">
|
||||
{{ range sort .Data.Pages "Date" "desc" }}
|
||||
{{ if not .Params.private }}
|
||||
<div class="post">
|
||||
<p>
|
||||
<div class="date">{{ .PublishDate.Format "2 Jan 2006" }}</div>
|
||||
<h1><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1>
|
||||
{{ .Summary }}
|
||||
</p>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ end }}
|
4
themes/hugo-theme-console/layouts/_default/single.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
{{ end }}
|
17
themes/hugo-theme-console/layouts/gallery/list.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
{{ 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="{{ $thumb.RelPermalink }}" alt="{{ .Title }}" class="img-responsive">
|
||||
{{end}}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
15
themes/hugo-theme-console/layouts/gallery/single.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
{{ define "main" }}
|
||||
<h1>{{ .Page.Title }}</h1>
|
||||
|
||||
{{ if and (isset .Params "image") .Params.image }}
|
||||
{{ $image := .Page.Resources.GetMatch .Params.image }}
|
||||
{{ with $image }}
|
||||
{{ $thumb := .Resize "1000x" }}
|
||||
{{ printf `<img src="%s" alt="%s" class="img-responsive gallery-image">` $thumb.RelPermalink .Title | safeHTML }}
|
||||
{{end}}
|
||||
{{ end }}
|
||||
|
||||
{{ .Content }}
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
|
||||
{{ end }}
|
42
themes/hugo-theme-console/layouts/index.html
Normal file
|
@ -0,0 +1,42 @@
|
|||
{{ define "main" }}
|
||||
|
||||
<h1>About</h1>
|
||||
|
||||
<p>
|
||||
Console is a minimal, responsive and light theme for Hugo inspired by Linux console. <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">{{ $mymonths := index $.Site.Data.moisshort }}{{ .Date.Day }} {{ index $mymonths (printf "%d" .Date.Month) }} {{ .Date.Year }}</div>
|
||||
<h1><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1>
|
||||
{{ .Summary }}
|
||||
</p>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<h1>Latest photos</h1>
|
||||
|
||||
<div class="image-grid">
|
||||
{{ with .Site.GetPage "/photos" }}
|
||||
{{ 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="{{ $thumb.RelPermalink }}" alt="{{ .Title }}" class="img-responsive">
|
||||
{{end}}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ end }}
|
1
themes/hugo-theme-console/layouts/partials/favicon.html
Normal file
|
@ -0,0 +1 @@
|
|||
|
4
themes/hugo-theme-console/layouts/partials/footer.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
<div class="footer">
|
||||
Powered by <a href="https://gohugo.io/">Hugo</a> with
|
||||
<a href="https://github.com/mrmierzejewski/hugo-theme-console/">Console Theme</a>.
|
||||
</div>
|
1
themes/hugo-theme-console/layouts/partials/header.html
Normal file
|
@ -0,0 +1 @@
|
|||
<!-- Keep - override to add code to <header /> tag -->
|
49
themes/hugo-theme-console/layouts/partials/opengraph.html
Normal file
|
@ -0,0 +1,49 @@
|
|||
<meta property="og:title" content="{{ .Title }}" />
|
||||
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" />
|
||||
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}" />
|
||||
<meta property="og:url" content="{{ .Permalink }}" />
|
||||
|
||||
{{- with .Params.image }}
|
||||
{{ $image := $.Resources.GetMatch . }}
|
||||
{{ with $image }}
|
||||
{{ $thumb := .Resize "400x" }}
|
||||
<meta property="og:image" content="{{ $thumb.Permalink }}">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{- $iso8601 := "2006-01-02T15:04:05-07:00" -}}
|
||||
{{- if .IsPage }}
|
||||
{{- if not .PublishDate.IsZero }}<meta property="article:published_time" {{ .PublishDate.Format $iso8601 | printf "content=%q" | safeHTMLAttr }} />
|
||||
{{ else if not .Date.IsZero }}<meta property="article:published_time" {{ .Date.Format $iso8601 | printf "content=%q" | safeHTMLAttr }} />
|
||||
{{ end }}
|
||||
{{- end }}{{/* .IsPage */}}
|
||||
|
||||
{{- with .Params.audio }}<meta property="og:audio" content="{{ . }}" />{{ end }}
|
||||
{{- with .Params.locale }}<meta property="og:locale" content="{{ . }}" />{{ end }}
|
||||
{{- with .Site.Params.title }}<meta property="og:site_name" content="{{ . }}" />{{ end }}
|
||||
{{- with .Params.videos }}
|
||||
{{- range . }}
|
||||
<meta property="og:video" content="{{ . | absURL }}" />
|
||||
{{ end }}{{ end }}
|
||||
|
||||
{{- /* If it is part of a series, link to related articles */}}
|
||||
{{- $permalink := .Permalink }}
|
||||
{{- $siteSeries := .Site.Taxonomies.series }}{{ with .Params.series }}
|
||||
{{- range $name := . }}
|
||||
{{- $series := index $siteSeries $name }}
|
||||
{{- range $page := first 6 $series.Pages }}
|
||||
{{- if ne $page.Permalink $permalink }}<meta property="og:see_also" content="{{ $page.Permalink }}" />{{ end }}
|
||||
{{- end }}
|
||||
{{ end }}{{ end }}
|
||||
|
||||
{{- if .IsPage }}
|
||||
{{- range .Site.Params.Authors }}{{ with .Social.facebook }}
|
||||
<meta property="article:author" content="https://www.facebook.com/{{ . }}" />{{ end }}{{ with .Site.Params.Social.facebook }}
|
||||
<meta property="article:publisher" content="https://www.facebook.com/{{ . }}" />{{ end }}
|
||||
<meta property="article:section" content="{{ .Section }}" />
|
||||
{{- with .Params.tags }}{{ range first 6 . }}
|
||||
<meta property="article:tag" content="{{ . }}" />{{ end }}{{ end }}
|
||||
{{- end }}{{ end }}
|
||||
|
||||
{{- /* Facebook Page Admin ID for Domain Insights */}}
|
||||
{{- with .Site.Params.Social.facebook_admin }}<meta property="fb:admins" content="{{ . }}" />{{ end }}
|
|
@ -0,0 +1,19 @@
|
|||
{{- with .Params.image }}
|
||||
{{ $image := $.Resources.GetMatch . }}
|
||||
{{ with $image }}
|
||||
{{ $thumb := .Resize "400x" }}
|
||||
<meta name="twitter:card" content="summary_large_image"/>
|
||||
<meta name="twitter:image" content="{{ $thumb.Permalink }}">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<meta name="twitter:title" content="{{ .Title }}"/>
|
||||
<meta name="twitter:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end -}}"/>
|
||||
{{ with .Site.Params.Social.twitter -}}
|
||||
<meta name="twitter:site" content="@{{ . }}"/>
|
||||
{{ end -}}
|
||||
{{ range .Site.Params.Authors }}
|
||||
{{ with .twitter -}}
|
||||
<meta name="twitter:creator" content="@{{ . }}"/>
|
||||
{{ end -}}
|
||||
{{ end -}}
|
14
themes/hugo-theme-console/layouts/posts/single.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
{{ $mymonths := index $.Site.Data.mois }}{{ .Date.Day }} {{ index $mymonths (printf "%d" .Date.Month) }} {{ .Date.Year }}
|
||||
{{ with .Params.linkedin }}
|
||||
// <a href="{{ . }}">Linkedin</a>
|
||||
{{ end }}
|
||||
{{ with .Params.twitter }}
|
||||
// <a href="{{ . }}">Twitter</a>
|
||||
{{ end }}
|
||||
<br/><br/>
|
||||
{{ .Content }}
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
{{ end }}
|
16
themes/hugo-theme-console/layouts/sitemap.xml
Normal file
|
@ -0,0 +1,16 @@
|
|||
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||
{{ range .Data.Pages }}
|
||||
{{ if not .Params.private }}
|
||||
<url>
|
||||
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
|
||||
<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
|
||||
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
|
||||
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}{{ if .IsTranslated }}{{ range .Translations }}
|
||||
<xhtml:link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}"/>{{ end }}
|
||||
<xhtml:link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}"/>{{ end }}
|
||||
</url>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</urlset>
|
12
themes/hugo-theme-console/makefile
Normal file
|
@ -0,0 +1,12 @@
|
|||
PWD ?= $(shell pwd)/
|
||||
|
||||
usage: ### Usage (default)
|
||||
@echo
|
||||
@echo "USAGE:"
|
||||
@echo " make command [options]"
|
||||
@echo
|
||||
@echo "COMMANDS:"
|
||||
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed 's/^/ /' | sed -e 's/\\$$//' | sed -e 's/#/ /g'
|
||||
|
||||
hugo-server: ## Run Hugo web server and serve the example site
|
||||
cd exampleSite; hugo server --cleanDestinationDir --themesDir ../../ -t hugo-theme-console
|
7
themes/hugo-theme-console/static/hugo-theme-console/css/animate-4.1.1.min.css
vendored
Normal file
|
@ -0,0 +1,314 @@
|
|||
@font-face {
|
||||
font-family: "Roboto Mono";
|
||||
src: url("../font/RobotoMono-Regular.ttf") format("truetype");
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Roboto Mono";
|
||||
src: url("../font/RobotoMono-Italic.ttf") format("truetype");
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Roboto Mono";
|
||||
src: url("../font/RobotoMono-Bold.ttf") format("truetype");
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Roboto Mono";
|
||||
src: url("../font/RobotoMono-BoldItalic.ttf") format("truetype");
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
:root {
|
||||
--global-font-size: 16px;
|
||||
--global-font-color: #444;
|
||||
--mono-font-stack: Roboto Mono, Menlo, Monaco, Lucida Console,
|
||||
Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono,
|
||||
Courier New, monospace, serif;
|
||||
--font-stack: Roboto Mono, Menlo, Monaco, Lucida Console, Liberation Mono,
|
||||
DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace,
|
||||
serif;
|
||||
--global-line-height: 1.6em;
|
||||
--page-width: 70em;
|
||||
--display-h1-decoration: 1;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--background-color: #222225;
|
||||
--page-width: 60em;
|
||||
--font-color: #e8e9ed;
|
||||
--invert-font-color: #222225;
|
||||
--secondary-color: #a3abba;
|
||||
--tertiary-color: #a3abba;
|
||||
--primary-color: #62c4ff;
|
||||
--error-color: #ff3c74;
|
||||
--progress-bar-background: #3f3f44;
|
||||
--progress-bar-fill: #62c4ff;
|
||||
--code-bg-color: #3f3f44;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
--background-color:#fff;
|
||||
--font-color:#151515;
|
||||
--invert-font-color:#fff;
|
||||
--primary-color:#1a95e0;
|
||||
--secondary-color:#727578;
|
||||
--error-color:#d20962;
|
||||
--progress-bar-background:#727578;
|
||||
--progress-bar-fill:#151515;
|
||||
--code-bg-color:#e8eff2;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 850px) {
|
||||
:root {
|
||||
--global-font-size: 14px;
|
||||
--global-font-color: #444;
|
||||
--global-line-height: 1.6em;
|
||||
--page-width: 70em;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-heading {
|
||||
text-transform: none;
|
||||
letter-spacing: 0;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.box-masonry .box-masonry-image {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.box-masonry,
|
||||
.box-masonry:hover {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.label {
|
||||
font-family: var(--font-stack);
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-stack);
|
||||
font-size: var(--global-font-size);
|
||||
background-color: var(--background-color);
|
||||
margin-bottom: 75px;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
.h1,
|
||||
.h2,
|
||||
.h3,
|
||||
.h4,
|
||||
.h5,
|
||||
.h6 {
|
||||
font-family: var(--font-stack);
|
||||
clear: both;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin-bottom: 150px;
|
||||
}
|
||||
|
||||
.content-column-content p,
|
||||
.content-column-content li {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.btn-ghost {
|
||||
color: #666;
|
||||
background-color: transparent;
|
||||
border-color: #333;
|
||||
font-weight: 400;
|
||||
font-family: var(--font-stack);
|
||||
padding: 6px 12px;
|
||||
font-size: 18px;
|
||||
line-height: 1.55;
|
||||
border-radius: 0;
|
||||
margin-left: 0;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.content-column-content .command {
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
p.social a {
|
||||
margin: 0 0 10px 0;
|
||||
color: #fff;
|
||||
display: inline-block;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
border: none;
|
||||
line-height: 30px;
|
||||
font-size: 25px;
|
||||
text-align: center;
|
||||
vertical-align: bottom;
|
||||
color: #999999;
|
||||
-webkit-transition: all 0.2s ease-out;
|
||||
-moz-transition: all 0.2s ease-out;
|
||||
transition: all 0.2s ease-out;
|
||||
}
|
||||
|
||||
.active a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.terminal-menu li {
|
||||
margin-right: 30px;
|
||||
}
|
||||
|
||||
figure {
|
||||
margin-top: 15px;
|
||||
margin-bottom: 15px;
|
||||
margin-left: 60px;
|
||||
margin-right: 60px;
|
||||
}
|
||||
|
||||
.footer {
|
||||
clear: both;
|
||||
margin-top: 100px;
|
||||
padding-top: 10px;
|
||||
border-top: 1px solid var(--secondary-color);
|
||||
color: var(--global-font-color);
|
||||
}
|
||||
|
||||
.image-grid {
|
||||
display: grid;
|
||||
grid-template-rows: auto;
|
||||
display: grid;
|
||||
grid-gap: 1em;
|
||||
grid-template-rows: auto;
|
||||
grid-template-columns: repeat(
|
||||
auto-fit,
|
||||
minmax(calc(var(--page-width) / 4), 1fr)
|
||||
);
|
||||
}
|
||||
|
||||
.terminal-prompt::after {
|
||||
-webkit-animation: cursor 1s infinite;
|
||||
animation: cursor 1s infinite;
|
||||
width: 10px;
|
||||
}
|
||||
|
||||
.terminal-prompt::before {
|
||||
content: none;
|
||||
}
|
||||
|
||||
.gallery-image {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.posts-list {
|
||||
position: relative;
|
||||
padding-left: 130px;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.post h1,
|
||||
.post h2 {
|
||||
padding-top: 0;
|
||||
margin: 0;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.posts-list .date {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
width: 130px;
|
||||
z-index: 400;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 850px) {
|
||||
.site-name {
|
||||
width: 2ch;
|
||||
overflow: hidden;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.terminal-nav {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.terminal-menu ul {
|
||||
align-items: flex-start;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: left;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.terminal-menu li {
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
.logo {
|
||||
padding: calc(var(--global-space) * 1) 0 calc(var(--global-space) * 1);
|
||||
}
|
||||
|
||||
figure {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
margin-left: 30px;
|
||||
margin-right: 30px;
|
||||
}
|
||||
|
||||
.posts-list {
|
||||
position: relative;
|
||||
padding-left: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.post h1,
|
||||
.post h2 {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.posts-list .date {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
width: 150px;
|
||||
z-index: 400;
|
||||
font-weight: bold;
|
||||
padding-top: 0;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.footer {
|
||||
margin-top: 50px;
|
||||
padding-top: 5px;
|
||||
}
|
||||
}
|
1
themes/hugo-theme-console/static/hugo-theme-console/css/terminal-0.7.4.min.css
vendored
Normal file
18
themes/hugo-theme-console/theme.toml
Normal file
|
@ -0,0 +1,18 @@
|
|||
name = "hugo-theme-console"
|
||||
license = "MIT"
|
||||
licenselink = "https://github.com/mrmierzejewski/hugo-theme-console/blob/master/LICENSE"
|
||||
description = " minimal and responsive Hugo theme inspired by the system console, crafted for optimal performance with an average page load time of under one second."
|
||||
homepage = "https://github.com/mrmierzejewski/hugo-theme-console"
|
||||
tags = ["blog", "gallery", "portfolio", "console", "terminal", "clean", "personal", "minimal", "monotone", "simple", "technical", "responsive", "mobile", "minimalist", "retro", "animation"]
|
||||
features = ["disqus", "responsive", "google analytics"]
|
||||
min_version = "0.90.0"
|
||||
|
||||
[author]
|
||||
name = "Marcin Mierzejewski"
|
||||
homepage = "https://mrmierzejewski.com"
|
||||
github = "https://github.com/mrmierzejewski"
|
||||
|
||||
[original]
|
||||
author = "Jonas D."
|
||||
homepage = "https://terminalcss.xyz/"
|
||||
repo = "https://github.com/Gioni06/terminal.css"
|