add theme things

pull/3/head
qvqc 4 years ago
parent 7c3b1e556e
commit 9c86467e3d

@ -1 +0,0 @@
Subproject commit 798b4f49f8e396d0ab601b33c5bb90901dceac8e

@ -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: []
---

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

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;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Creator: CorelDRAW -->
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="297mm" height="210mm" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd"
viewBox="0 0 297 210"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<style type="text/css">
<![CDATA[
.fil4 {fill:#3E7015}
.fil2 {fill:#481B6C}
.fil0 {fill:#4A1A75}
.fil5 {fill:#718D3D}
.fil3 {fill:url(#id0)}
.fil1 {fill:url(#id1)}
]]>
</style>
<linearGradient id="id0" gradientUnits="userSpaceOnUse" x1="121.948" y1="167.781" x2="177.22" y2="167.781">
<stop offset="0" style="stop-color:#481B6C"/>
<stop offset="0.101961" style="stop-color:#401861"/>
<stop offset="1" style="stop-color:#481B6C"/>
</linearGradient>
<linearGradient id="id1" gradientUnits="userSpaceOnUse" x1="159.684" y1="184.225" x2="159.684" y2="57.7956">
<stop offset="0" style="stop-color:#28103D"/>
<stop offset="1" style="stop-color:#35194D"/>
</linearGradient>
</defs>
<g id="Layer_x0020_1">
<metadata id="CorelCorpID_0Corel-Layer"/>
<g id="_132626200">
<path id="_132629512" class="fil0" d="M148.354 56.7218c9.5089,4.2275 19.4485,15.3268 29.5463,28.9689 2.9905,4.0395 6.081,7.3985 9.3298,11.1864 21.9176,25.5584 25.5953,69.5305 1.7099,84.4448 -3.4514,2.1545 -8.1065,4.3764 -12.0162,5.4877 -20.0788,5.7058 -53.0339,-8.944 -56.5147,-51.3226 -0.4649,-5.6601 -0.1271,-11.2278 -0.9863,-16.8656 -2.85,-18.7044 -6.4672,-39.3575 -3.531,-50.3772l32.4622 -11.5224z"/>
<path id="_132629416" class="fil1" d="M145.905 57.7956c8.8853,3.9503 11.4837,10.862 20.919,23.6092 2.794,3.7742 5.6627,8.5464 8.718,12.0677 21.2637,24.508 30.9578,65.0257 10.364,82.1373 -7.6298,6.3389 -13.0143,8.6154 -22.8874,7.7386 -21.7775,-1.9355 -42.0083,-19.5509 -42.65,-54.025 -0.0985,-5.3035 -0.6957,-8.4198 -1.4977,-13.6871 -2.6624,-17.4771 -6.0013,-37.3308 -3.2575,-47.6279l30.2916 -10.2128z"/>
<path id="_132629320" class="fil2" d="M160.853 89.5502c-11.7798,1.1161 11.0608,55.4128 26.5503,64.146 3.8603,2.1767 4.7486,1.5913 5.3189,-2.8816 3.0461,-23.844 -19.6357,-58.6028 -31.8692,-61.2644z"/>
<path id="_132629080" class="fil3" d="M125.777 143.531c-3.8283,22.9363 42.7005,48.4987 51.4435,33.2191 -26.7883,-6.9984 -40.6825,-19.4481 -51.4435,-33.2191z"/>
<path id="_132629056" class="fil4" d="M126.411 84.708c-3.3452,-3.3808 -7.4456,-7.8421 -11.2459,-15.4584 -0.4383,-3.3958 0.8156,-8.7852 4.0834,-12.5674 2.5772,-2.9825 2.3967,-2.6069 0.8859,-6.3055l-10.9828 -26.5762c-0.6738,-1.6313 -1.4784,-2.2331 0.4538,-3.0368 1.4455,-0.6018 3.1448,-0.4529 5.0983,0.7335 6.0654,8.4319 11.193,16.6291 15.7081,28.8249 1.7242,3.2572 1.4179,3.0687 5.008,3.002 12.8684,-0.24 19.197,6.9842 22.4226,17.771l0.1493 7.0323c-1.9304,11.2855 -1.7415,11.9957 -6.3721,1.9517 -1.157,-2.51 -2.5478,-4.5551 -4.6196,-5.7543l-1.4419 6.3552c-1.2156,5.6748 -1.1312,7.0607 -5.1533,2.7256 -2.6034,-2.8056 -4.7938,-5.5489 -6.7847,-7.9274l0.0707 7.7261c-0.8374,9.6355 -1.3833,7.462 -7.2798,1.5037z"/>
</g>
<path class="fil5" d="M128.337 79.5294c-2.9301,-2.5687 -6.5217,-5.9585 -9.8504,-11.7454 -0.3839,-2.5802 0.7144,-6.6751 3.5767,-9.5488 2.2574,-2.2661 2.0993,-1.9807 0.776,-4.7909l-9.6199 -20.1929c-0.5903,-1.2394 -1.2949,-1.6967 0.3975,-2.3073 1.2661,-0.4573 2.7545,-0.3441 4.4656,0.5572 5.3127,6.4067 9.804,12.635 13.7588,21.9014 1.5102,2.4749 1.242,2.3317 4.3866,2.281 11.2714,-0.1824 16.8146,5.3067 19.64,13.5025l0.1308 5.3432c-1.6909,8.5748 -1.5254,9.1145 -5.5814,1.4829 -1.0134,-1.9071 -2.2316,-3.461 -4.0463,-4.3721l-1.263 4.8287c-1.0648,4.3117 -0.9908,5.3648 -4.5138,2.0709 -2.2803,-2.1317 -4.1989,-4.2161 -5.9427,-6.0233l0.0619 5.8704c-0.7335,7.3211 -1.2116,5.6697 -6.3764,1.1425z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

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…
Cancel
Save