Skip to content

Commit c89d066

Browse files
committed
adding support for pages
1 parent b78533d commit c89d066

7 files changed

Lines changed: 159 additions & 59 deletions

File tree

exampleSite/content/pages/about.md

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
+++
2+
title = 'About This Theme'
3+
draft = false
4+
+++
5+
6+
# About coreydaley-dev Theme
7+
8+
**coreydaley-dev** is a clean, modern Hugo theme designed for developers and technical bloggers who want a professional online presence without the bloat.
9+
10+
## Features
11+
12+
### Design & Layout
13+
14+
- **Clean, distraction-free reading experience** - Focus on your content with a minimalist design
15+
- **Responsive layout** - Looks great on desktop, tablet, and mobile devices
16+
- **Customizable header and sidebar** - Easy navigation and branding
17+
- **Avatar and cover image support** - Personalize your site with custom imagery
18+
- **Special date avatars** - Optional automatic avatar changes for holidays (Halloween, Christmas, etc.)
19+
20+
### Content Management
21+
22+
- **Post pagination** - Clean browsing experience for blog archives
23+
- **Tag and category support** - Organize your content effectively
24+
- **Draft management** - Preview posts before publishing
25+
- **Markdown support** - Write in the format you love
26+
- **Code syntax highlighting** - Perfect for technical content
27+
28+
### Search & Discovery
29+
30+
- **Integrated search** - Powered by Pagefind for fast, client-side search
31+
- **SEO optimized** - Meta descriptions, summaries, and proper markup
32+
- **RSS feed support** - Let readers subscribe to your content
33+
34+
### Social & Analytics
35+
36+
- **Social media integration** - Connect your GitHub, LinkedIn, Twitter, Mastodon, Bluesky, and more
37+
- **Google Analytics ready** - Track your site's performance
38+
- **Email contact** - Direct contact option for readers
39+
40+
## Configuration
41+
42+
The theme is highly configurable through `hugo.toml`:
43+
44+
```toml
45+
[params]
46+
avatar = '/images/avatar.jpg'
47+
coverImage = '/images/cover.jpg'
48+
description = 'A blog about some really cool stuff'
49+
tagline = 'Your Awesome Tagline'
50+
enableCheckSpecialDate = false
51+
52+
[params.social]
53+
github = 'https://github.com/yourusername'
54+
linkedin = 'https://linkedin.com/in/yourusername'
55+
# ... and many more
56+
```
57+
58+
## Getting Started
59+
60+
1. **Install the theme** in your Hugo site's `themes/` directory
61+
2. **Add your images** to `static/images/` (avatar and cover)
62+
3. **Configure** your site in `hugo.toml`
63+
4. **Create content** with `hugo new posts/my-post.md`
64+
5. **Run** with `hugo server -D`
65+
66+
## Technology Stack
67+
68+
- **Hugo** - Fast static site generator
69+
- **Pagefind** - Client-side search
70+
- **Responsive CSS** - Mobile-first design
71+
- **Markdown** - Simple content authoring
72+
73+
## License
74+
75+
This theme is open source and available under the MIT License.
76+
77+
## About the Author
78+
79+
Created by Corey Daley for developers who want a straightforward, beautiful blog without unnecessary complexity.
80+
81+
## Support
82+
83+
- **Issues & Questions** - [GitHub Issues](https://github.com/coreydaley/coreydaley-dev-theme/issues)
84+
- **Source Code** - [GitHub Repository](https://github.com/coreydaley/coreydaley-dev-theme)
85+
- **Documentation** - Check the README.md files in the theme repository
86+
87+
---
88+
89+
_This About page is part of the example site. Customize it to tell your own story!_

images/screenshot-mobile.png

832 KB
Loading

layouts/partials/header.html

Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{/* Created by: AI Agent | Date: 2026-02-06T22:56:44-05:00 | Last Modified By: Claude Code (Claude Sonnet 4.5) | Last Modified: 2026-02-14T16:21:00-05:00 */}}
1+
{{/* Created by: AI Agent | Date: 2026-02-06T22:56:44-05:00 | Last Modified By: Claude Code (Claude Sonnet 4.5) | Last Modified: 2026-02-14T16:40:00-05:00 */}}
22
<header class="site-header">
33
<div
44
class="cover-image"
@@ -241,32 +241,36 @@ <h1 class="site-title">
241241
<!-- Mobile Navigation -->
242242
<nav class="mobile-nav">
243243
<!-- Pages (mobile only) -->
244-
{{ $allPages := where .Site.RegularPages "Section" "pages" }}
245-
{{ $pages := where $allPages ".Params.categories" "==" nil }}
246-
{{ $pages = where $pages ".Params.tags" "==" nil }}
247-
{{ if $pages }}
248-
<div class="mobile-nav-section mobile-only">
249-
<h3 class="mobile-nav-title">
250-
<svg
251-
viewBox="0 0 24 24"
252-
fill="none"
253-
stroke="currentColor"
254-
stroke-width="2"
255-
>
256-
<path
257-
d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"
258-
/>
259-
<polyline points="14,2 14,8 20,8" />
260-
</svg>
261-
Pages
262-
</h3>
263-
{{ range $pages }}
264-
<a href="{{ .RelPermalink }}" class="mobile-nav-link mobile-sub-link">
265-
{{ .Title }}
266-
</a>
267-
{{ end }}
268-
</div>
269-
{{ end }}
244+
<div class="mobile-nav-section mobile-only">
245+
<h3 class="mobile-nav-title">
246+
<svg
247+
viewBox="0 0 24 24"
248+
fill="none"
249+
stroke="currentColor"
250+
stroke-width="2"
251+
>
252+
<path
253+
d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"
254+
/>
255+
<polyline points="14,2 14,8 20,8" />
256+
</svg>
257+
Pages
258+
</h3>
259+
<a href="{{ "/" | relURL }}" class="mobile-nav-link mobile-sub-link">
260+
Home
261+
</a>
262+
<a href="{{ "/search" | relURL }}" class="mobile-nav-link mobile-sub-link">
263+
Search
264+
</a>
265+
{{ $allPages := where .Site.RegularPages "Section" "pages" }}
266+
{{ $pages := where $allPages ".Params.categories" "==" nil }}
267+
{{ $pages = where $pages ".Params.tags" "==" nil }}
268+
{{ range $pages }}
269+
<a href="{{ .RelPermalink }}" class="mobile-nav-link mobile-sub-link">
270+
{{ .Title }}
271+
</a>
272+
{{ end }}
273+
</div>
270274

271275
<!-- Categories (mobile only) -->
272276
{{ $categories := .Site.Taxonomies.categories }}
@@ -291,7 +295,6 @@ <h3 class="mobile-nav-title">
291295
class="mobile-nav-link mobile-sub-link"
292296
>
293297
{{ $name | humanize }}
294-
<span class="count">{{ len $taxonomy.Pages }}</span>
295298
</a>
296299
{{ end }}
297300
</div>

layouts/partials/sidebar.html

Lines changed: 39 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,45 @@
1-
{{/* Created by: AI Agent | Date: 2026-02-06T22:56:44-05:00 | Last Modified By: Claude Code (Claude Sonnet 4.5) | Last Modified: 2026-02-14T16:23:00-05:00 */}}
1+
{{/* Created by: AI Agent | Date: 2026-02-06T22:56:44-05:00 | Last Modified By: Claude Code (Claude Sonnet 4.5) | Last Modified: 2026-02-14T16:35:00-05:00 */}}
22
<aside class="sidebar">
33
<nav class="sidebar-nav">
44
<!-- Pages -->
5-
{{ $allPages := where .Site.RegularPages "Section" "pages" }}
6-
{{ $pages := where $allPages ".Params.categories" "==" nil }}
7-
{{ $pages = where $pages ".Params.tags" "==" nil }}
8-
{{ if $pages }}
9-
<div class="nav-section">
10-
<h3 class="section-title">
11-
<svg
12-
viewBox="0 0 24 24"
13-
fill="none"
14-
stroke="currentColor"
15-
stroke-width="2"
16-
>
17-
<path
18-
d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"
19-
/>
20-
<polyline points="14,2 14,8 20,8" />
21-
</svg>
22-
Pages
23-
</h3>
24-
<ul class="nav-links">
25-
{{ range $pages }}
26-
<li>
27-
<a href="{{ .RelPermalink }}" class="nav-link">
28-
<span class="link-text">{{ .Title }}</span>
29-
</a>
30-
</li>
31-
{{ end }}
32-
</ul>
33-
</div>
34-
{{ end }}
5+
<div class="nav-section">
6+
<h3 class="section-title">
7+
<svg
8+
viewBox="0 0 24 24"
9+
fill="none"
10+
stroke="currentColor"
11+
stroke-width="2"
12+
>
13+
<path
14+
d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"
15+
/>
16+
<polyline points="14,2 14,8 20,8" />
17+
</svg>
18+
Pages
19+
</h3>
20+
<ul class="nav-links">
21+
<li>
22+
<a href="{{ "/" | relURL }}" class="nav-link">
23+
<span class="link-text">Home</span>
24+
</a>
25+
</li>
26+
<li>
27+
<a href="{{ "/search" | relURL }}" class="nav-link">
28+
<span class="link-text">Search</span>
29+
</a>
30+
</li>
31+
{{ $allPages := where .Site.RegularPages "Section" "pages" }}
32+
{{ $pages := where $allPages ".Params.categories" "==" nil }}
33+
{{ $pages = where $pages ".Params.tags" "==" nil }}
34+
{{ range $pages }}
35+
<li>
36+
<a href="{{ .RelPermalink }}" class="nav-link">
37+
<span class="link-text">{{ .Title }}</span>
38+
</a>
39+
</li>
40+
{{ end }}
41+
</ul>
42+
</div>
3543
</nav>
3644
<nav class="sidebar-nav">
3745
<!-- Categories -->
-230 KB
Binary file not shown.

static/images/screenshot.png

-247 KB
Binary file not shown.

static/images/tn.png

-123 KB
Binary file not shown.

0 commit comments

Comments
 (0)