*Switching to my own theme because why not

This commit is contained in:
shockrah 2021-10-19 00:18:40 -07:00
parent d21ddbdd3f
commit 72c02d9d25
15 changed files with 189 additions and 3 deletions

3
.gitmodules vendored
View File

@ -1,3 +0,0 @@
[submodule "themes"]
path = themes/sada
url = https://github.com/darshanbaral/sada.git

20
themes/resume/LICENSE Normal file
View File

@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2021 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.

View File

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

View File

View 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>

View File

View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en-us">
{{ partial "head.html" . }}
<body>
<div class="banner-container">
<img src="/images/banner.jpg" style="max-width: 100%;">
<div class="headline">Hi I'm Alex</div>
<a class="btn btn-default btn-lg banner-button" href="#content">
<i class="fa fa-arrow-circle-down"></i>
</a>
</div>
<div id="content" class="content-container sections">
<!-- Range the cards first -->
{{ range .Pages }}
<div class="card">
<div class="card-body">
<h2 class="card-title">{{.Title}}</h2>
<div class="card-text">{{.Content}}</div>
</div>
</div>
{{ end }}
</div>
</body>
</html>

View File

@ -0,0 +1,11 @@
<head>
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
<link href="/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/css/style.css">
<meta property="og:title" content="{{ .Site.Title }}">
<meta property="og:description" content="{{ .Site.Params.description }}">
<meta property="og:site_name" content="{{ .Site.Params.name }}">
<meta property="og:url" content="{{ .Site.BaseURL }}">
<meta property="og:type" content="website">
<meta property="og:image" content="/images/ogbanner.jpg">
</head>

View File

@ -0,0 +1,6 @@
<a href="{{ .Get "link" }}">
<div class="embed" style="border-left-color:{{ .Get "color"}}">
<h2>{{.Get "title"}}</h2>
<img src={{.Get "img"}} class="embed-img">
</div>
</a>

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,87 @@
/*
* Here we define some base overrides since bootstrap is going to write down
* a tonne of stuff for us we need to get it under control
*/
body {
background-color: #212121;
font-family: Arial, Helvetica, sans-serif;
color: #dcdcdc;
}
html {
scroll-behavior: smooth;
}
.banner-container {
position: relative;
text-align: center;
max-width: 100%;
}
.headline {
position: absolute;
font-weight: bold;
font-size: 5rem;
top: 4rem;
left: 50%;
transform: translate(-50%, -50%);
}
.banner-button {
position: absolute;
bottom: 16px;
left: 50%;
color: whitesmoke;
font-size:4rem;
}
.fa-arrow-circle-down {
color: #dcdcdc;
}
.fa-arrow-circle-down:hover {
color: white;
}
.sections {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.card {
margin: 1em;
max-width: 800px;
border: none;
}
.card-title {
font-size: 5rem;
font-weight: bold;
text-decoration: none;
color: #4dc09f;
}
.card-text {
font-size: 2rem;
}
.card-body {
background-color: #212121;
}
/* Ripped from my blog */
.embed {
padding-left: 1em;
line-height: 0;
border-radius: 10px;
background: #191818;
padding-right: 0.75em;
padding-bottom: 0.5em;
min-width: 300px;
margin-bottom: 2em;
border-left: 8px solid;
}
.embed-img {
max-width: 600px;
}
a {
color: #dcdcdc;
}
a:hover {
color: white;
}

21
themes/resume/theme.toml Normal file
View File

@ -0,0 +1,21 @@
# theme.toml template for a Hugo theme
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
name = "Resume"
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 = ""