Skip to content

Commit

Permalink
Merge pull request #28 from BTx123/feature/updates
Browse files Browse the repository at this point in the history
Feature/updates
  • Loading branch information
BTx123 authored Nov 12, 2024
2 parents fad50eb + 32e0d23 commit 92833d2
Show file tree
Hide file tree
Showing 25 changed files with 401 additions and 473 deletions.
447 changes: 17 additions & 430 deletions assets/css/gallery.scss

Large diffs are not rendered by default.

18 changes: 10 additions & 8 deletions config/_default/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ languageCode: en-us
defaultContentLanguage: en
enableRobotsTXT: true
enableEmoji: true
# copyright: © 2024-{year} Brian Tom, All Rights Reserved.
enableGitInfo: true
buildDrafts: true
timeout: 120s
module:
Expand All @@ -20,20 +20,23 @@ menu:
- name: Resume
pageRef: /resume
weight: 10
# pre: <span data-feather='file'></span>
# post: ""
- name: Posts
url: /posts/
weight: 20
# pre: <span data-feather='file-text'></span>
# post: ""
- name: Galleries
url: /galleries/
weight: 30
# pre: <span data-feather='camera'></span>
# post: ""
- name: Tags
url: /tags/
weight: 40
- identifier: github
url: https://github.com/BTx123/BTx123.github.io
weight: 50
pre: <span data-feather='github'></span>
post: ""
# pre: <span data-feather='tag'></span>
# post: ""
markup:
tableOfContents:
startLevel: 1
Expand All @@ -60,8 +63,7 @@ params:
avatarSize: size-m
avatarURL: /images/avatar.webp
description: Software engineer, foodie, and a bit of photography.
footer: Brian Tom.
copyright: All Rights Reserved.
footer: Brian Tom. All Rights Reserved.
dateFormat: "January 02, 2006"
math: true
metaKeywords:
Expand Down
20 changes: 20 additions & 0 deletions content/galleries/20240127-stonewall-peak/gallery.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"generatedOn": "2024-11-11T23:23:25.8737389-08:00",
"images": [
"images/20240127-stonewall-peak/DSC00166.jpg",
"images/20240127-stonewall-peak/DSC00176.jpg",
"images/20240127-stonewall-peak/DSC00181.jpg",
"images/20240127-stonewall-peak/DSC00218.jpg",
"images/20240127-stonewall-peak/DSC00220.jpg",
"images/20240127-stonewall-peak/DSC00291.jpg",
"images/20240127-stonewall-peak/DSC00312.jpg",
"images/20240127-stonewall-peak/DSC00333.jpg",
"images/20240127-stonewall-peak/DSC00360.jpg",
"images/20240127-stonewall-peak/DSC00369.jpg",
"images/20240127-stonewall-peak/DSC00382.jpg",
"images/20240127-stonewall-peak/DSC00385.jpg",
"images/20240127-stonewall-peak/DSC00395.jpg",
"images/20240127-stonewall-peak/DSC00430.jpg",
"images/20240127-stonewall-peak/DSC00437.jpg"
]
}
12 changes: 12 additions & 0 deletions content/galleries/20240127-stonewall-peak/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
date: 2024-01-27
lastmod: 2024-11-11
draft: false
title: Stonewall Peak 2024
type: gallery
tags: ["hiking"]
---

Photos from my Stonewall Peak hike.

{{< gallery gallery.json >}}
21 changes: 21 additions & 0 deletions content/galleries/20240525-cabrillo-national-monument/gallery.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"generatedOn": "2024-11-11T23:23:25.8753134-08:00",
"images": [
"images/20240525-cabrillo-national-monument/DSC01678.jpg",
"images/20240525-cabrillo-national-monument/DSC01683.jpg",
"images/20240525-cabrillo-national-monument/DSC01695.jpg",
"images/20240525-cabrillo-national-monument/DSC01696.jpg",
"images/20240525-cabrillo-national-monument/DSC01698.jpg",
"images/20240525-cabrillo-national-monument/DSC01707.jpg",
"images/20240525-cabrillo-national-monument/DSC01718.jpg",
"images/20240525-cabrillo-national-monument/DSC01723.jpg",
"images/20240525-cabrillo-national-monument/DSC01743.jpg",
"images/20240525-cabrillo-national-monument/DSC01751.jpg",
"images/20240525-cabrillo-national-monument/DSC01761.jpg",
"images/20240525-cabrillo-national-monument/DSC01765.jpg",
"images/20240525-cabrillo-national-monument/DSC01773.jpg",
"images/20240525-cabrillo-national-monument/DSC01779.jpg",
"images/20240525-cabrillo-national-monument/DSC01783.jpg",
"images/20240525-cabrillo-national-monument/DSC01817.jpg"
]
}
12 changes: 12 additions & 0 deletions content/galleries/20240525-cabrillo-national-monument/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
date: 2024-05-25
lastmod: 2024-11-11
draft: false
title: Cabrillo National Monument 2024
type: gallery
tags: ["hiking", "national park"]
---

Photos from my Cabrillo National Monument hike.

{{< gallery gallery.json >}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"generatedOn": "2024-11-11T23:23:25.8758323-08:00",
"images": [
"images/20240608-stanley-peak-via-creek-crossing-trail/DSC01975.jpg",
"images/20240608-stanley-peak-via-creek-crossing-trail/DSC01977.jpg",
"images/20240608-stanley-peak-via-creek-crossing-trail/DSC02012.jpg",
"images/20240608-stanley-peak-via-creek-crossing-trail/DSC02016.jpg",
"images/20240608-stanley-peak-via-creek-crossing-trail/DSC02072.jpg",
"images/20240608-stanley-peak-via-creek-crossing-trail/DSC02079.jpg",
"images/20240608-stanley-peak-via-creek-crossing-trail/DSC02086.jpg",
"images/20240608-stanley-peak-via-creek-crossing-trail/DSC02095.jpg",
"images/20240608-stanley-peak-via-creek-crossing-trail/DSC02186.jpg",
"images/20240608-stanley-peak-via-creek-crossing-trail/DSC02211.jpg",
"images/20240608-stanley-peak-via-creek-crossing-trail/DSC02248.jpg",
"images/20240608-stanley-peak-via-creek-crossing-trail/DSC02278.jpg",
"images/20240608-stanley-peak-via-creek-crossing-trail/DSC02296.jpg",
"images/20240608-stanley-peak-via-creek-crossing-trail/DSC02299.jpg",
"images/20240608-stanley-peak-via-creek-crossing-trail/DSC02357.jpg"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
date: 2024-06-08
lastmod: 2024-11-11
draft: false
title: Stanley Peak via Creek Crossing Trail 2024
type: gallery
tags: ["hiking"]
---

Photos from my Stanley Peak via Creek Crossing Trail hike.

{{< gallery gallery.json >}}
23 changes: 23 additions & 0 deletions content/galleries/20240609-coronado-tidelands-park/gallery.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"generatedOn": "2024-11-11T23:23:25.876422-08:00",
"images": [
"images/20240609-coronado-tidelands-park/DSC02427.jpg",
"images/20240609-coronado-tidelands-park/DSC02435.jpg",
"images/20240609-coronado-tidelands-park/DSC02439.jpg",
"images/20240609-coronado-tidelands-park/DSC02467.jpg",
"images/20240609-coronado-tidelands-park/DSC02472.jpg",
"images/20240609-coronado-tidelands-park/DSC02474.jpg",
"images/20240609-coronado-tidelands-park/DSC02495.jpg",
"images/20240609-coronado-tidelands-park/DSC02543.jpg",
"images/20240609-coronado-tidelands-park/DSC02544.jpg",
"images/20240609-coronado-tidelands-park/DSC02547.jpg",
"images/20240609-coronado-tidelands-park/DSC02550.jpg",
"images/20240609-coronado-tidelands-park/DSC02558.jpg",
"images/20240609-coronado-tidelands-park/DSC02564.jpg",
"images/20240609-coronado-tidelands-park/DSC02566.jpg",
"images/20240609-coronado-tidelands-park/DSC02572.jpg",
"images/20240609-coronado-tidelands-park/DSC02574.jpg",
"images/20240609-coronado-tidelands-park/DSC02578.jpg",
"images/20240609-coronado-tidelands-park/DSC02582.jpg"
]
}
12 changes: 12 additions & 0 deletions content/galleries/20240609-coronado-tidelands-park/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
date: 2024-06-09
lastmod: 2024-11-11
draft: false
title: Coronado Tidelands Park 2024
type: gallery
tags: ["urban", "hiking"]
---

Photos from my Coronado Tidelands Park urban walk.

{{< gallery gallery.json >}}
40 changes: 40 additions & 0 deletions content/galleries/20240811-joshua-tree/gallery.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"generatedOn": "2024-11-11T23:23:25.8774558-08:00",
"images": [
"images/20240811-joshua-tree/DSC03502.jpg",
"images/20240811-joshua-tree/DSC03507.jpg",
"images/20240811-joshua-tree/DSC03513.jpg",
"images/20240811-joshua-tree/DSC03524.jpg",
"images/20240811-joshua-tree/DSC03526.jpg",
"images/20240811-joshua-tree/DSC03548.jpg",
"images/20240811-joshua-tree/DSC03554.jpg",
"images/20240811-joshua-tree/DSC03572.jpg",
"images/20240811-joshua-tree/DSC03587.jpg",
"images/20240811-joshua-tree/DSC03593.jpg",
"images/20240811-joshua-tree/DSC03603.jpg",
"images/20240811-joshua-tree/DSC03609.jpg",
"images/20240811-joshua-tree/DSC03611.jpg",
"images/20240811-joshua-tree/DSC03628.jpg",
"images/20240811-joshua-tree/DSC03636.jpg",
"images/20240811-joshua-tree/DSC03640.jpg",
"images/20240811-joshua-tree/DSC03659.jpg",
"images/20240811-joshua-tree/DSC03668.jpg",
"images/20240811-joshua-tree/DSC03689.jpg",
"images/20240811-joshua-tree/DSC03693.jpg",
"images/20240811-joshua-tree/DSC03707.jpg",
"images/20240811-joshua-tree/DSC03719.jpg",
"images/20240811-joshua-tree/DSC03722.jpg",
"images/20240811-joshua-tree/DSC03732.jpg",
"images/20240811-joshua-tree/DSC03738.jpg",
"images/20240811-joshua-tree/DSC03764.jpg",
"images/20240811-joshua-tree/DSC03797.jpg",
"images/20240811-joshua-tree/DSC03879_Panorama.jpg",
"images/20240811-joshua-tree/DSC03899.jpg",
"images/20240811-joshua-tree/DSC03923.jpg",
"images/20240811-joshua-tree/DSC03925.jpg",
"images/20240811-joshua-tree/DSC04761.jpg",
"images/20240811-joshua-tree/DSC04873.jpg",
"images/20240811-joshua-tree/DSC04879.jpg",
"images/20240811-joshua-tree/DSC3846.jpg"
]
}
12 changes: 12 additions & 0 deletions content/galleries/20240811-joshua-tree/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
date: 2024-08-11
lastmod: 2024-11-11
draft: false
title: Joshua Tree 2024
type: gallery
tags: ["hiking", "national park"]
---

Photos from my Joshua Tree trip.

{{< gallery gallery.json >}}
2 changes: 1 addition & 1 deletion content/galleries/20241005-iceland/gallery.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"generatedOn": "2024-11-11T00:59:53.205965-08:00",
"generatedOn": "2024-11-11T23:23:25.8785441-08:00",
"images": [
"images/20241005-iceland/DSC05732.jpg",
"images/20241005-iceland/DSC05778.jpg",
Expand Down
5 changes: 3 additions & 2 deletions content/galleries/20241005-iceland/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
date: '2024-10-21T13:17:15-07:00'
date: 2024-10-05
lastmod: 2024-11-11
draft: false
title: Iceland 2024
type: page
type: gallery
tags: ["vacation"]
---

Expand Down
2 changes: 1 addition & 1 deletion content/galleries/20241013-boston/gallery.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"generatedOn": "2024-11-11T00:59:53.2075321-08:00",
"generatedOn": "2024-11-11T23:23:25.8804109-08:00",
"images": [
"images/20241013-boston/20241018_120629.jpg",
"images/20241013-boston/DSC01568.jpg",
Expand Down
7 changes: 4 additions & 3 deletions content/galleries/20241013-boston/index.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
date: '2024-10-21T13:17:15-07:00'
date: 2024-10-13
lastmod: 2024-11-11
draft: false
title: Boston 2024
type: page
tags: ["vacation"]
type: gallery
tags: ["vacation", "urban"]
---

Photos from my Boston trip.
Expand Down
12 changes: 0 additions & 12 deletions content/galleries/_index.md

This file was deleted.

20 changes: 20 additions & 0 deletions i18n/en.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Recent:
other: Recent Posts
Popular:
other: Posts
error404:
other: This page does not exist, go
home:
other: home
nothing:
other: Nothing to see here, yet 😉
previous:
other: Previous
next:
other: Next
tags:
other: Tags
Posts:
other: Posts
Galleries:
other: Galleries
9 changes: 9 additions & 0 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{{ define "main" }}
{{ if eq .Type "page" }}
{{- partial "page.html" . -}}
{{ else if eq .Type "galleries" }}
{{- partial "list-galleries.html" . -}}
{{ else }}
{{- partial "list.html" . -}}
{{ end }}
{{ end }}
16 changes: 16 additions & 0 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{ define "main" }}
{{ if eq .Type "post" }}
{{- partial "post.html" . -}}
{{- partial "toc.html" . -}}
{{ end }}

{{ if eq .Type "page" }}
{{- partial "page.html" . -}}
{{- partial "toc.html" . -}}
{{ end }}

{{ if eq .Type "gallery" }}
{{- partial "gallery.html" . -}}
{{- partial "toc.html" . -}}
{{ end }}
{{ end }}
39 changes: 39 additions & 0 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<footer class="footer">
<!-- Option for user to inject custom html -->
{{ if .Site.Params.CustomFooterHTML }}
{{ .Site.Params.CustomFooterHTML | safeHTML }}
{{ end }}

{{ .Scratch.Set "footerText" "" }}

{{ if (.Site.Params.Footer) }}

{{ if and (eq .Kind "page") (.Date) }}
{{ .Scratch.Add "footerText" (.Date | time.Format "2006") }}
{{ else }}
{{ .Scratch.Add "footerText" (time.Now | time.Format "2006") }}
{{ end }}

{{ if and (eq .Kind "page") (.Lastmod) (gt (time.Format "2006" .Lastmod) (time.Format "2006" .Date)) }}
{{ .Scratch.Add "footerText" "-" }}
{{ .Scratch.Add "footerText" (.Lastmod | time.Format "2006") }}
{{ end }}

{{ .Scratch.Add "footerText" " " }}
{{ .Scratch.Add "footerText" .Site.Params.Footer }}

{{ if and (eq .Kind "page") (.Site.Copyright) }}
{{ .Scratch.Add "footerText" " " }}
{{ .Scratch.Add "footerText" .Site.Copyright }}
{{ end }}

{{ end }}

{{ if (gt (.Scratch.Get "footerText" | len) 0) }}
<span>&copy; {{ .Scratch.Get "footerText" | markdownify }}</span>
{{ end }}

{{/* <span>
Made with &#10084;&#65039; using <a target="_blank" href="https://github.com/gokarna-theme/gokarna-hugo">Gokarna</a>
</span> */}}
</footer>
Loading

0 comments on commit 92833d2

Please sign in to comment.