big bang
21
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.
|
31
README.md
Normal file
|
@ -0,0 +1,31 @@
|
|||
# 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://mrmierzejewski.com
|
||||
|
||||
## Installation
|
||||
|
||||
$ 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"
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
Copyright © 2020 [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.
|
1
exampleSite/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
resources
|
18
exampleSite/config.toml
Normal file
|
@ -0,0 +1,18 @@
|
|||
baseurl = "//example.com/"
|
||||
title = "console-demo"
|
||||
theme = "hugo-theme-console"
|
||||
languageCode = "en-us"
|
||||
|
||||
[params]
|
||||
[[params.navlinks]]
|
||||
name = "about/"
|
||||
url = "/about/"
|
||||
|
||||
[[params.navlinks]]
|
||||
name = "posts/"
|
||||
url = "/posts/"
|
||||
home = true
|
||||
|
||||
[[params.navlinks]]
|
||||
name = "photos/"
|
||||
url = "photos/"
|
BIN
exampleSite/content/.DS_Store
vendored
Normal file
30
exampleSite/content/about/index.md
Normal file
|
@ -0,0 +1,30 @@
|
|||
+++
|
||||
date = "2016-11-05T21:05:33+05:30"
|
||||
title = "About"
|
||||
+++
|
||||
|
||||
A minimal, responsive and light theme for Hugo inspired by Linux console.
|
||||
|
||||
![Console](https://github.com/mrmierzejewski/hugo-theme-console/blob/master/images/screenshot.png?raw=true)
|
||||
|
||||
## Installation
|
||||
|
||||
$ 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"
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
Copyright © 2020 [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.
|
BIN
exampleSite/content/photos/.DS_Store
vendored
Normal file
6
exampleSite/content/photos/_index.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
+++
|
||||
title = "Photos"
|
||||
type = "gallery"
|
||||
+++
|
||||
|
||||
|
BIN
exampleSite/content/photos/arizona-us/arizona-us.jpg
Normal file
After Width: | Height: | Size: 469 KiB |
10
exampleSite/content/photos/arizona-us/index.md
Normal file
|
@ -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).
|
BIN
exampleSite/content/photos/chicago-us/chicago-us.jpg
Normal file
After Width: | Height: | Size: 463 KiB |
8
exampleSite/content/photos/chicago-us/index.md
Normal file
|
@ -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.
|
BIN
exampleSite/content/photos/hel-poland-2/hel-poland-2.jpg
Normal file
After Width: | Height: | Size: 490 KiB |
9
exampleSite/content/photos/hel-poland-2/index.md
Normal file
|
@ -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.
|
BIN
exampleSite/content/photos/hel-poland-3/hel-poland-3.jpg
Normal file
After Width: | Height: | Size: 338 KiB |
9
exampleSite/content/photos/hel-poland-3/index.md
Normal file
|
@ -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.
|
8
exampleSite/content/photos/panaji-india-2/index.md
Normal file
|
@ -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.
|
BIN
exampleSite/content/photos/panaji-india-2/panaji-india-2.jpg
Normal file
After Width: | Height: | Size: 450 KiB |
9
exampleSite/content/photos/warsaw-poland/index.md
Normal file
|
@ -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.
|
BIN
exampleSite/content/photos/warsaw-poland/warsaw-poland.jpg
Normal file
After Width: | Height: | Size: 462 KiB |
BIN
exampleSite/content/posts/.DS_Store
vendored
Normal file
3
exampleSite/content/posts/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
+++
|
||||
title = "Posts"
|
||||
+++
|
12
exampleSite/content/posts/introduction/index.md
Normal file
|
@ -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.
|
45
exampleSite/content/posts/what-is-hugo/index.md
Normal file
|
@ -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][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][gobootcamp] or reach out to the Hugo community in the [Hugo Discussion Forums][forums].
|
||||
|
||||
### Install Go From Source
|
||||
|
||||
[Download the latest stable version of Go][godl] and follow the official [Go installation guide][goinstall].
|
||||
|
||||
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][setupgopath].
|
||||
|
||||
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
images/preview.png
Normal file
After Width: | Height: | Size: 963 KiB |
BIN
images/screenshot.png
Normal file
After Width: | Height: | Size: 779 KiB |
BIN
images/tn.png
Normal file
After Width: | Height: | Size: 332 KiB |
4
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
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.1.min.css" | absURL }}">
|
||||
<link rel="stylesheet" href="{{ "hugo-theme-console/css/animate-3.7.2.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 }}
|
||||
|
||||
<link rel="shortcut icon" href="{{ "img/favicon.ico" | absURL }}">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png">
|
||||
<link rel="manifest" href="/img/site.webmanifest">
|
||||
{{ with .OutputFormats.Get "RSS" }}
|
||||
{{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }}
|
||||
{{ end }}
|
||||
{{ template "opengraph.html" . }}
|
||||
{{ template "_internal/twitter_cards.html" . }}
|
||||
{{ template "_internal/google_analytics.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 site-name">{{ .Site.Title }}</a>:~# {{ range $index, $element := split $url "/" }}{{ $.Scratch.Add "path" $element }}{{ if ne $element "" }}<a href='{{ $.Scratch.Get "path" }}'>{{ . }}</a>/{{ $.Scratch.Add "path" "/" }}{{ end }}{{ end }}</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 animated zoomIn fast">
|
||||
{{ block "main" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
14
layouts/_default/list.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
{{ define "main" }}
|
||||
<h1>{{ .Page.Title }}</h1>
|
||||
<br/>
|
||||
{{ .Content }}
|
||||
|
||||
{{ range sort .Data.Pages "Date" "desc" }}
|
||||
{{ if not .Params.private }}
|
||||
<div class="post-list-date">{{ .PublishDate.Format "Jan. 2, 2006" }}</div>
|
||||
<h1><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1>
|
||||
{{ .Summary }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
4
layouts/_default/single.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
{{ end }}
|
17
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
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" . }}
|
||||
</div>
|
||||
{{ end }}
|
7
layouts/index.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<head>
|
||||
{{ range .Site.Params.navlinks }}
|
||||
{{ if .home }}
|
||||
<meta http-equiv="refresh" content="0; URL={{ .url | absURL }}" />
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</head>
|
49
layouts/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.Authors }}{{ with .Social.facebook }}
|
||||
<meta property="article:author" content="https://www.facebook.com/{{ . }}" />{{ end }}{{ with .Site.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.Social.facebook_admin }}<meta property="fb:admins" content="{{ . }}" />{{ end }}
|
14
layouts/posts/single.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
{{ .PublishDate.Format "Jan. 2, 2006" }}
|
||||
{{ 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
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>
|
11
static/hugo-theme-console/css/animate-3.7.2.min.css
vendored
Normal file
223
static/hugo-theme-console/css/console.css
Normal file
|
@ -0,0 +1,223 @@
|
|||
@font-face {
|
||||
font-family: 'Roboto Mono';
|
||||
src: url('/hugo-theme-console/font/RobotoMono-Regular.ttf') format('truetype');
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto Mono';
|
||||
src: url('/hugo-theme-console/font/RobotoMono-Italic.ttf') format('truetype');
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto Mono';
|
||||
src: url('/hugo-theme-console/font/RobotoMono-Bold.ttf') format('truetype');
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto Mono';
|
||||
src: url('/hugo-theme-console/font/RobotoMono-BoldItalic.ttf') format('truetype');
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
.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: #fff;
|
||||
margin-bottom: 75px;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
.h1,
|
||||
.h2,
|
||||
.h3,
|
||||
.h4,
|
||||
.h5,
|
||||
.h6 {
|
||||
font-family: var(--font-stack);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
: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;
|
||||
}
|
||||
|
||||
.terminal-menu li {
|
||||
margin-right: 30px;
|
||||
}
|
||||
|
||||
.post-list-date {
|
||||
float: left;
|
||||
font-weight: bold;
|
||||
width: 150px;
|
||||
height: 120px;
|
||||
margin-top: 21px;
|
||||
}
|
||||
|
||||
figure {
|
||||
margin-top: 15px;
|
||||
margin-bottom: 15px;
|
||||
margin-left: 60px;
|
||||
margin-right: 60px;
|
||||
}
|
||||
|
||||
|
||||
@media only screen and (max-width: 850px) {
|
||||
.site-name {
|
||||
display: none;
|
||||
}
|
||||
.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);
|
||||
}
|
||||
:root {
|
||||
--global-font-size: 14px;
|
||||
--global-font-color: #444;
|
||||
--global-line-height: 1.6em;
|
||||
--page-width: 70em;
|
||||
}
|
||||
figure {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
margin-left: 30px;
|
||||
margin-right: 30px;
|
||||
}
|
||||
.post-list-date {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.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;
|
||||
}
|
1
static/hugo-theme-console/css/terminal-0.7.1.min.css
vendored
Normal file
BIN
static/hugo-theme-console/font/RobotoMono-Bold.ttf
Normal file
BIN
static/hugo-theme-console/font/RobotoMono-BoldItalic.ttf
Normal file
BIN
static/hugo-theme-console/font/RobotoMono-Italic.ttf
Normal file
BIN
static/hugo-theme-console/font/RobotoMono-Regular.ttf
Normal file
18
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 = "A minimal, responsive and light theme for Hugo inspired by Linux console."
|
||||
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.69.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"
|