Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ baseURL = 'https://hive.apache.org'
languageCode = 'en-us'
title = 'Hive Site'
theme = 'hive'

# Site version for cache busting
[params]
version = "1.1.0"
hiveLogo = "/images/hive.svg"
logo = "/images/asf_logo.png"
apacheURL = 'https://www.apache.org'
Expand Down
7 changes: 5 additions & 2 deletions themes/hive/layouts/_default/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
{{- $sc := newScratch -}}
{{- if isset .Params "description" -}}
{{- $sc.Add "ct" .Description -}}
{{- $sc.Add "ct" ". " -}}
{{- end -}}

{{- if isset .Params "about" -}}
{{- range .Params.About.about_item }}
{{- $sc.Add "ct" (print .title " " .subtitle " " .content) -}}
{{- $sc.Add "ct" (print .title " " .subtitle " " .content " ") -}}
{{- end -}}
{{- end -}}
{{- $sc.Add "ct" .Plain -}}
{{- $plainContent := .Plain -}}
{{- $plainContent = replaceRE "\\s{2,}" " " $plainContent -}}
{{- $sc.Add "ct" $plainContent -}}
{{- $content := $sc.Get "ct" }}

{{ $date:= .PublishDate.Format "02"}}
Expand Down
28 changes: 16 additions & 12 deletions themes/hive/layouts/_default/search.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
{{ define "main" }}

<main>
<div id="search-results"></div>
<div class="search-loading">Loading...</div>
<main class="search-page">
<div class="container">
<div class="search-results-header">
<h1>Search Results</h1>
<div class="search-loading" style="display:none;">
<i class="fa fa-spinner fa-spin"></i> Searching...
</div>
</div>
<div id="search-results"></div>
</div>

<script id="search-result-template" type="text/x-js-template">
<div id="summary-${key}">
<h3><a href="${link}">${title}</a></h3>
<p>${snippet}</p>
<p>
<small>
${ isset tags }Tags: ${tags}<br>${ end }
</small>
</p>
</div>
<article class="search-result-item">
<h3 class="search-result-title">
<a href="${link}">${title}</a>
</h3>
<p class="search-result-snippet" id="summary-${key}">${snippet}</p>
</article>
</script>

<script src="{{ .Site.BaseURL }}/js/fuse.min.js"></script>
Expand Down
3 changes: 2 additions & 1 deletion themes/hive/layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,5 @@
</div>

</footer>
<script src="{{ .Site.BaseURL }}/js/bootstrap.bundle.min.js"></script>
<!-- JavaScript files with cache busting -->
<script src="{{ .Site.BaseURL }}/js/bootstrap.bundle.min.js?v={{ .Site.Params.version }}"></script>
13 changes: 9 additions & 4 deletions themes/hive/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,17 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<!-- Cache control for development -->
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<title>{{ .Title }}</title>
<link rel="icon" href="/images/hive.svg" sizes="any" type="image/svg+xml">
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/hive-theme.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/font-awesome.all.min.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/bootstrap.min.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/termynal.css">
<!-- CSS files with cache busting -->
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/hive-theme.css?v={{ .Site.Params.version }}">
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/font-awesome.all.min.css?v={{ .Site.Params.version }}">
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/bootstrap.min.css?v={{ .Site.Params.version }}">
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/termynal.css?v={{ .Site.Params.version }}">
<link rel="apple-touch-icon" sizes="180x180" href="{{ .Site.BaseURL }}/images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="{{ .Site.BaseURL }}/images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="{{ .Site.BaseURL }}/images/favicon-16x16.png">
Expand Down
182 changes: 180 additions & 2 deletions themes/hive/static/css/hive-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -302,15 +302,15 @@ features {

.search-button {
border: none;
background: #17a2b8;
background: #007bff;
color: #ffffff;
padding: 0.5rem 0.75rem;
cursor: pointer;
transition: background-color 0.3s ease;
}

.search-button:hover {
background: #138496;
background: #0056b3;
}

.search-button i {
Expand Down Expand Up @@ -2704,3 +2704,181 @@ features.container {
}



/* ======================================
SEARCH RESULTS PAGE STYLES
====================================== */

.search-page {
max-width: 1400px;
margin: 0 auto;
padding: 2rem 3rem;
min-height: 60vh;
}

.search-results-header {
margin-bottom: 2.5rem;
}

.search-results-header h1 {
font-size: 2.5rem;
font-weight: 600;
color: #1a202c;
margin: 0 0 1rem 0;
}

.search-loading {
color: #206cd6;
font-size: 1rem;
padding: 1rem 0;
display: flex;
align-items: center;
gap: 0.75rem;
}

.search-loading i {
font-size: 1.2rem;
}

/* Search Results Empty State */
.search-results-empty {
text-align: center;
padding: 3rem 2rem;
color: #6b7280;
}

.search-results-empty i {
font-size: 3rem;
color: #cbd5e0;
margin-bottom: 1rem;
}

/* Individual Search Result Item */
.search-result-item {
background: white;
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 2rem 2.5rem;
margin-bottom: 2rem;
transition: all 0.3s ease;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.search-result-item:hover {
border-color: #206cd6;
box-shadow: 0 8px 20px rgba(32, 108, 214, 0.12);
transform: translateY(-3px);
}

.search-result-title {
font-size: 1.75rem;
font-weight: 600;
margin: 0 0 1rem 0;
}

.search-result-title a {
color: #206cd6;
text-decoration: none;
transition: color 0.2s ease;
}

.search-result-title a:hover {
color: #1a5ba8;
text-decoration: underline;
}

.search-result-snippet {
color: #4a5568;
font-size: 1.05rem;
line-height: 1.7;
margin: 0 0 1.25rem 0;
}

/* Highlight matched terms */
.search-result-snippet mark {
background: #fef3c7;
color: #92400e;
padding: 0.1rem 0.2rem;
border-radius: 3px;
font-weight: 600;
}

.search-result-meta {
display: flex;
align-items: center;
gap: 1rem;
flex-wrap: wrap;
font-size: 0.85rem;
color: #6b7280;
}

.search-result-link {
color: #10b981;
font-family: 'Monaco', 'Courier New', monospace;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 400px;
}

.search-result-tags {
display: flex;
align-items: center;
gap: 0.5rem;
}

.search-result-tags i {
color: #9ca3af;
}

.search-result-tags a {
color: #206cd6;
text-decoration: none;
padding: 0.25rem 0.5rem;
background: #eff6ff;
border-radius: 4px;
transition: all 0.2s ease;
}

.search-result-tags a:hover {
background: #dbeafe;
color: #1a5ba8;
}

/* Search Result Count */
.search-results-count {
padding: 1rem 0;
color: #6b7280;
font-size: 0.95rem;
margin-bottom: 1rem;
border-bottom: 1px solid #e2e8f0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
.search-page {
padding: 1rem;
}

.search-results-header h1 {
font-size: 1.75rem;
}

.search-result-item {
padding: 1.25rem;
}

.search-result-title {
font-size: 1.25rem;
}

.search-result-link {
max-width: 200px;
}

.search-result-meta {
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
}
}
Loading