Compare commits

...

5 commits

Author SHA1 Message Date
George Cushen da6ffe72ba starters: update modules 2024-02-24 17:08:36 +00:00
George Cushen 623ca31a5f feat(bootstrap): add compatibility for Hugo v0.123 2024-02-24 17:00:54 +00:00
George Cushen ff085a9fde starters(docs): fix responsive docs menu hidden between md-lg widths 2024-02-24 16:52:53 +00:00
George Cushen 5fc2af797a fix(docs): responsive docs menu hidden between md-lg widths 2024-02-24 16:47:09 +00:00
George Cushen 848582253c fix(docs): mobile menu background
Reported by Rodri on Discord
2024-02-24 16:25:16 +00:00
27 changed files with 54 additions and 59 deletions

View file

@ -44,7 +44,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.122.0'
hugo-version: '0.123.3'
extended: true
- name: Build

View file

@ -1,3 +1,3 @@
# Hugo Blox Builder
version = "5.9.6"
version = "5.9.7"

View file

@ -24,7 +24,7 @@ sitemap:
changefreq: weekly
module:
hugoVersion:
min: '0.119.0'
min: '0.123.3'
extended: true
imports:
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-core

View file

@ -8,7 +8,7 @@
{{ $show_navbar := ((site.Params.header.navbar.enable | default true) | and (ne .Params.header.navbar.enable false)) | or .Params.header.navbar.enable }}
{{- $highlight_active_link := site.Params.header.navbar.highlight_active_link | default true -}}
<body id="top" data-spy="scroll" {{ if $show_navbar }}data-offset="70"{{end}} data-target="{{ if or .IsHome (eq .Type "widget_page") | and $highlight_active_link }}#navbar-main{{else}}#TableOfContents{{end}}" class="page-wrapper {{with .Params.design.css_class}}{{.}}{{end}} {{ if not (.Scratch.Get "light") }}dark{{end}} {{ if not $show_navbar }}no-navbar{{end}}" {{with .File}}data-wc-page-id="{{.File.UniqueID}}"{{end}} {{with .Params.design.css_style}}style="{{. | safeCSS}}"{{end}}>
<body id="top" data-spy="scroll" {{ if $show_navbar }}data-offset="70"{{end}} data-target="{{ if or .IsHome (eq .Type "widget_page") | and $highlight_active_link }}#navbar-main{{else}}#TableOfContents{{end}}" class="page-wrapper {{with .Params.design.css_class}}{{.}}{{end}} {{ if not (.Scratch.Get "light") }}dark{{end}} {{ if not $show_navbar }}no-navbar{{end}}" {{with .File}}data-wc-page-id="{{.UniqueID}}"{{end}} {{with .Params.design.css_style}}style="{{. | safeCSS}}"{{end}}>
{{/* Initialise Hugo Blox. */}}
{{ $js_license := printf "/*! Hugo Blox Builder v%s | https://hugoblox.com/ */\n" site.Data.hugoblox.version }}

View file

@ -1,15 +1,16 @@
@media (max-width: 767px) {
/* Match Tailwind lg (default 1024px): https://tailwindcss.com/docs/screens */
@media (max-width: 1024px) {
.hb-sidebar-container {
@apply fixed top-0 w-full bottom-0 z-[15] pt-[calc(var(--navbar-height))] overscroll-contain;
contain: layout style;
backface-visibility: hidden;
transition: transform 0.8s cubic-bezier(0.52, 0.16, 0.04, 1);
will-change: transform, opacity;
backface-visibility: hidden;
}
}
.hb-sidebar-container {
@apply flex flex-col print:hidden md:top-16 md:shrink-0 md:w-64 md:self-start;
@apply flex flex-col print:hidden lg:top-16 lg:shrink-0 lg:w-64 lg:self-start;
li > div {
@apply h-0;
@ -58,7 +59,7 @@
}
.hb-sidebar-mobile-menu {
@apply fixed inset-0 z-10 bg-black/80 dark:bg-black/60 hidden [transition:background-color_1.5s_ease];
@apply [transition:background-color_0.5s_ease];
}
.hb-sidebar-mobile-toc {

File diff suppressed because one or more lines are too long

View file

@ -22,7 +22,7 @@ document.addEventListener('DOMContentLoaded', function () {
}
// Initialize the overlay
const overlayClasses = ['fixed', 'z-10', 'inset-0', 'bg-black/80', 'dark:bg-black/60'];
const overlayClasses = ['fixed', 'z-10', 'inset-0', 'bg-white', 'dark:bg-black/80'];
overlay.classList.add('bg-transparent');
overlay.classList.remove("hidden", ...overlayClasses);
@ -31,12 +31,12 @@ document.addEventListener('DOMContentLoaded', function () {
// See `hb-nav.js` - it handles the default behavior (irrespective of if sidebar is shown).
// When menu is open, show the navigation sidebar
sidebarContainer.classList.toggle('max-md:[transform:translate3d(0,-100%,0)]');
sidebarContainer.classList.toggle('max-md:[transform:translate3d(0,0,0)]');
sidebarContainer.classList.toggle('max-lg:[transform:translate3d(0,-100%,0)]');
sidebarContainer.classList.toggle('max-lg:[transform:translate3d(0,0,0)]');
// When menu is open, prevent body from scrolling
document.body.classList.toggle('overflow-hidden');
document.body.classList.toggle('md:overflow-auto');
document.body.classList.toggle('lg:overflow-auto');
}
menu.addEventListener('click', (e) => {

View file

@ -2,21 +2,22 @@
{{- $no_sidebar := .no_sidebar | default true -}}
{{- $pad_sidebar := true -}}
{{- $sidebar_dynamic_class := cond $no_sidebar (cond $pad_sidebar "md:hidden xl:block" "md:hidden") "md:sticky" -}}
{{- $sidebar_dynamic_class := cond $no_sidebar (cond $pad_sidebar "lg:hidden xl:block" "lg:hidden") "lg:sticky" -}}
{{- $root_section := cond (eq site.Home.Type "docs") site.Home $context.FirstSection -}}
{{- $page_url := $context.RelPermalink -}}
<div class="hb-sidebar-mobile-menu"></div>
{{/* Classes appended to `hb-sidebar-mobile-menu` are modified via sidebar JS, so do not @apply them to `hb-sidebar-mobile-menu` */}}
<div class="hb-sidebar-mobile-menu fixed inset-0 z-10 bg-white dark:bg-black/80 hidden"></div>
<!-- Explicit `transform` class as we toggle it in JS -->
<aside class="hb-sidebar-container max-md:[transform:translate3d(0,-100%,0)] {{ $sidebar_dynamic_class }}">
<aside class="hb-sidebar-container max-lg:[transform:translate3d(0,-100%,0)] {{ $sidebar_dynamic_class }}">
<!-- Search bar on small screen -->
<div class="px-4 pt-4 md:hidden">
<div class="px-4 pt-4 lg:hidden">
<!-- Currently, use the navbar search button instead -->
{{/* partial "search.html" */}}
</div>
<div class="hb-scrollbar md:h-[calc(100vh-var(--navbar-height))]">
<ul class="flex flex-col gap-1 md:hidden">
<div class="hb-scrollbar lg:h-[calc(100vh-var(--navbar-height))]">
<ul class="flex flex-col gap-1 lg:hidden">
<!-- Navigation links -->
{{ template "menu-links" (dict "context" site.Home "pageURL" $page_url "page" $context "toc" true) -}}
{{ template "custom-menu-links" }}
@ -26,7 +27,7 @@
{{- if $no_sidebar -}}
<div class="max-xl:hidden h-0 w-64 shrink-0"></div>
{{- else -}}
<ul class="flex flex-col gap-1 max-md:hidden">
<ul class="flex flex-col gap-1 max-lg:hidden">
{{ template "menu-links" (dict "context" $root_section "page" $context "pageURL" $page_url) }}
{{ template "custom-menu-links" }}
</ul>

View file

@ -1,7 +1,7 @@
name: Deploy website to GitHub Pages
env:
WC_HUGO_VERSION: '0.119.0'
WC_HUGO_VERSION: '0.123.3'
on:
# Trigger the workflow every time you push to the `main` branch

View file

@ -3,7 +3,7 @@ module github.com/HugoBlox/theme-academic-cv
go 1.15
require (
github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 v5.9.6
github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 v5.9.7
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231108141515-0478cf6921f9
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-reveal v1.1.2
)

View file

@ -3,7 +3,7 @@
publish = "public"
[build.environment]
HUGO_VERSION = "0.119.0"
HUGO_VERSION = "0.123.3"
HUGO_ENABLEGITINFO = "true"
[context.production.environment]

View file

@ -3,6 +3,6 @@ module my_website
go 1.15
require (
github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 v5.9.7-0.20231108143325-448ed0e3bd2b
github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 v5.9.7
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231108143325-448ed0e3bd2b
)

View file

@ -37,14 +37,6 @@ cascade:
header:
navbar:
enable: true
# Blog section options
- _target:
path: /post/*
kind: section
# Change url to /blog/
url: /blog/
# Set the listing view
view: date-title-summary
############################
## LANGUAGE
@ -70,6 +62,7 @@ footnotereturnlinkcontents: <sup>^</sup>
ignoreFiles: [\.ipynb$, .ipynb_checkpoints$, \.Rmd$, \.Rmarkdown$, _cache$]
enableInlineShortcodes: true
permalinks:
post: '/blog/:slug/'
authors: '/author/:slug/'
tags: '/tag/:slug/'
categories: '/category/:slug/'

View file

@ -1,3 +1,5 @@
---
title: Blog
view: date-title-summary
url: /blog/
---

View file

@ -4,5 +4,5 @@ go 1.15
require (
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20240217212918-ae7f0c597978
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240218004752-06e9c42adcfe
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240224164709-5fc2af797a35
)

View file

@ -31,6 +31,7 @@ sections:
# For full-screen, add `min-h-screen` below
css_class: "dark"
background:
color: "navy"
image:
# Add your image background to `assets/media/`.
filename: bg-triangles.svg

View file

@ -3,7 +3,7 @@ module github.com/wowchemy/starter-hugo-markdown-slides
go 1.15
require (
github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 v5.9.7-0.20231108143325-448ed0e3bd2b
github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 v5.9.7
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-decap-cms v0.1.2-0.20231108143325-448ed0e3bd2b
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231108143325-448ed0e3bd2b
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-reveal v1.1.3-0.20231108143325-448ed0e3bd2b

View file

@ -3,6 +3,6 @@ module my_website
go 1.15
require (
github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 v5.9.7-0.20231203174848-dced0cd82487
github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 v5.9.7
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231203174848-dced0cd82487
)

View file

@ -1,7 +1,7 @@
name: Deploy website to GitHub Pages
env:
WC_HUGO_VERSION: '0.119.0'
WC_HUGO_VERSION: '0.123.3'
on:
# Trigger the workflow every time you push to the `main` branch

View file

@ -3,7 +3,7 @@ module github.com/wowchemy/starter-hugo-research-group
go 1.15
require (
github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 v5.9.7-0.20231108143325-448ed0e3bd2b
github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 v5.9.7
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-decap-cms v0.1.2-0.20231108143325-448ed0e3bd2b
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231108143325-448ed0e3bd2b
)

View file

@ -3,7 +3,7 @@
publish = "public"
[build.environment]
HUGO_VERSION = "0.119.0"
HUGO_VERSION = "0.123.3"
HUGO_ENABLEGITINFO = "true"
[context.production.environment]

View file

@ -1,29 +1,29 @@
# [Hugo Second Brain Theme](https://github.com/wowchemy/hugo-second-brain-theme)
# [Hugo Second Brain Theme](https://github.com/HugoBlox/theme-second-brain)
[![Screenshot](./preview.webp)](https://hugoblox.com/hugo-themes/)
[![Screenshot](./preview.webp)](https://hugoblox.com/templates/)
The **Second Brain** starter template empowers you to easily create **personal notes** and **knowledge bases** in a future-proof way.
- It is your **second brain** 🧠, stored in **future-proof** Markdown files
- Supports audio, video, images, math, code, [Mermaid](https://mermaid.live/) diagrams, and [much more](https://hugoblox.com/docs/content/writing-markdown-latex/)
- Supports audio, video, images, math, code, [Mermaid](https://mermaid.live/) diagrams, and [much more](https://docs.hugoblox.com/content/writing-markdown-latex/)
- Edit your notes online in GitHub, or any Git-connected Markdown app such as [Obsidian](https://obsidian.md/) or [Visual Studio Code](https://vscode.dev/)
[![Get Started](https://img.shields.io/badge/-Get%20started-ff4655?style=for-the-badge)](https://hugoblox.com/hugo-themes/)
[![Get Started](https://img.shields.io/badge/-Get%20started-ff4655?style=for-the-badge)](https://hugoblox.com/templates/)
[![Discord](https://img.shields.io/discord/722225264733716590?style=for-the-badge)](https://discord.com/channels/722225264733716590/742892432458252370/742895548159492138)
[![Twitter Follow](https://img.shields.io/twitter/follow/GetResearchDev?label=Follow%20on%20Twitter)](https://twitter.com/wowchemy)
[Check out the latest demo](https://hugoblox.com/docs/) of what you'll get in less than 10 minutes, or [get inspired by how others are using this template](https://hugoblox.com/creators/).
[Check out the latest demo](https://docs.hugoblox.com/) of what you'll get in less than 10 minutes, or [get inspired by how others are using this template](https://hugoblox.com/creators/).
The integrated [**Wowchemy**](https://hugoblox.com) website builder and CMS makes it easy to create a beautiful website for free. Edit your site in the CMS (or your favorite editor), generate it with [Hugo](https://github.com/gohugoio/hugo), and deploy with GitHub or Netlify. Customize anything on your site with widgets, light/dark themes, and language packs.
- 👉 [**Get Started**](https://hugoblox.com/hugo-themes/)
- 📚 [View the **documentation**](https://hugoblox.com/docs/)
- 📚 [View the **documentation**](https://docs.hugoblox.com/)
- 💬 [Chat with the **Wowchemy research community**](https://discord.gg/z8wNYzb) or [**Hugo community**](https://discourse.gohugo.io)
- ⬇️ **Automatically import citations from BibTeX** with the [Hugo Academic CLI](https://github.com/GetRD/academic-file-converter)
- 🐦 Share your new site with the community: [@wowchemy](https://twitter.com/wowchemy) [@GeorgeCushen](https://twitter.com/GeorgeCushen) [#MadeWithWowchemy](https://twitter.com/search?q=%23MadeWithWowchemy&src=typed_query)
- 🗳 [Take the survey and help us improve #OpenSource](https://forms.gle/NioD9VhUg7PNmdCAA)
- 🚀 [Contribute improvements](https://github.com/HugoBlox/hugo-blox-builder/blob/main/CONTRIBUTING.md) or [suggest improvements](https://github.com/HugoBlox/hugo-blox-builder/issues)
- ⬆️ **Updating?** View the [Update Guide](https://hugoblox.com/docs/hugo-tutorials/update/) and [Release Notes](https://github.com/HugoBlox/hugo-blox-builder/releases)
- ⬆️ **Updating?** View the [Update Guide](https://docs.hugoblox.com/hugo-tutorials/update/) and [Release Notes](https://github.com/HugoBlox/hugo-blox-builder/releases)
## We ask you, humbly, to support this open source movement
@ -31,4 +31,4 @@ Today we ask you to defend the open source independence of the Wowchemy website
We're an open source movement that depends on your support to stay online and thriving, but 99.9% of our creators don't give; they simply look the other way.
### [❤️ Click here to become a GitHub Sponsor, unlocking awesome perks such as _exclusive academic templates and widgets_](https://github.com/sponsors/gcushen)
### [❤️ Click here to become a GitHub Sponsor, unlocking awesome perks such as _exclusive academic templates and widgets_](https://hugoblox.com/sponsor/)

View file

@ -1,5 +1,5 @@
# Configuration of Hugo
# Guide: https://hugoblox.com/docs/getting-started/
# Guide: https://docs.hugoblox.com/tutorial/
# Hugo Documentation: https://gohugo.io/getting-started/configuration/#all-configuration-settings
# This file is formatted using YAML syntax - learn more at https://learnxinyminutes.com/docs/yaml/
@ -33,8 +33,6 @@ removePathAccents: true
module:
imports:
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify-cms
disable: true
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5

View file

@ -1,6 +1,6 @@
# SITE SETUP
# Guide: https://hugoblox.com/docs/getting-started/
# Documentation: https://hugoblox.com/docs/
# Guide: https://docs.hugoblox.com/tutorial/
# Documentation: https://docs.hugoblox.com/
# This file is formatted using YAML syntax - learn more at https://learnxinyminutes.com/docs/yaml/
# Appearance
@ -18,8 +18,8 @@ marketing:
site_type: Project
local_business_type: ''
org_name: ''
description: 'A highly-customizable Hugo notes theme powered by Wowchemy website builder.'
twitter: 'wowchemy'
description: 'A highly-customizable Hugo notes theme powered by Hugo Blox Builder.'
twitter: 'GetResearchDev'
analytics:
google_analytics: ''
baidu_tongji: ''

View file

@ -13,7 +13,7 @@ Welcome to the _Second Brain_ template!
The **Second Brain** starter template empowers you to easily create **personal notes** and **knowledge bases** in a future-proof way.
- It is your second brain 🧠, stored in future-proof Markdown files
- Supports audio, video, images, math, code, [Mermaid](https://mermaid.live/) diagrams, and [much more](https://hugoblox.com/docs/content/writing-markdown-latex/)
- Supports audio, video, images, math, code, [Mermaid](https://mermaid.live/) diagrams, and [much more](https://docs.hugoblox.com/content/writing-markdown-latex/)
- Edit your notes online in GitHub, or any Git-connected Markdown app such as [Obsidian](https://obsidian.md/) or [Visual Studio Code](https://vscode.dev/)
```markmap {height="200px"}
@ -34,7 +34,7 @@ To create an **open second brain**, share your knowledge with others [by deployi
To create a **private second brain** either:
- After deploying your site above, [password protect your online second brain](https://docs.netlify.com/visitor-access/password-protection/) and configure your GitHub repo as **private**
- [Download this template](https://github.com/wowchemy/hugo-second-brain-theme) and [run the tool locally](https://hugoblox.com/docs/getting-started/install-hugo-extended/)
- [Download this template](https://github.com/wowchemy/hugo-second-brain-theme) and [run the tool locally](https://docs.hugoblox.com/getting-started/install-hugo-extended/)
## Example notebook

View file

@ -2,7 +2,7 @@
# Title, summary, and page position.
title: 🤖 Machine Learning
linktitle: 🤖 Machine Learning
summary: Learn how to use Wowchemy's docs layout for publishing online courses, software documentation, and tutorials.
summary: Learn how to use Hugo Blox Builder's docs layout for publishing online courses, software documentation, and tutorials.
weight: 1
# icon: book
# icon_pack: fas

View file

@ -3,7 +3,6 @@ module github.com/wowchemy/hugo-second-brain-theme
go 1.15
require (
github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 v5.9.2
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.0.1-0.20231102170729-56446cc94882
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify-cms v1.0.1-0.20231102170729-56446cc94882
github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 v5.9.7
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231108143325-448ed0e3bd2b
)