Browse Source

Started on new theme

master
Drew Short 6 years ago
parent
commit
2fde582456
  1. 8
      config.toml
  2. 1
      content/_index.md
  3. BIN
      static/assets/img/linkedin.png
  4. 20
      themes/pure/LICENSE
  5. 2
      themes/pure/archetypes/default.md
  6. 5
      themes/pure/layouts/404.html
  7. 11
      themes/pure/layouts/_default/baseof.html
  8. 0
      themes/pure/layouts/_default/list.html
  9. 5
      themes/pure/layouts/_default/single.html
  10. 6
      themes/pure/layouts/index.html
  11. 0
      themes/pure/layouts/partials/footer.html
  12. 35
      themes/pure/layouts/partials/head.html
  13. 1
      themes/pure/layouts/partials/header.html
  14. 26
      themes/pure/static/assets/css/style.css
  15. 11
      themes/pure/static/assets/vendor/purecss/pure-min.css
  16. 21
      themes/pure/theme.toml

8
config.toml

@ -1,3 +1,11 @@
baseURL = "https://sothr.com/"
languageCode = "en-us"
title = "Sothr"
theme = "pure"
[params]
[params.links]
[params.links.linkedin]
title = "LinkedIn"
image = "assets/img/linkedin.png"
url = "https://www.linkedin.com/in/drew-short-5188033a/"

1
content/_index.md

@ -0,0 +1 @@
# Test

BIN
static/assets/img/linkedin.png

After

Width: 256  |  Height: 256  |  Size: 3.9 KiB

20
themes/pure/LICENSE

@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2019 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/pure/archetypes/default.md

@ -0,0 +1,2 @@
+++
+++

5
themes/pure/layouts/404.html

@ -0,0 +1,5 @@
{{ define "main" }}
<h1>Page not found</h1>
I'm sorry, but the requested page wasn’t found on the server.
{{ end }}

11
themes/pure/layouts/_default/baseof.html

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<div id="content">
{{- block "main" . }}{{- end }}
</div>
{{- partial "footer.html" . -}}
</body>
</html>

0
themes/pure/layouts/_default/list.html

5
themes/pure/layouts/_default/single.html

@ -0,0 +1,5 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ end }}

6
themes/pure/layouts/index.html

@ -0,0 +1,6 @@
{{ define "main" }}
{{ range where .Site.Pages "Type" "homepage" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ end }}
{{ end }}

0
themes/pure/layouts/partials/footer.html

35
themes/pure/layouts/partials/head.html

@ -0,0 +1,35 @@
<head {{ with .Site.LanguageCode }}lang="{{ . }}"{{ end }}>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
{{ with .Site.Params.description -}}
<meta name="description" content="{{ . }}">
{{- end }}
{{ .Hugo.Generator }}
<title>{{ if not .IsHome }}{{ .Title }} &mdash;{{ end }} {{ .Site.Title }}</title>
<link rel="stylesheet" href="{{ .Site.BaseURL }}assets/vendor/purecss/pure-min.css" type="text/css" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}assets/css/style.css" type="text/css" />
</head>
<nav>
<div class="pure-menu pure-menu-horizontal">
<a href="{{ .Site.BaseURL }}" class="pure-menu-heading pure-menu-link">{{ .Site.Title }}</a>
<ul class="pure-menu-list">
{{ range where .Site.Pages "Type" "homepage" }}
<li class="pure-menu-list"><a href="{{ .URL }}" class="pure-menu-link">{{ .Title }}</a></li>
{{ end }}
{{ range .Site.Params.links }}
<li class="pure-menu-list">
<a href="{{ .Site.BaseURL }}{{ .url }}" target="_blank">
{{ if .image }}
<img src="{{ .Site.BaseURL }}{{.image}}"/>
{{ else }}
{{ .title }}
{{ end }}
</a>
</li>
{{ end }}
</ul>
</div>
</nav>

1
themes/pure/layouts/partials/header.html

@ -0,0 +1 @@

26
themes/pure/static/assets/css/style.css

@ -0,0 +1,26 @@
nav {
overflow: hidden;
padding: 0px 0px;
background: #131313;
height: 2.2em;
}
nav ul {
display: block;
float: right;
}
nav ul li {
display: block;
float: left;
padding-left: 1em;
}
nav ul li a img {
padding: .1em;
width: 2em;
}
nav ul li a img:hover {
background: #eee;
}

11
themes/pure/static/assets/vendor/purecss/pure-min.css
File diff suppressed because it is too large
View File

21
themes/pure/theme.toml

@ -0,0 +1,21 @@
# theme.toml template for a Hugo theme
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
name = "Pure"
license = "MIT"
licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE"
description = ""
homepage = "http://sothr.com/"
tags = []
features = []
min_version = "0.41"
[author]
name = "Drew Short"
homepage = "https://sothr.com"
# If porting an existing theme
[original]
name = ""
homepage = ""
repo = ""