initial commit
0
.hugo_build.lock
Normal file
5
archetypes/default.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
+++
|
||||||
|
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
|
||||||
|
date = {{ .Date }}
|
||||||
|
draft = true
|
||||||
|
+++
|
111
content/posts/my-first-post.md
Normal file
|
@ -0,0 +1,111 @@
|
||||||
|
+++
|
||||||
|
title = "my neat linux setup"
|
||||||
|
date = "2023-09-07T23:20:19+02:00"
|
||||||
|
author = ""
|
||||||
|
authorTwitter = "" #do not include @
|
||||||
|
cover = ""
|
||||||
|
tags = ["", ""]
|
||||||
|
keywords = ["", ""]
|
||||||
|
description = ""
|
||||||
|
showFullContent = false
|
||||||
|
readingTime = false
|
||||||
|
hideComments = false
|
||||||
|
color = "" #color from the theme settings
|
||||||
|
draft = true
|
||||||
|
+++
|
||||||
|
so, this a guide to replicate my linux setup, ideally in time there will be a script to replicate instantly all this cool stuff on any arch/artix based linux distribution
|
||||||
|
i make heavy use of [Luke Smith](https://github.com/LukeSmithxyz)'s LARBS
|
||||||
|
|
||||||
|
# distribution: artix
|
||||||
|
is basically arch only without that piece of this cringeware that is systemd.
|
||||||
|
When it comes to replace it you have a number of choices that range from decent to very fucking good, ive only ever used runit but youre free to have anyone you like
|
||||||
|
|
||||||
|
Visit the [Artix](https://artixlinux.org/) website and check all the neat infos they have
|
||||||
|
|
||||||
|
"Q. Do you hate systemd?
|
||||||
|
A. No, we don't. In fact, we love systemd. But we would never use [such](https://thehackernews.com/2019/01/linux-systemd-exploit.html) a [sucky piece](https://suckless.org/sucks/systemd/) of [bloatware](https://chiefio.wordpress.com/2016/05/18/systemd-it-keeps-getting-worse/) near [anywhere](without-systemd.org/wiki/index.php/Arguments_against_systemd) we [cared](https://www.theregister.co.uk/2018/10/26/systemd_dhcpv6_rce/) [about](www.softpanorama.org/Commercial_linuxes/Startup_and_shutdown/systemd.shtml) [security](https://www.theregister.com/2019/01/31/systemd_exploit/)"
|
||||||
|
|
||||||
|
# window manager: dwm
|
||||||
|
"[dwm](https://dwm.suckless.org/) is a dynamic window manager for X. It manages windows in tiled, monocle and floating layouts. All of the layouts can be applied dynamically, optimising the environment for the application in use and the task performed.
|
||||||
|
|
||||||
|
In tiled layout windows are managed in a master and stacking area. The master area contains the window which currently needs most attention, whereas the stacking area contains all other windows. In monocle layout all windows are maximised to the screen size. In floating layout windows can be resized and moved freely. Dialog windows are always managed floating, regardless of the layout applied."
|
||||||
|
|
||||||
|
there is a ton of customisation possible and patches that you can compile to modify the behaviour, vim bindings to navigate the entire system are a fucking blessing i swear, here are some very simple modification i did:
|
||||||
|
- horizontal and vertical inner gap between windows is set to to 7
|
||||||
|
- horizontal and vertical outer gap between windows and screen edge is set to 7
|
||||||
|
- MODKEY + F11 launches the "touchpad" script that disables the touchpad
|
||||||
|
- MODKEY + Shift + b launches the "bluetooth" script that toggles the bluetooth
|
||||||
|
- border color is the to white
|
||||||
|
|
||||||
|
# status bar: dwmblocks
|
||||||
|
|
||||||
|
[dwmblocks](https://github.com/torrinfail/dwmblocks) is a modular status bar for dwm written in C, if you run Luke's LARBS script, dwm will arrive with a bunch of very well done scripts for all you general needs, i added some scripts of my own (example: bluetooth script to show the status)
|
||||||
|
you can also find pre-made scripts all over the world wide web
|
||||||
|
|
||||||
|
|
||||||
|
its super minimalistic, super customizable and super light, highly fucking recommended
|
||||||
|
|
||||||
|
# menu: dmenu
|
||||||
|
|
||||||
|
"[dmenu](https://wiki.archlinux.org/title/dmenu) is a fast and lightweight dynamic menu for X. It reads arbitrary text from stdin, and creates a menu with one item for each line. The user can then select an item, through the arrow keys or typing a part of the name, and the line is printed to stdout. dmenu_run is a wrapper that ships with the dmenu distribution that allows its use as an application launcher."
|
||||||
|
|
||||||
|
its cool and you it supports a ton of stuff, like pass
|
||||||
|
|
||||||
|
# file manager: lf
|
||||||
|
[lf](https://github.com/gokcehan/lf) (as in "list files") is a terminal file manager written in Go with a heavy inspiration from ranger file manager. See faq for more information and tutorial for a gentle introduction with screencasts.
|
||||||
|
super light, super easy to config, and, of course, supports vim bindings
|
||||||
|
|
||||||
|
# email client: neomutt
|
||||||
|
[neomutt](https://neomutt.org/) is a command line mail reader, has a ton of cool features, its super light and, of course, uses vim bindings
|
||||||
|
you can use [mutt-wizard](https://github.com/LukeSmithxyz/mutt-wizard) to easily setup ports and everyhing
|
||||||
|
|
||||||
|
# battery utility: battop
|
||||||
|
[battop](https://github.com/svartalf/rust-battop) is an interactive battery viewer written in rust that works from the terminal, it gives you all the basic battery info you want to know using a series of graph, so you can grep stuff, still its very lightweight and supports multiple batteries (if you have a thinkpad you know what im talking about)
|
||||||
|
|
||||||
|
# battery optimization: TLP
|
||||||
|
[TLP](https://linrunner.de/tlp/index.html) is a feature-rich command line utility for Linux, saving laptop battery power without the need to delve deeper into technical details.
|
||||||
|
TLP’s default settings are already optimized for battery life and implement Powertop’s recommendations out of the box. So you may just install and forget it.
|
||||||
|
Nevertheless TLP is highly customizable to fulfil your specific requirements.
|
||||||
|
|
||||||
|
P.S. i stil cant manage to make the TLP service work properly with runit, so if you want to create a highy customized config you might want to stick to [systemd](https://en.wikipedia.org/wiki/Trash)
|
||||||
|
|
||||||
|
# swag: neofetch
|
||||||
|
do i need to say more? you can have it start at login to flex on r/unixporn, normal users will be most likely disgusted
|
||||||
|
|
||||||
|
# task manager: htop
|
||||||
|
again, you ever want to be considered by the cool guys and gals of the ricing sub-scene you have to have this process viewer
|
||||||
|
all jokes aside [htop](https://htop.dev/) is a neat piece of software, super useful
|
||||||
|
|
||||||
|
# text editor: vim
|
||||||
|
ok, big boys time, i use vim as my main text editor both to play around in linux and to write code
|
||||||
|
i use [NvChad](https://nvchad.com/) setup, its a very IDE like setup and you can go much more minimalistic if you need to.
|
||||||
|
is uses SPACE as the default leader key and has a neat cheatsheet with "LEADER + ch"
|
||||||
|
i didnt customize the setup very much just:
|
||||||
|
- relative lines set to true
|
||||||
|
- catcapuccin as my theme
|
||||||
|
- path_display not truncated
|
||||||
|
- telescope search with hidden files enabled
|
||||||
|
|
||||||
|
# calendar: calcurse
|
||||||
|
[calcurse](https://calcurse.org/) is a calendar and scheduling application. Terminal based, uses vim bindings, thats it
|
||||||
|
|
||||||
|
# RSS reader: newsboat
|
||||||
|
[newsboat](https://newsboat.org) is an RSS/Atom feed reader for the text console. Super easy to setup and use, uses vim bindings
|
||||||
|
|
||||||
|
# browser: librewolf
|
||||||
|
TODO
|
||||||
|
|
||||||
|
# pipewire
|
||||||
|
TODO
|
||||||
|
|
||||||
|
# logseq
|
||||||
|
TODO
|
||||||
|
|
||||||
|
# puslemixer
|
||||||
|
TODO
|
||||||
|
|
||||||
|
# Network Manager: nmtui
|
||||||
|
TODO
|
||||||
|
|
||||||
|
# static site builder: hugo
|
||||||
|
This site was built using this tool, it enables you to quickly and easily setup a static site, you can create contents from the terminal
|
24
content/posts/my-second-post.md
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
+++
|
||||||
|
title = 'My T400 setup'
|
||||||
|
date = 2023-09-08T16:29:32+02:00
|
||||||
|
draft = false
|
||||||
|
+++
|
||||||
|
|
||||||
|
# thinkpad t400 setup
|
||||||
|
|
||||||
|
my daily driver is the Thinkpad T400, the most powerful laptop that you can libreboot to remove completely the propietary Lenovo BIOS in favor of a fully open source BIOS
|
||||||
|
|
||||||
|
some info on the [Thinkpad T400](https://mcdojf.wixsite.com/t400)
|
||||||
|
|
||||||
|
# MODS
|
||||||
|
ive done a small number of mods to my stock T400, here they are:
|
||||||
|
|
||||||
|
# Libreboot
|
||||||
|
TODO
|
||||||
|
# Quad-core mod
|
||||||
|
TODO
|
||||||
|
# bluetooth
|
||||||
|
the bluetooth of the T400 is 2.1, you can easily upgrade the bluetooth 4.0 easily by swapping the card located behind the LCD front bezel
|
||||||
|
# Ultra-bay mod
|
||||||
|
TODO
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit a03f416d170c0c1077a60df03cd13c6f41b83728
|
|
4
hugo.toml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
baseURL = 'https://example.org/'
|
||||||
|
languageCode = 'en-us'
|
||||||
|
title = 'My New Hugo Site'
|
||||||
|
theme = 'hugo-theme-console'
|
|
@ -0,0 +1 @@
|
||||||
|
{"Target":"styles.css","MediaType":"text/css","Data":{}}
|
1
themes/hugo-theme-console/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.DS_Store
|
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.
|
46
themes/hugo-theme-console/README.md
Normal file
|
@ -0,0 +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.
|
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/"
|
32
themes/hugo-theme-console/exampleSite/content/about/index.md
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
+++
|
||||||
|
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/preview.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.
|
|
@ -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.2.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 "Jan. 2, 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>
|
||||||
|
this is a colletion of all my cool stuff <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 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.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 }}
|
|
@ -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.Social.twitter -}}
|
||||||
|
<meta name="twitter:site" content="@{{ . }}"/>
|
||||||
|
{{ end -}}
|
||||||
|
{{ range .Site.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>
|
||||||
|
|
||||||
|
{{ .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
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
|
31
themes/hugo-theme-console/netlify.toml
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
[build]
|
||||||
|
base = "exampleSite"
|
||||||
|
publish = "public"
|
||||||
|
command = "hugo --gc --minify --themesDir ../../ -t repo -b $URL"
|
||||||
|
|
||||||
|
[context.production.environment]
|
||||||
|
HUGO_VERSION = "0.81.0"
|
||||||
|
HUGO_ENV = "production"
|
||||||
|
HUGO_ENABLEGITINFO = "true"
|
||||||
|
|
||||||
|
[context.split1]
|
||||||
|
command = "hugo --gc --minify --enableGitInfo -b $DEPLOY_PRIME_URL --themesDir ../../ -t repo"
|
||||||
|
|
||||||
|
[context.split1.environment]
|
||||||
|
HUGO_VERSION = "0.81.0"
|
||||||
|
HUGO_ENV = "production"
|
||||||
|
|
||||||
|
[context.deploy-preview]
|
||||||
|
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL --themesDir ../../ -t repo"
|
||||||
|
|
||||||
|
[context.deploy-preview.environment]
|
||||||
|
HUGO_VERSION = "0.81.0"
|
||||||
|
|
||||||
|
[context.branch-deploy]
|
||||||
|
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL --themesDir ../../ -t repo"
|
||||||
|
|
||||||
|
[context.branch-deploy.environment]
|
||||||
|
HUGO_VERSION = "0.81.0"
|
||||||
|
|
||||||
|
[context.next.environment]
|
||||||
|
HUGO_ENABLEGITINFO = "true"
|
7
themes/hugo-theme-console/static/hugo-theme-console/css/animate-4.1.1.min.css
vendored
Normal file
|
@ -0,0 +1,279 @@
|
||||||
|
@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;
|
||||||
|
--code-bg-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
@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: #fff;
|
||||||
|
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.2.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 = "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.81.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"
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 7e13d24d10c59c1cf1d1f011f7c4c93266d8aa7d
|
|