Skip to content

Commit 45a7bca

Browse files
author
David G. Simmons
committed
Improves site configuration and styling
Updates the site configuration to enhance theming options, footer customization, and analytics. Introduces theme support with light, dark, and system preference options. Adds customization options for the footer, including navigation, contact information, credentials, and a disclaimer. Refactors CSS styles to improve the appearance of the site, including a typewriter effect. Adds 'Open Source' category and post.
1 parent e11cd2a commit 45a7bca

File tree

26 files changed

+274
-500
lines changed

26 files changed

+274
-500
lines changed

assets/images/default-hero.jpg

397 KB
Loading
327 KB
Loading
923 KB
Loading

assets/jsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"paths": {
55
"*": [
66
"*",
7-
"../_vendor/github.com/hugo-toha/toha/v4/assets/*"
7+
"../../../Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hugo-toha/toha/v4@v4.13.0/assets/*"
88
]
99
}
1010
}

assets/styles/override.scss

Lines changed: 48 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
margin: 0;
77
// color: #f9fafc;
88
overflow: hidden;
9+
910
}
1011

1112
.background {
@@ -539,6 +540,53 @@ html .top-navbar .nav-link {
539540
font-size: 14pt;
540541
color: #f0f0f0;
541542
}
543+
.typewriter {
544+
/* # background-color: #fff; */
545+
min-width: 500px;
546+
padding: 1em 2em 1em 1.5em;
547+
border: solid 1px #e6e6e6;
548+
border-radius: 2.8em;
549+
box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.25);
550+
margin: 2em;
551+
display: flex;
552+
align-items: center;
553+
554+
}
555+
556+
.typewriter svg {
557+
padding-right: 2em;
558+
}
559+
560+
.typewriter h1 {
561+
color: #000;
562+
font-size: 1.5em;
563+
font-weight: 500;
564+
width: 0;
565+
max-width: max-content;
566+
overflow: hidden;
567+
border-right: .05em solid #464545; /* The typwriter cursor */
568+
white-space: nowrap; /* Keeps the content on a single line */
569+
margin: 0; /* Gives that scrolling effect as the typing happens */
570+
}
571+
572+
.typing-erase {
573+
animation:
574+
5s typing-erase 5s steps(50, end) infinite,
575+
blink-caret .5s step-end infinite;
576+
}
577+
578+
/* The type and erase effect */
579+
@keyframes typing-erase {
580+
0% { width: 0 }
581+
80% { width: 100% }
582+
90%, 100% { width: 0 }
583+
}
584+
585+
/* The typewriter cursor effect */
586+
@keyframes blink-caret {
587+
from, to { border-color: transparent }
588+
50% { border-color: gray }
589+
}
542590

543591
#typing-carousel-data {
544592
display: none;
@@ -650,52 +698,6 @@ html .top-navbar .nav-link {
650698

651699

652700

653-
.typewriter {
654-
/* # background-color: #fff; */
655-
min-width: 500px;
656-
padding: 1em 2em 1em 1.5em;
657-
border: solid 1px #e6e6e6;
658-
border-radius: 2.8em;
659-
box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.25);
660-
margin: 2em;
661-
display: flex;
662-
align-items: center;
663-
}
664-
665-
.typewriter svg {
666-
padding-right: 2em;
667-
}
668-
669-
.typewriter h1 {
670-
color: #000;
671-
font-size: 1.5em;
672-
font-weight: 500;
673-
width: 0;
674-
max-width: max-content;
675-
overflow: hidden;
676-
border-right: .05em solid #464545; /* The typwriter cursor */
677-
white-space: nowrap; /* Keeps the content on a single line */
678-
margin: 0; /* Gives that scrolling effect as the typing happens */
679-
}
680-
681-
.typing-erase {
682-
animation:
683-
5s typing-erase 5s steps(50, end) infinite,
684-
blink-caret .5s step-end infinite;
685-
}
686-
687-
/* The type and erase effect */
688-
@keyframes typing-erase {
689-
0% { width: 0 }
690-
80% { width: 100% }
691-
90%, 100% { width: 0 }
692-
}
693-
694-
/* The typewriter cursor effect */
695-
@keyframes blink-caret {
696-
from, to { border-color: transparent }
697-
50% { border-color: gray }
698-
}
699701

700702

701703
@-webkit-keyframes cf4FadeInOut {

config.yaml

Lines changed: 47 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,31 @@ outputs:
6767
- RSS
6868
- JSON
6969

70+
# Configure sitemap
71+
sitemap:
72+
changefreq: monthly
73+
priority: 0.5
74+
filename: sitemap.xml
75+
disable: false
76+
7077
# Site parameters
7178
params:
7279
# Background image of the landing page
7380
background: /images/site/background.jpg
7481
hero-background: /images/site/blue-bg.jpg
7582
features:
76-
darkMode:
83+
theme:
7784
enable: true
85+
services:
86+
light: true # enable light theme. default "true"
87+
dark: true # enable dark theme. default "true"
88+
default: system # can be either light, dark or system. default "system"
89+
7890
copyCodeButton:
7991
enable: true
92+
# Enable reading time support in post cards and in post pages
93+
readingTime:
94+
enable: true
8095
flags:
8196
enable: true
8297
blog:
@@ -89,6 +104,7 @@ params:
89104
reddit: true
90105
whatsapp: false
91106
email: true
107+
mastodon: true
92108
# Enable Google Analytics
93109
analytics:
94110
enabled: true
@@ -130,10 +146,36 @@ params:
130146
tags:
131147
enable: true
132148
on_card: true
133-
# Provide newsletter configuration. This feature hasn't been implemented yet.
134-
# Currently, you can just hide it from the footer.
135-
newsletter:
136-
enable: false
149+
150+
# Provide footer configuration.
151+
footer:
152+
enable: true
153+
# You can provide your custom footer template using this option.
154+
# Put your template in "layouts/partials" folder of your repo.
155+
template: footer.html
156+
# Show/hide navigation in the footer. Default is "true".
157+
navigation:
158+
enable: true
159+
# show custom menus in the footer
160+
customMenus: true
161+
# Show/hide "Contact Me" section in the footer. Default is "true".
162+
contactMe:
163+
enable: true
164+
# Show/hide credentials section in the footer. Default is "true".
165+
credentials:
166+
enable: true
167+
168+
# Show/hide newsletter section in the footer. Default is "true".
169+
# Currently, it supports "mailchimp".
170+
newsletter:
171+
enable: false
172+
# provider: mailchimp
173+
# mailchimpURL: https://github.us1.list-manage.com/subscribe/post?u=19de52a4603135aae97163fd8&id=094a24c76e
174+
175+
# Show/hide disclaimer notice in the footer. Default is "false".
176+
disclaimer:
177+
enable: true
178+
137179
# Use Hugo modules to add theme
138180
module:
139181
imports:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: Open Source
3+
menu:
4+
sidebar:
5+
name: Open Source
6+
identifier: open-source
7+
weight: 16
8+
---
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
Title: "A Fresh UI for docling"
3+
Date: 2026-01-15
4+
Category:
5+
Slug: a-fresh-ui-for-docling
6+
hero:
7+
---
8+
448 KB
Loading

0 commit comments

Comments
 (0)