layouts play nice
All checks were successful
Build Hugo Site / build (push) Successful in 7s

This commit is contained in:
John 2025-03-09 20:18:28 -05:00
parent 85f2f782a1
commit 6972e56f64
8 changed files with 36 additions and 121 deletions

View File

@ -1,3 +1,25 @@
baseURL = 'https://lambwire.net' baseURL = 'https://lambwire.net'
title = 'Fresh Hugo Site' # title = 'Lambwire'
theme = 'hugo-bearcub' theme = 'hugo-bearcub'
copyright = "John Lamb"
defaultContentLanguage = "en"
[languages]
[languages.en]
title = "Lambwire"
languageName = "en-US 🇺🇸"
LanguageCode = "en-US"
contentDir = "content"
[languages.en.params]
madeWith = "Made with [Bear Cub](https://github.com/clente/hugo-bearcub)"
[params]
description = "Params description"
title = "Lambwire params"
themeStyle = "original"
[params.author]
name = "John Lamb"
email = "me@example.com"

8
content/_index.md Normal file
View File

@ -0,0 +1,8 @@
---
title: "Home"
menu: "main"
weight: 1
description: "Welcome to my personal website, where I share my thoughts and projects."
---
Welcome to my site! Here you'll find my latest blog posts, projects, and more. Enjoy your stay.

5
content/blog/_index.md Normal file
View File

@ -0,0 +1,5 @@
---
title: "Blog"
menu: "main"
weight: 2
---

View File

@ -1,48 +0,0 @@
{{- define "baseof" -}}
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode | default "en-US" }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{ partial "favicon.html" . }}
<title>{{ block "title" . }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
{{ partial "seo_tags.html" . }}
<!-- Load Theme Styles -->
{{ $style := print (default "original" .Site.Params.themeStyle) ".css" | resources.Get | minify }}
<link href="{{ $style.RelPermalink }}" rel="stylesheet">
{{ if (.Page.Store.Get "hasCodeBlock") }}
{{ $syntax := resources.Get "syntax.css" | minify }}
<link href="{{ $syntax.RelPermalink }}" rel="stylesheet">
{{ end }}
{{ with .Params.style }}
{{ $extra := resources.Get . | minify }}
<link href="{{ $extra.RelPermalink }}" rel="stylesheet">
{{ end }}
</head>
<body>
<!-- Site Container -->
<div class="container">
<!-- Site Header (Reuses Bearcub's Partial) -->
{{ partial "header.html" . }}
<!-- Main Content Block (Where Custom Pages Inject Content) -->
<main class="content">
{{ block "main" . }}{{ end }}
</main>
<!-- Footer (Reuses Bearcub's Partial) -->
{{ partial "footer.html" . }}
</div>
<!-- Load Scripts -->
{{ partial "scripts.html" . }}
</body>
</html>
{{- end -}}

View File

@ -1,22 +0,0 @@
{{ define "main" }}
<section class="post-list">
<header>
<h1>{{ .Title }}</h1>
{{ with .Content }}
<p>{{ . }}</p>
{{ end }}
</header>
<ul class="posts">
{{ range .Pages }}
<li class="post-item">
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
<p class="post-meta">{{ .Date.Format "January 2, 2006" }}</p>
{{ with .Summary }}
<p>{{ . }} <a href="{{ .RelPermalink }}">Read more...</a></p>
{{ end }}
</li>
{{ end }}
</ul>
</section>
{{ end }}

View File

@ -1,30 +0,0 @@
{{ define "main" }}
<article class="post">
<header class="post-header">
<h1>{{ .Title }}</h1>
<p class="post-meta">
{{ .Date.Format "January 2, 2006" }} |
{{ if .Params.author }}By {{ .Params.author }}{{ end }}
</p>
</header>
<section class="post-content">
{{ .Content }}
</section>
{{ with .Params.tags }}
<section class="post-tags">
<h3>Tags:</h3>
<ul>
{{ range . }}
<li><a href="{{ "tags/" | relURL }}{{ . | urlize }}">{{ . }}</a></li>
{{ end }}
</ul>
</section>
{{ end }}
<footer class="post-footer">
<p><a href="/blog/">← Back to Blog</a></p>
</footer>
</article>
{{ end }}

View File

@ -1,20 +0,0 @@
{{ define "main" }}
<section class="hero">
<h1>{{ .Title }}</h1>
hello
<p>{{ .Content }}</p>
</section>
<section class="latest-posts">
<h2>Latest Blog Posts</h2>
<ul>
{{ range first 3 (where .Site.RegularPages "Section" "posts") }}
<li>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
<small>{{ .Date.Format "Jan 2, 2006" }}</small>
</li>
{{ end }}
</ul>
<a href="/blog/" class="button">See All Posts</a>
</section>
{{ end }}