diff --git a/.gitmodules b/.gitmodules index 179cb0c..056e940 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "themes/hello-friend-ng"] path = themes/hello-friend-ng url = https://github.com/rhazdon/hugo-theme-hello-friend-ng.git +[submodule "themes/typo"] + path = themes/typo + url = https://github.com/tomfran/typo.git diff --git a/hugo.toml b/hugo.toml index a417b9f..d175323 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,68 +1,82 @@ baseURL = 'https://benhays.org/' -languageCode = 'en-us' -title = 'Ben Hays' -theme = "hello-friend-ng" -paginate = 10 +languagecode = 'en-us' +title = 'Benjamin Hays' +theme = "typo" [markup.goldmark.renderer] unsafe = true +[taxonomies] +tag = 'tags' + [params] -dateform = "Jan 2, 2006" -dateformShort = "Jan 2" -dateformNum = "2006-01-02" -dateformNumTime = "2006-01-02 15:04" +footerContent = 'CC BY-NC 4.0' +#customCSS = ["/css/style.css"] -customCSS = ["/css/style.css"] +paginationSize = 20 +homeCollectionTitle = 'Posts' +homeCollection = 'posts' +readTime = true +showTags = true -# Subtitle for home -homeSubtitle = "Information Security Student" - -# 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" +# Meta +description = "Benjamin Hays: Information Security Student" +keywords = "homepage, blog, benjamin, hays" images = [""] # Generator Options +breadcrumbs = true +listSummaries = false enableRobotsTXT = true enableGitInfo = true enableEmoji = true enableMissingTranslationPlaceholders = false -disableRSS = false -disableSitemap = false -disable404 = false +disableRSS = false +disableSitemap = false +disable404 = false +googleAnalytics = 'G-KBCW53YDNQ' -[services] - [services.googleAnalytics] - ID = 'G-KBCW53YDNQ' +# Appearance settings +theme = 'auto' +colorPalette = 'default' +hideHeader = false -[languages] -[languages.en] -title = "Benjamin Hays" -keywords = "Information Security" -copyright = 'CC BY-NC 4.0' -readOtherPosts = "Read other posts" +# Intro on main page, content is markdown +homeIntroTitle = '' +homeIntroContent = """ +I'm currently a full-time high school student in the USA, but I make time for studying computer science in my free-time. -[languages.en.params] -subtitle = "Information Security Student" +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) -[[menu.main]] -identifier = "blog" -name = "Posts" +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""" + +# Main menu pages +[[params.menu]] +name = "home" +url = "/" + +[[params.menu]] +name = "posts" url = "/posts" -[params.logo] -logoMark = "" -logoText = "Benjamin Hays" -logoHomeLink = "/" -logoCursorDisabled = true +#[[params.menu]] +#name = "about" +#url = "/about" + +# 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]] name = "email" diff --git a/static/css/style.css b/static/css/style.css deleted file mode 100644 index 3f6e5b0..0000000 --- a/static/css/style.css +++ /dev/null @@ -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: ']'; -} diff --git a/themes/typo b/themes/typo new file mode 160000 index 0000000..a741744 --- /dev/null +++ b/themes/typo @@ -0,0 +1 @@ +Subproject commit a741744e32435b48412451fe2b7e57b05591538c