parent
7c3b1e556e
commit
9c86467e3d
@ -1 +0,0 @@
|
||||
Subproject commit 798b4f49f8e396d0ab601b33c5bb90901dceac8e
|
@ -0,0 +1 @@
|
||||
*.sw[o|p]
|
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2018 B.C.Rikko <https://github.com/BcRikko>
|
||||
|
||||
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.
|
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018 Robin de Silva Jayasinghe
|
||||
|
||||
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.
|
||||
|
@ -0,0 +1,9 @@
|
||||
# hugo-nes-classic
|
||||
|
||||
A minimalistic Hugo theme using the NES.css framework (https://nostalgic-css.github.io/NES.css/). This is my first theme. PRs for improvents are welcome! :)
|
||||
|
||||
Since I neither want to include some build steps nor want to depend on external hosting for the CSS files I included a copy of the NES.css sourcecode. Kudos to B.C.Rikko <https://github.com/BcRikko>
|
||||
|
||||
The theme is as simple as it can get. The homepage lists all pages and blog posts and the menu items can be configured in the config.toml descriptor.
|
||||
|
||||
The exapmle site can be found in a dedicated repo: https://github.com/rjayasinghe/hugo-nes-classic-example
|
@ -0,0 +1,8 @@
|
||||
---
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
date: {{ .Date }}
|
||||
Description: ""
|
||||
Tags: []
|
||||
Categories: []
|
||||
|
||||
---
|
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 27 KiB |
@ -0,0 +1,3 @@
|
||||
{{ partial "header.html"}}
|
||||
404!
|
||||
{{ partial "footer.html"}}
|
@ -0,0 +1,5 @@
|
||||
{{ partial "header.html" . }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{.TableOfContents}}
|
||||
{{ .Content }}
|
||||
{{ partial "footer.html" . }}
|
@ -0,0 +1,10 @@
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
<h1>Hi there!</h1>
|
||||
|
||||
<p>You know how this works. Navigation at top bar. Click to navigate. ;-D</p>
|
||||
|
||||
<img src="/starter.jpg" width="600"/>
|
||||
|
||||
|
||||
{{ partial "footer.html" . }}
|
@ -0,0 +1,20 @@
|
||||
</section>
|
||||
|
||||
<center>
|
||||
<img src="https://img.shields.io/badge/RandomWOW-ASIC%20DED.-blueviolet">
|
||||
<img src="https://img.shields.io/badge/Low%20Emission-Certified-success">
|
||||
<img src="https://img.shields.io/badge/Jeff-Online-success">
|
||||
<img src="https://img.shields.io/badge/Safu-100%25-success">
|
||||
<br>
|
||||
<a href="wownero:Wo3MWeKwtA918DU4c69hVSNgejdWFCRCuWjShRY66mJkU2Hv58eygJWDJS1MNa2Ge5M1WjUkGHuLqHkweDxwZZU42d16v94mP">
|
||||
<img src="https://img.shields.io/badge/Donate WOW-Wo3MWeKwtA918DU4c69hVSNgejdWFCRCuWjShRY66mJkU2Hv58eygJWDJS1MNa2Ge5M1WjUkGHuLqHkweDxwZZU42d16v94mP-FF00FF">
|
||||
</a>
|
||||
<br>
|
||||
<a href="monero:44AFFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A">
|
||||
<img src="https://img.shields.io/badge/Donate XMR-44AFFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A-FF00FF">
|
||||
</a>
|
||||
</center>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ .Title }}</title>
|
||||
|
||||
<link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet">
|
||||
<link href="/css/nes.min.css" rel="stylesheet" />
|
||||
<link href="/css/style.css" rel="stylesheet" />
|
||||
<link href="/css/nav.css" rel="stylesheet" />
|
||||
<link href="/css/misc.css" rel="stylesheet" />
|
||||
</head>
|
||||
<body class="eggplant">
|
||||
<center>
|
||||
<a href="https://wowbux.org">
|
||||
<img src="/cooldoge.gif" alt="coin" width="169" height="169">
|
||||
</a>
|
||||
</center>
|
||||
{{ partial "nav.html" . }}
|
||||
<section class="nes-container is-dark with-title main-centered">
|
@ -0,0 +1,9 @@
|
||||
<div class="main-centered" id="mainmenu">
|
||||
<ul class="menu">
|
||||
{{ range .Site.Menus.main.ByWeight }}
|
||||
<li class="menu">
|
||||
<a class="nes-btn is-primary" title="{{ .Name }}" href="{{ .URL | relLangURL }}">{{ .Name }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
@ -0,0 +1,8 @@
|
||||
{{ partial "header.html" . }}
|
||||
<h1>posts</h1>
|
||||
{{ range .Data.Pages }}
|
||||
{{ if eq .Type "post"}}
|
||||
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ partial "footer.html" . }}
|
@ -0,0 +1,6 @@
|
||||
{{ partial "header.html" . }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
<p>{{ .Date.Format "Monday, January 2, 2006" }}</p>
|
||||
{{.TableOfContents}}
|
||||
{{ .Content }}
|
||||
{{ partial "footer.html" . }}
|
@ -0,0 +1,3 @@
|
||||
.eggplant {
|
||||
cursor:url(/img/eggplant_cur.png),auto
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
ul.menu {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
background-color: transparent;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
li.menu {
|
||||
float: left;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,143 @@
|
||||
body {
|
||||
padding: 0 2rem;
|
||||
margin: 2rem;
|
||||
background-repeat: repeat;
|
||||
background-image: url(/transdoge.png), linear-gradient(#ff74f5, #ffd600);
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
pre {
|
||||
background-image: linear-gradient(#ffd600, #ff74f5);
|
||||
color: black;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.main-centered {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 1024px;
|
||||
|
||||
}
|
||||
|
||||
.nes-container:not(:last-child) {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.nes-container.is-dark {
|
||||
height: 89%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
i.brand {
|
||||
margin-right: 1rem;
|
||||
}
|
||||
|
||||
div.containers > .nes-container {
|
||||
display: inline-block;
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #ff74f5;
|
||||
}
|
||||
h2 {
|
||||
color: #ff74f5;
|
||||
}
|
||||
|
||||
h3 {
|
||||
color: #ff74f5;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #ffd600;
|
||||
}
|
||||
|
||||
|
||||
.selects {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.selects .nes-select {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.nes-select + .nes-select {
|
||||
margin-left: 24px;
|
||||
}
|
||||
|
||||
.balloon.nes-container .nes-balloon {
|
||||
max-width: 600px;
|
||||
margin: 2rem 2rem;
|
||||
}
|
||||
|
||||
.balloon.nes-container .messages {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.balloon.nes-container .message {
|
||||
display: flex;
|
||||
}
|
||||
.balloon.nes-container .message i {
|
||||
align-self: flex-end;
|
||||
}
|
||||
.balloon.nes-container .message.-left {
|
||||
align-self: flex-start;
|
||||
}
|
||||
.balloon.nes-container .message.-right {
|
||||
align-self: flex-end;
|
||||
}
|
||||
|
||||
.form.nes-container > .nes-field:not(:last-child) {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.footer {
|
||||
text-align: center;
|
||||
}
|
||||
.footer a {
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.github-link {
|
||||
position: fixed;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
z-index: 999;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
}
|
||||
.github-link:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
.github-link > p.nes-balloon {
|
||||
align-self: flex-start;
|
||||
padding: 0.2rem 0.5rem;
|
||||
font-size: 0.8rem;
|
||||
color: #333;
|
||||
}
|
||||
.github-link > i.nes-octocat {
|
||||
align-self: flex-end;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 2rem 0.2rem;
|
||||
}
|
||||
.balloon.nes-container .nes-balloon {
|
||||
max-width: 70%;
|
||||
}
|
||||
|
||||
.github-link {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 1.4 KiB |
@ -0,0 +1,12 @@
|
||||
name = "Hugo NES classic"
|
||||
license = "MIT"
|
||||
licenselink = "https://github.com/rjayasinghe/hugo-nes-classic/blob/master/LICENSE.md"
|
||||
description = "a simple theme with NES classic styling"
|
||||
tags = ["blog", "static page", "minimal", "responsive"]
|
||||
features = ["blog", "themes", "minimal", "responsive", "staticman"]
|
||||
min_version = 0.28
|
||||
|
||||
[author]
|
||||
name = "rjayasinghe"
|
||||
homepage = "https//jayasinghe.de"
|
||||
|
Loading…
Reference in new issue