mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-14 06:17:20 +00:00
fix: links (cont.)
This commit is contained in:
1 parent
448ed0e3bd
commit
d9695efa09
146 files changed
+256
-269
No files matched your search
@@ -35,7 +35,7 @@ education:
|
||||
year: 2012
|
||||
|
||||
# Social/Academic Networking
|
||||
# For available icons, see: https://hugoblox.com/docs/page-builder/#icons
|
||||
# For available icons, see: https://docs.hugoblox.com/getting-started/page-builder/#icons
|
||||
# For an email link, use "fas" icon pack, "envelope" icon, and a link in the
|
||||
# form "mailto:your-email@example.com" or "#contact" for contact widget.
|
||||
social:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
# Documentation: https://hugoblox.com/docs/managing-content/
|
||||
# Documentation: https://docs.hugoblox.com/managing-content/
|
||||
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
linktitle: "{{ replace .Name "-" " " | title }}"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
# Documentation: https://hugoblox.com/docs/managing-content/
|
||||
# Documentation: https://docs.hugoblox.com/managing-content/
|
||||
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
subtitle: ""
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
# Documentation: https://hugoblox.com/docs/managing-content/
|
||||
# Documentation: https://docs.hugoblox.com/managing-content/
|
||||
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
event:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
+++
|
||||
# A section created with the Blank widget.
|
||||
widget = "blank" # See https://hugoblox.com/docs/page-builder/
|
||||
widget = "blank" # See https://docs.hugoblox.com/page-builder/
|
||||
headless = true # This file represents a page section.
|
||||
active = true # Activate this widget? true/false
|
||||
weight = 1 # Order that this section will appear.
|
||||
@@ -45,4 +45,4 @@ subtitle = ""
|
||||
css_class = ""
|
||||
+++
|
||||
|
||||
[**Add some elements here**](https://hugoblox.com/docs/writing-markdown-latex/)
|
||||
[**Add some elements here**](https://docs.hugoblox.com/writing-markdown-latex/)
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
# Documentation: https://hugoblox.com/docs/managing-content/
|
||||
# Documentation: https://docs.hugoblox.com/managing-content/
|
||||
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
subtitle: ""
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
# Documentation: https://hugoblox.com/docs/managing-content/
|
||||
# Documentation: https://docs.hugoblox.com/managing-content/
|
||||
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
summary: ""
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
# Documentation: https://hugoblox.com/docs/managing-content/
|
||||
# Documentation: https://docs.hugoblox.com/managing-content/
|
||||
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
authors: []
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
# Documentation: https://hugoblox.com/docs/managing-content/
|
||||
# Documentation: https://docs.hugoblox.com/managing-content/
|
||||
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
summary: ""
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Page Sharer
|
||||
# Documentation: https://hugoblox.com/docs/customization/#page-sharer
|
||||
# Documentation: https://docs.hugoblox.com/reference/page-sharer/
|
||||
|
||||
[[buttons]]
|
||||
id = "twitter"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
{{/* Check that user fully installed Hugo Blox Builder. */}}
|
||||
{{/* Commented out to allow user to have no params.yaml and just use the defaults. */}}
|
||||
{{/* if not (isset site.Params "seo") */}}
|
||||
{{/* errorf "Please complete the installation of Hugo Blox Builder by following the steps at https://hugoblox.com/docs/install/" */}}
|
||||
{{/* errorf "Please complete the installation of Hugo Blox Builder by following the steps at https://docs.hugoblox.com/" */}}
|
||||
{{/* end */}}
|
||||
|
||||
{{/* Deprecation warnings */}}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
{{ $person_page_path := (printf "/authors/%s" $author) }}
|
||||
{{ $person_page := site.GetPage $person_page_path }}
|
||||
{{ if not $person_page }}
|
||||
{{ errorf "Could not find an author page at `%s`. Please check the value of `author` in your About widget and create an associated author page if one does not already exist. See https://hugoblox.com/docs/page-builder/#about " $person_page_path }}
|
||||
{{ errorf "Could not find an author page at `%s`. Please check the value of `author` in your About widget and create an associated author page if one does not already exist. See https://docs.hugoblox.com/page-builder/#about " $person_page_path }}
|
||||
{{end}}
|
||||
{{ $person := $person_page.Params }}
|
||||
{{ $avatar := ($person_page.Resources.ByType "image").GetMatch "*avatar*" }}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
{{ $person_page_path := (printf "/authors/%s" $author) }}
|
||||
{{ $person_page := site.GetPage $person_page_path }}
|
||||
{{ if not $person_page }}
|
||||
{{ errorf "Could not find an author page at `%s`. Please check the value of `author` in your About widget and create an associated author page if one does not already exist. See https://hugoblox.com/docs/page-builder/#about " $person_page_path }}
|
||||
{{ errorf "Could not find an author page at `%s`. Please check the value of `author` in your About widget and create an associated author page if one does not already exist. See https://docs.hugoblox.com/page-builder/#about " $person_page_path }}
|
||||
{{end}}
|
||||
{{ $person := $person_page.Params }}
|
||||
{{ $avatar := ($person_page.Resources.ByType "image").GetMatch "*avatar*" }}
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
{{ $post_action = "netlify" }}
|
||||
{{ else if $use_formspree_form }}
|
||||
{{ if not $block.content.form.formspree.id }}
|
||||
{{ errorf "You have chosen to use Formspree as the provider for the contact form. Please set your Formspree Form ID in the Contact widget or disable the form.\nDocumentation: https://hugoblox.com/docs/widget/contact/" }}
|
||||
{{ errorf "You have chosen to use Formspree as the provider for the contact form. Please set your Formspree Form ID in the Contact widget or disable the form.\nDocumentation: https://docs.hugoblox.com/widget/contact/" }}
|
||||
{{ end }}
|
||||
{{ if and $use_formspree_captcha (not $block.content.form.formspree.captcha_key) }}
|
||||
{{ errorf "You have chosen to use reCAPTCHA for Formspree. Please set your Formspree CAPTCHA KEY in the Contact widget or disable reCAPTCHA.\nDocumentation: https://help.formspree.io/hc/en-us/articles/360022811154" }}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
{{ $person_page_path := (printf "/authors/%s" $author) }}
|
||||
{{ $person_page := site.GetPage $person_page_path }}
|
||||
{{ if not $person_page }}
|
||||
{{ errorf "Could not find an author page at `%s`. Please check the value of `author` in your Skill block and create an associated author page if one does not already exist. See https://hugoblox.com/docs/page-builder/#about " $person_page_path }}
|
||||
{{ errorf "Could not find an author page at `%s`. Please check the value of `author` in your Skill block and create an associated author page if one does not already exist. See https://docs.hugoblox.com/page-builder/#about " $person_page_path }}
|
||||
{{end}}
|
||||
{{ $skills := $person_page.Params.skills }}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
{{ $person_page_path := (printf "/authors/%s" $author) }}
|
||||
{{ $person_page := site.GetPage $person_page_path }}
|
||||
{{ if not $person_page }}
|
||||
{{ errorf "Could not find an author page at `%s`. Please check the value of `author` in your About widget and create an associated author page if one does not already exist. See https://hugoblox.com/docs/page-builder/#about " $person_page_path }}
|
||||
{{ errorf "Could not find an author page at `%s`. Please check the value of `author` in your About widget and create an associated author page if one does not already exist. See https://docs.hugoblox.com/page-builder/#about " $person_page_path }}
|
||||
{{end}}
|
||||
{{ $person := $person_page.Params }}
|
||||
{{ $avatar := ($person_page.Resources.ByType "image").GetMatch "*avatar*" }}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
{{ $person_page_path := (printf "/authors/%s" $author) }}
|
||||
{{ $person_page := site.GetPage $person_page_path }}
|
||||
{{ if not $person_page }}
|
||||
{{ errorf "Could not find an author page at `%s`. Please check the value of `author` in your About widget and create an associated author page if one does not already exist. See https://hugoblox.com/docs/page-builder/#about " $person_page_path }}
|
||||
{{ errorf "Could not find an author page at `%s`. Please check the value of `author` in your About widget and create an associated author page if one does not already exist. See https://docs.hugoblox.com/page-builder/#about " $person_page_path }}
|
||||
{{end}}
|
||||
{{ $person := $person_page.Params }}
|
||||
{{ $avatar := ($person_page.Resources.ByType "image").GetMatch "*avatar*" }}
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
{{ $post_action = "netlify" }}
|
||||
{{ else if $use_formspree_form }}
|
||||
{{ if not $block.Params.content.form.formspree.id }}
|
||||
{{ errorf "You have chosen to use Formspree as the provider for the contact form. Please set your Formspree Form ID in the Contact widget or disable the form.\nDocumentation: https://hugoblox.com/docs/widget/contact/" }}
|
||||
{{ errorf "You have chosen to use Formspree as the provider for the contact form. Please set your Formspree Form ID in the Contact widget or disable the form.\nDocumentation: https://docs.hugoblox.com/widget/contact/" }}
|
||||
{{ end }}
|
||||
{{ if and $use_formspree_captcha (not $block.Params.content.form.formspree.captcha_key) }}
|
||||
{{ errorf "You have chosen to use reCAPTCHA for Formspree. Please set your Formspree CAPTCHA KEY in the Contact widget or disable reCAPTCHA.\nDocumentation: https://help.formspree.io/hc/en-us/articles/360022811154" }}
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<link rel="preload" as="style" {{ printf "href=\"https://fonts.googleapis.com/css2?%s&display=swap\"" . | safeHTMLAttr }}>
|
||||
<link rel="stylesheet" {{ printf "href=\"https://fonts.googleapis.com/css2?%s&display=swap\"" . | safeHTMLAttr }} media="print" onload="this.media='all'">
|
||||
{{ else }}
|
||||
{{ errorf "There is a new version of Google Fonts. Learn how to upgrade your font pack at https://hugoblox.com/docs/customization/#custom-font" }}
|
||||
{{ errorf "There is a new version of Google Fonts. Learn how to upgrade your font pack at https://docs.hugoblox.com/customization/#custom-font" }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
{{ if not $headless_bundle }}
|
||||
{{ warnf "Hugo cannot find a Widget Page at %s!" $page }}
|
||||
{{ warnf "If the page exists, Hugo Server may need restarting due to file changes." }}
|
||||
{{ warnf "View the Widget Page documentation at https://hugoblox.com/docs/managing-content/#create-a-widget-page ." }}
|
||||
{{ warnf "View the Widget Page documentation at https://docs.hugoblox.com/managing-content/#create-a-widget-page ." }}
|
||||
{{ warnf "If the Hugo version is between 0.65 and 0.68, it may be a confirmed Hugo bug that is expected to be fixed in Hugo v0.69: https://github.com/HugoBlox/hugo-blox-builder/issues/1595#issuecomment-605514973 ." }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
{{/* Supports primarily MP3 and MP4. */}}
|
||||
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#audio
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#audio
|
||||
|
||||
Parameters
|
||||
----------
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#callouts
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#callouts
|
||||
|
||||
Parameters
|
||||
----------
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#charts
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#charts
|
||||
|
||||
Parameters
|
||||
----------
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#cite
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#cite
|
||||
|
||||
Parameters
|
||||
----------
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#call-to-action-buttons
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#call-to-action-buttons
|
||||
|
||||
Parameters
|
||||
----------
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#emojis
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#emojis
|
||||
*/}}
|
||||
|
||||
<div class="emoji-list">{{ .Inner }}</div>
|
||||
@@ -4,7 +4,7 @@
|
||||
such as Callout, without the HTML being rendered as a Markdown code block. */}}
|
||||
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#single-image
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#single-image
|
||||
|
||||
Parameters
|
||||
----------
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
{{/* https://github.com/HugoBlox/hugo-blox-builder */}}
|
||||
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#image-gallery
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#image-gallery
|
||||
|
||||
Parameters
|
||||
----------
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#embed-documents
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#embed-documents
|
||||
|
||||
Parameters
|
||||
----------
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#highlight-quote
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#highlight-quote
|
||||
*/}}
|
||||
|
||||
<mark>{{ .Inner | markdownify | emojify }}</mark>
|
||||
@@ -1,5 +1,5 @@
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#inline-image
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#inline-image
|
||||
|
||||
Parameters
|
||||
----------
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#tags-and-categories
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#tags-and-categories
|
||||
*/}}
|
||||
|
||||
<ul class="list-unstyled">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#list-child-pages
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#list-child-pages
|
||||
|
||||
Parameters
|
||||
----------
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#tags-and-categories
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#tags-and-categories
|
||||
*/}}
|
||||
|
||||
<ul class="list-unstyled">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#math
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#math
|
||||
*/}}
|
||||
|
||||
{{ .Inner }}
|
||||
@@ -1,5 +1,5 @@
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#mention-a-user
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#mention-a-user
|
||||
|
||||
Parameters
|
||||
----------
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#toggle-list
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#toggle-list
|
||||
|
||||
Parameters
|
||||
----------
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#link-to-a-page
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#link-to-a-page
|
||||
Parameters
|
||||
----------
|
||||
#0 : positional
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
{{/* Defaults to expecting a comma-separated CSV with a header row. */}}
|
||||
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#csv-table
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#csv-table
|
||||
|
||||
Parameters
|
||||
----------
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#table-of-contents
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#table-of-contents
|
||||
|
||||
Parameters
|
||||
----------
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
{{/* Load video from page dir falling back to media library at `assets/media/` and then to remote URI. */}}
|
||||
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#videos
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#videos
|
||||
|
||||
Parameters
|
||||
----------
|
||||
|
||||
@@ -45,7 +45,7 @@ collections:
|
||||
- {label: "Regular", value: "far"}
|
||||
- {label: "Brand", value: "fab"}
|
||||
- {label: "Academic", value: "ai"}
|
||||
- {label: Icon (see https://hugoblox.com/docs/page-builder/#icons), name: icon, widget: string}
|
||||
- {label: Icon (see https://docs.hugoblox.com/getting-started/page-builder/#icons), name: icon, widget: string}
|
||||
- {label: Label (tooltip), name: label, widget: string, required: false}
|
||||
- label: Display in About widget and...
|
||||
name: display
|
||||
@@ -195,7 +195,7 @@ collections:
|
||||
- {label: "Regular", value: "far"}
|
||||
- {label: "Brand", value: "fab"}
|
||||
- {label: "Academic", value: "ai"}
|
||||
- {label: "Icon (see https://hugoblox.com/docs/page-builder/#icons)", name: icon, widget: string, required: false}
|
||||
- {label: "Icon (see https://docs.hugoblox.com/getting-started/page-builder/#icons)", name: icon, widget: string, required: false}
|
||||
- label: "Featured Image"
|
||||
name: "image"
|
||||
required: false
|
||||
@@ -245,7 +245,7 @@ collections:
|
||||
- {label: "Regular", value: "far"}
|
||||
- {label: "Brand", value: "fab"}
|
||||
- {label: "Academic", value: "ai"}
|
||||
- {label: "Icon (see https://hugoblox.com/docs/page-builder/#icons)", name: icon, widget: string, required: false}
|
||||
- {label: "Icon (see https://docs.hugoblox.com/getting-started/page-builder/#icons)", name: icon, widget: string, required: false}
|
||||
- {label: "Event", name: "event", widget: "string"}
|
||||
- {label: "Event link", name: "event_url", widget: "string"}
|
||||
- {label: "Publish this page on", name: "publishDate", widget: "datetime"}
|
||||
|
||||
@@ -25,4 +25,4 @@ By default, the plugin will help secure your site with some common security head
|
||||
|
||||
## Configure
|
||||
|
||||
- 📚 [View the **documentation**](https://hugoblox.com/docs/hugo-tutorials/security/)
|
||||
- 📚 [View the **documentation**](https://docs.hugoblox.com/hugo-tutorials/security/)
|
||||
@@ -5,7 +5,7 @@
|
||||
{{- $permissions_policy := site.Params.security.permissions.policy | default $default_perms -}}
|
||||
# Netlify headers
|
||||
# Automatically generated
|
||||
# Documentation: https://hugoblox.com/docs/hugo-tutorials/security/
|
||||
# Documentation: https://docs.hugoblox.com/hugo-tutorials/security/
|
||||
/*
|
||||
{{if not $allow_frame}}X-Frame-Options: DENY{{end}}
|
||||
X-XSS-Protection: 1; mode=block
|
||||
|
||||
@@ -18,4 +18,4 @@ Supports math, syntax highlighting, diagrams, speaker notes, and much more!
|
||||
|
||||
## Usage
|
||||
|
||||
[View the documentation](https://hugoblox.com/docs/content/slides/)
|
||||
[View the documentation](https://docs.hugoblox.com/content/slides/)
|
||||
@@ -1,6 +1,6 @@
|
||||
# blox-seo
|
||||
|
||||
A Hugo plugin for [Search Engine Optimisation (SEO)](https://hugoblox.com/docs/hugo-tutorials/seo/), site verification, and [analytics](https://hugoblox.com/docs/hugo-tutorials/analytics/).
|
||||
A Hugo plugin for [Search Engine Optimisation (SEO)](https://docs.hugoblox.com/hugo-tutorials/seo/), site verification, and [analytics](https://docs.hugoblox.com/hugo-tutorials/analytics/).
|
||||
|
||||
## Install
|
||||
|
||||
@@ -24,4 +24,4 @@ Otherwise, if you are not using the `blox-bootstrap` module, you can get SEO fea
|
||||
|
||||
## Usage
|
||||
|
||||
[View the documentation](https://hugoblox.com/docs/hugo-tutorials/seo/)
|
||||
[View the documentation](https://docs.hugoblox.com/hugo-tutorials/seo/)
|
||||
@@ -4,7 +4,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
});
|
||||
|
||||
function addThemeToggleListener() {
|
||||
const defaultTheme = window.wowchemy.defaultTheme;
|
||||
const defaultTheme = window.hbb.defaultTheme;
|
||||
const themeToggleButtons = document.querySelectorAll(".theme-toggle");
|
||||
|
||||
// Change the icons of the buttons based on previous settings or system theme
|
||||
@@ -24,18 +24,18 @@ function addThemeToggleListener() {
|
||||
console.debug('Theme toggled');
|
||||
if (localStorage.getItem("wc-color-theme")) {
|
||||
if (localStorage.getItem("wc-color-theme") === "light") {
|
||||
window.wowchemy.setDarkTheme();
|
||||
window.hbb.setDarkTheme();
|
||||
localStorage.setItem("wc-color-theme", "dark");
|
||||
} else {
|
||||
window.wowchemy.setLightTheme();
|
||||
window.hbb.setLightTheme();
|
||||
localStorage.setItem("wc-color-theme", "light");
|
||||
}
|
||||
} else {
|
||||
if (document.documentElement.classList.contains("dark")) {
|
||||
window.wowchemy.setLightTheme();
|
||||
window.hbb.setLightTheme();
|
||||
localStorage.setItem("wc-color-theme", "light");
|
||||
} else {
|
||||
window.wowchemy.setDarkTheme();
|
||||
window.hbb.setDarkTheme();
|
||||
localStorage.setItem("wc-color-theme", "dark");
|
||||
}
|
||||
}
|
||||
@@ -46,7 +46,7 @@ function addThemeToggleListener() {
|
||||
// Listen for dark mode toggling in OS
|
||||
window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", (event) => {
|
||||
if (defaultTheme === "system" && !("wc-color-theme" in localStorage)) {
|
||||
event.matches ? window.wowchemy.setDarkTheme() : window.wowchemy.setLightTheme();
|
||||
event.matches ? window.hbb.setDarkTheme() : window.hbb.setLightTheme();
|
||||
themeToggleButtons.forEach((el) =>
|
||||
el.dataset.theme = document.documentElement.classList.contains("dark") ? "dark" : "light"
|
||||
);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Page Sharer
|
||||
# Documentation: https://hugoblox.com/docs/customization/#page-sharer
|
||||
# Documentation: https://docs.hugoblox.com/reference/page-sharer/
|
||||
|
||||
[[buttons]]
|
||||
id = "twitter"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{{/* Markdown Image Renderer for Wowchemy. */}}
|
||||
{{/* Markdown Image Renderer for Hugo Blox Builder. */}}
|
||||
{{/* Load image from page dir falling back to media library at `assets/media/` and then to remote URI. */}}
|
||||
|
||||
{{ $destination := .Destination }}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{{- define "main" -}}
|
||||
|
||||
{{/* Check that user fully installed Wowchemy. */}}
|
||||
{{/* Check that user fully installed Hugo Blox Builder. */}}
|
||||
{{/* Commented out to allow user to have no params.yaml and just use the defaults. */}}
|
||||
{{/* if not (isset site.Params "seo") */}}
|
||||
{{/* errorf "Please complete the installation of Wowchemy by following the steps at https://docs.hugoblox.com/" */}}
|
||||
{{/* errorf "Please complete the installation of Hugo Blox Builder by following the steps at https://docs.hugoblox.com/" */}}
|
||||
{{/* end */}}
|
||||
|
||||
{{/* Deprecation warnings */}}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
{{ $person_page_path := (printf "/authors/%s" $author) }}
|
||||
{{ $person_page := site.GetPage $person_page_path }}
|
||||
{{ if not $person_page }}
|
||||
{{ errorf "Could not find an author page at `%s`. Please check the value of `author` in your About widget and create an associated author page if one does not already exist. See https://hugoblox.com/docs/page-builder/#about " $person_page_path }}
|
||||
{{ errorf "Could not find an author page at `%s`. Please check the value of `author` in your About widget and create an associated author page if one does not already exist. See https://docs.hugoblox.com/page-builder/#about " $person_page_path }}
|
||||
{{end}}
|
||||
{{ $person := $person_page.Params }}
|
||||
{{ $avatar := ($person_page.Resources.ByType "image").GetMatch "*avatar*" }}
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
|
||||
<script>
|
||||
/* Hugo Blox JS Global Init */
|
||||
window.wowchemy = {
|
||||
window.hbb = {
|
||||
defaultTheme: document.documentElement.dataset.wcThemeDefault,
|
||||
setDarkTheme: () => {
|
||||
document.documentElement.classList.add("dark");
|
||||
@@ -73,14 +73,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
console.debug(`Default Hugo Blox Builder theme is ${window.wowchemy.defaultTheme}`);
|
||||
console.debug(`Default Hugo Blox Builder theme is ${window.hbb.defaultTheme}`);
|
||||
|
||||
if ("wc-color-theme" in localStorage) {
|
||||
localStorage.getItem("wc-color-theme") === "dark" ? window.wowchemy.setDarkTheme() : window.wowchemy.setLightTheme();
|
||||
localStorage.getItem("wc-color-theme") === "dark" ? window.hbb.setDarkTheme() : window.hbb.setLightTheme();
|
||||
} else {
|
||||
window.wowchemy.defaultTheme === "dark" ? window.wowchemy.setDarkTheme() : window.wowchemy.setLightTheme();
|
||||
if (window.wowchemy.defaultTheme === "system") {
|
||||
window.matchMedia("(prefers-color-scheme: dark)").matches ? window.wowchemy.setDarkTheme() : window.wowchemy.setLightTheme();
|
||||
window.hbb.defaultTheme === "dark" ? window.hbb.setDarkTheme() : window.hbb.setLightTheme();
|
||||
if (window.hbb.defaultTheme === "system") {
|
||||
window.matchMedia("(prefers-color-scheme: dark)").matches ? window.hbb.setDarkTheme() : window.hbb.setLightTheme();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{{/* Audio Shortcode for Wowchemy. */}}
|
||||
{{/* Audio Shortcode for Hugo Blox Builder. */}}
|
||||
{{/* Load audio from page dir falling back to media library at `assets/media/` and then to remote URI. */}}
|
||||
{{/* Supports primarily MP3 and MP4. */}}
|
||||
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#audio
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#audio
|
||||
|
||||
Parameters
|
||||
----------
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
----------
|
||||
#0 : optional, positional
|
||||
Name of the icon to display in the callout component.
|
||||
Default Wowchemy available options include "note" and "warning".
|
||||
Default Hugo Blox Builder available options include "note" and "warning".
|
||||
Otherwise, you can add your own icon to assets/media/icons/ and reference its name when calling the shortcode.
|
||||
*/}}
|
||||
{{ $icon := "information-circle" }}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#charts
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#charts
|
||||
|
||||
Parameters
|
||||
----------
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#mention-a-user
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#mention-a-user
|
||||
|
||||
Parameters
|
||||
----------
|
||||
#0 : positional
|
||||
User account in Wowchemy to mention.
|
||||
User account in Hugo Blox Builder to mention.
|
||||
*/}}
|
||||
|
||||
{{- $username := .Get 0 -}}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#toggle-list
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#toggle-list
|
||||
|
||||
Parameters
|
||||
----------
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{{/* Video Shortcode for Wowchemy. */}}
|
||||
{{/* Video Shortcode for Hugo Blox Builder. */}}
|
||||
{{/* Load video from page dir falling back to media library at `assets/media/` and then to remote URI. */}}
|
||||
|
||||
{{/*
|
||||
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#videos
|
||||
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#videos
|
||||
|
||||
Parameters
|
||||
----------
|
||||
|
||||
Reference in new issue
Block a user