Merge pull request 'Change Theme to Typo' (#1) from change_theme into main
All checks were successful
Build Hugo Site / build (push) Successful in 10s

Reviewed-on: #1
This commit is contained in:
Benjamin Hays 2024-10-05 22:22:34 +00:00
commit d5ba1b6ac0
4 changed files with 62 additions and 77 deletions

3
.gitmodules vendored
View File

@ -1,3 +1,6 @@
[submodule "themes/hello-friend-ng"] [submodule "themes/hello-friend-ng"]
path = themes/hello-friend-ng path = themes/hello-friend-ng
url = https://github.com/rhazdon/hugo-theme-hello-friend-ng.git url = https://github.com/rhazdon/hugo-theme-hello-friend-ng.git
[submodule "themes/typo"]
path = themes/typo
url = https://github.com/tomfran/typo.git

102
hugo.toml
View File

@ -1,68 +1,82 @@
baseURL = 'https://benhays.org/' baseURL = 'https://benhays.org/'
languageCode = 'en-us' languagecode = 'en-us'
title = 'Ben Hays' title = 'Benjamin Hays'
theme = "hello-friend-ng" theme = "typo"
paginate = 10
[markup.goldmark.renderer] [markup.goldmark.renderer]
unsafe = true unsafe = true
[taxonomies]
tag = 'tags'
[params] [params]
dateform = "Jan 2, 2006" footerContent = '<a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener">CC BY-NC 4.0</a>'
dateformShort = "Jan 2" #customCSS = ["/css/style.css"]
dateformNum = "2006-01-02"
dateformNumTime = "2006-01-02 15:04"
customCSS = ["/css/style.css"] paginationSize = 20
homeCollectionTitle = 'Posts'
homeCollection = 'posts'
readTime = true
showTags = true
# Subtitle for home # Meta
homeSubtitle = "Information Security Student" description = "Benjamin Hays: Information Security Student"
keywords = "homepage, blog, benjamin, hays"
# Set disableReadOtherPosts to true in order to hide the links to other posts.
disableReadOtherPosts = false
# Disable Un-needed features
enableSharingButtons = false
enableGlobalLanguageMenu = false
# Metadata
description = ""
keywords = "homepage, blog"
images = [""] images = [""]
# Generator Options # Generator Options
breadcrumbs = true
listSummaries = false
enableRobotsTXT = true enableRobotsTXT = true
enableGitInfo = true enableGitInfo = true
enableEmoji = true enableEmoji = true
enableMissingTranslationPlaceholders = false enableMissingTranslationPlaceholders = false
disableRSS = false disableRSS = false
disableSitemap = false disableSitemap = false
disable404 = false disable404 = false
googleAnalytics = 'G-KBCW53YDNQ'
[services] # Appearance settings
[services.googleAnalytics] theme = 'auto'
ID = 'G-KBCW53YDNQ' colorPalette = 'default'
hideHeader = false
[languages] # Intro on main page, content is markdown
[languages.en] homeIntroTitle = ''
title = "Benjamin Hays" homeIntroContent = """
keywords = "Information Security" I'm currently a full-time high school student in the USA, but I make time for studying computer science in my free-time.
copyright = '<a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener">CC BY-NC 4.0</a>'
readOtherPosts = "Read other posts"
[languages.en.params] The code for [this website](https://git.benhays.org/BenHays42/Personal-Website/) and a few of my other projects is available at [git.benhays.org](https://git.benhays.org)
subtitle = "Information Security Student"
[[menu.main]] If you need to reach out or just have a quick convo, you can best reach me by email: ben@benhays.org, but you can also find me on LinkedIn from time-to-time"""
identifier = "blog"
name = "Posts" # Main menu pages
[[params.menu]]
name = "home"
url = "/"
[[params.menu]]
name = "posts"
url = "/posts" url = "/posts"
[params.logo] #[[params.menu]]
logoMark = "" #name = "about"
logoText = "Benjamin Hays" #url = "/about"
logoHomeLink = "/"
logoCursorDisabled = true # Syntax highligth on code blocks
[markup]
[markup.highlight]
style = 'algol'
[[deployment.matchers]]
pattern = "^.+\\.(js|css|svg|ttf|woff2)$"
cacheControl = "max-age=31536000, no-transform, public"
gzip = true
[[deployment.matchers]]
pattern = "^.+\\.(png|jpg|gif|webp)$"
cacheControl = "max-age=31536000, no-transform, public"
gzip = false
[[params.social]] [[params.social]]
name = "email" name = "email"

View File

@ -1,33 +0,0 @@
main p {
margin-top: 0 !important;
}
main h1 {
margin-bottom: 0 !important;
background: linear-gradient(90deg, rgba(148,147,249,1) 0%, rgba(178,147,249,1) 48%, rgba(189,147,249,1) 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
a:hover {
color: #BD93F9 !important;
}
.post-title {
font-size: 1.8rem;
}
.post-content img {
display: block;
margin-left: auto;
margin-right: auto;
}
a.footnote-ref::before {
content: '[';
}
a.footnote-ref::after {
content: ']';
}

1
themes/typo Submodule

@ -0,0 +1 @@
Subproject commit a741744e32435b48412451fe2b7e57b05591538c