Switch to Hugo-based build
This commit is contained in:
parent
21feddaf52
commit
10b809eebd
18 changed files with 257 additions and 0 deletions
20
themes/custom/LICENSE
Normal file
20
themes/custom/LICENSE
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2022 YOUR_NAME_HERE
|
||||
|
||||
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.
|
||||
2
themes/custom/archetypes/default.md
Normal file
2
themes/custom/archetypes/default.md
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
+++
|
||||
+++
|
||||
62
themes/custom/assets/sass/main.scss
Normal file
62
themes/custom/assets/sass/main.scss
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
// CSS heavily borrowed from https://github.com/denysvitali/thebestmotherfuckingwebsite
|
||||
|
||||
$bodybgColor: #f2f2f2;
|
||||
$bodyTextColor: #444444;
|
||||
|
||||
$linkColor: #07A;
|
||||
$linkVisitedColor: #941352;
|
||||
|
||||
html {
|
||||
background-color: $bodybgColor;
|
||||
}
|
||||
|
||||
body{
|
||||
font-family: "Open Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
||||
color: $bodyTextColor;
|
||||
font-size: 16px;
|
||||
margin: 2em auto;
|
||||
max-width: 800px;
|
||||
padding: 1em;
|
||||
line-height: 1.4;
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
a{
|
||||
color: $linkColor;
|
||||
|
||||
&:visited{
|
||||
color: $linkVisitedColor;
|
||||
}
|
||||
}
|
||||
|
||||
.noselect{
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
|
||||
small{
|
||||
font-size: 0.4em;
|
||||
}
|
||||
|
||||
p.st{
|
||||
margin-top: -1em;
|
||||
}
|
||||
|
||||
ul{
|
||||
li{
|
||||
img{
|
||||
height: 1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 500px) {
|
||||
body{
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
0
themes/custom/layouts/404.html
Normal file
0
themes/custom/layouts/404.html
Normal file
11
themes/custom/layouts/_default/baseof.html
Normal file
11
themes/custom/layouts/_default/baseof.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<div id="content">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
</html>
|
||||
0
themes/custom/layouts/_default/list.html
Normal file
0
themes/custom/layouts/_default/list.html
Normal file
0
themes/custom/layouts/_default/single.html
Normal file
0
themes/custom/layouts/_default/single.html
Normal file
19
themes/custom/layouts/index.html
Normal file
19
themes/custom/layouts/index.html
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{{ define "main" }}
|
||||
<main aria-role="main">
|
||||
<header class="homepage-header">
|
||||
<h1>{{.Title}}</h1>
|
||||
{{ with .Params.subtitle }}
|
||||
<span class="subtitle">{{.}}</span>
|
||||
{{ end }}
|
||||
</header>
|
||||
<div class="homepage-content">
|
||||
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
|
||||
{{.Content}}
|
||||
</div>
|
||||
<div>
|
||||
{{ range first 10 .Site.RegularPages }}
|
||||
{{ .Render "summary"}}
|
||||
{{ end }}
|
||||
</div>
|
||||
</main>
|
||||
{{ end }}
|
||||
0
themes/custom/layouts/partials/footer.html
Normal file
0
themes/custom/layouts/partials/footer.html
Normal file
7
themes/custom/layouts/partials/head.html
Normal file
7
themes/custom/layouts/partials/head.html
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
{{ $sassOptions := (dict "targetPath" "style.css" "enableSourceMap" (not hugo.IsProduction)) }}
|
||||
{{ $style := resources.Get "sass/main.scss" | resources.ToCSS $sassOptions }}
|
||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}" type="text/css">
|
||||
</head>
|
||||
0
themes/custom/layouts/partials/header.html
Normal file
0
themes/custom/layouts/partials/header.html
Normal file
21
themes/custom/theme.toml
Normal file
21
themes/custom/theme.toml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# theme.toml template for a Hugo theme
|
||||
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
|
||||
|
||||
name = "Custom"
|
||||
license = "MIT"
|
||||
licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE"
|
||||
description = ""
|
||||
homepage = "http://example.com/"
|
||||
tags = []
|
||||
features = []
|
||||
min_version = "0.41.0"
|
||||
|
||||
[author]
|
||||
name = ""
|
||||
homepage = ""
|
||||
|
||||
# If porting an existing theme
|
||||
[original]
|
||||
name = ""
|
||||
homepage = ""
|
||||
repo = ""
|
||||
Loading…
Add table
Add a link
Reference in a new issue