mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 00:14:05 +00:00
refactor: update remaining Academic refs
This commit is contained in:
1 parent
514d7a0e55
commit
c67339ac16
39 files changed
+44
-45
No files matched your search
@@ -2,9 +2,6 @@
|
||||
.idea/
|
||||
.vscode/
|
||||
|
||||
# Hugo
|
||||
exampleSite/public/
|
||||
|
||||
# Jupyter
|
||||
.ipynb_checkpoints/
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
# Generate preprocessed resources for demo site whilst also removing disused resources.
|
||||
# Run this script from the root Academic dir.
|
||||
HUGO_THEME=academic hugo --source exampleSite --themesDir ../../ --gc
|
||||
# Run this script from the root Wowchemy dir.
|
||||
HUGO_THEME=wowchemy-hugo-modules hugo --source exampleSite --themesDir ../../ --gc
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# List Available Language Packs
|
||||
# Used for updating the Languages page of the documentation.
|
||||
# https://sourcethemes.com/academic/
|
||||
# https://wowchemy.com
|
||||
#
|
||||
# Prerequisites: pip3 install PyYAML
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# Sync Language Packs
|
||||
# Script to synchronize each language pack's items against Academic's master pack (English).
|
||||
# https://sourcethemes.com/academic/
|
||||
# Script to synchronize each language pack's items against Wowchemy's master pack (English).
|
||||
# https://wowchemy.com
|
||||
#
|
||||
# Prerequisites: pip3 install PyYAML
|
||||
#
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
# View the demo site on any local devices by binding the local IP on port 1315.
|
||||
# Run this script from the root Academic dir.
|
||||
HUGO_THEME=academic hugo \
|
||||
# Run this script from the root Wowchemy dir.
|
||||
HUGO_THEME=wowchemy-hugo-modules hugo \
|
||||
--source exampleSite --themesDir ../../ \
|
||||
--bind=0.0.0.0 -p 1315 --baseURL=http://0.0.0.0:1315 \
|
||||
--i18n-warnings --minify -e "development" \
|
||||
server
|
||||
|
||||
#HUGO_THEME=wowchemy-hugo hugo convert toYAML --unsafe --themesDir ../../
|
||||
@@ -35,7 +35,7 @@ education:
|
||||
year: 2012
|
||||
|
||||
# Social/Academic Networking
|
||||
# For available icons, see: https://sourcethemes.com/academic/docs/page-builder/#icons
|
||||
# For available icons, see: https://wowchemy.com/docs/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://sourcethemes.com/academic/docs/managing-content/
|
||||
# Documentation: https://wowchemy.com/docs/managing-content/
|
||||
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
subtitle: ""
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
# Documentation: https://sourcethemes.com/academic/docs/managing-content/
|
||||
# Documentation: https://wowchemy.com/docs/managing-content/
|
||||
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
linktitle: "{{ replace .Name "-" " " | title }}"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
+++
|
||||
# A section created with the Blank widget.
|
||||
widget = "blank" # See https://sourcethemes.com/academic/docs/page-builder/
|
||||
widget = "blank" # See https://wowchemy.com/docs/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://sourcethemes.com/academic/docs/writing-markdown-latex/)
|
||||
[**Add some elements here**](https://wowchemy.com/docs/writing-markdown-latex/)
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
# Documentation: https://sourcethemes.com/academic/docs/managing-content/
|
||||
# Documentation: https://wowchemy.com/docs/managing-content/
|
||||
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
subtitle: ""
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
# Documentation: https://sourcethemes.com/academic/docs/managing-content/
|
||||
# Documentation: https://wowchemy.com/docs/managing-content/
|
||||
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
summary: ""
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
# Documentation: https://sourcethemes.com/academic/docs/managing-content/
|
||||
# Documentation: https://wowchemy.com/docs/managing-content/
|
||||
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
authors: []
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
# Documentation: https://sourcethemes.com/academic/docs/managing-content/
|
||||
# Documentation: https://wowchemy.com/docs/managing-content/
|
||||
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
summary: ""
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
# Documentation: https://sourcethemes.com/academic/docs/managing-content/
|
||||
# Documentation: https://wowchemy.com/docs/managing-content/
|
||||
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
event:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*************************************************
|
||||
* Academic
|
||||
* https://github.com/gcushen/hugo-academic
|
||||
* Wowchemy
|
||||
* https://github.com/wowchemy/wowchemy-hugo-modules
|
||||
*
|
||||
* Algolia based search algorithm.
|
||||
**************************************************/
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*************************************************
|
||||
* Academic
|
||||
* https://github.com/gcushen/hugo-academic
|
||||
* Wowchemy
|
||||
* https://github.com/wowchemy/wowchemy-hugo-modules
|
||||
*
|
||||
* In-built Fuse based search algorithm.
|
||||
**************************************************/
|
||||
@@ -1,6 +1,6 @@
|
||||
/*************************************************
|
||||
* Academic
|
||||
* https://github.com/gcushen/hugo-academic
|
||||
* Wowchemy
|
||||
* https://github.com/wowchemy/wowchemy-hugo-modules
|
||||
*
|
||||
* Core JS functions and initialization.
|
||||
**************************************************/
|
||||
@@ -45,6 +45,6 @@ $sta-dark-home-section-even: {{ $scr.Get "dark_home_section_even" }};
|
||||
|
||||
@import "bootstrap_variables";
|
||||
@import "_vendor/bootstrap/bootstrap";
|
||||
@import "academic/academic";
|
||||
@import "wowchemy/wowchemy";
|
||||
@import "template";
|
||||
@import "custom";
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+3
-3
@@ -1,8 +1,8 @@
|
||||
/*************************************************
|
||||
* Academic: The Website Builder for Hugo
|
||||
* Wowchemy: The Website Builder for Hugo
|
||||
* Designed by @GeorgeCushen
|
||||
* https://sourcethemes.com/academic/
|
||||
* License: https://github.com/gcushen/hugo-academic/blob/master/LICENSE.md
|
||||
* https://wowchemy.com/
|
||||
* License: https://github.com/wowchemy/wowchemy-hugo-modules/blob/master/LICENSE.md
|
||||
**************************************************/
|
||||
|
||||
@import "root";
|
||||
@@ -1,5 +1,5 @@
|
||||
# Page Sharer
|
||||
# Documentation: https://sourcethemes.com/academic/docs/customization/#page-sharer
|
||||
# Documentation: https://wowchemy.com/docs/customization/#page-sharer
|
||||
|
||||
[[buttons]]
|
||||
id = "twitter"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
||||
{{ end -}}
|
||||
<description>{{ .Title | default site.Title }}</description>
|
||||
<generator>Source Themes Academic (https://sourcethemes.com/academic/)</generator>
|
||||
<generator>Wowchemy (https://wowchemy.com)</generator>
|
||||
{{- with site.LanguageCode }}<language>{{.}}</language>{{end -}}
|
||||
{{- with site.Copyright }}<copyright>{{ replace (replace . "{year}" now.Year) "©" "©" | plainify }}</copyright>{{end -}}
|
||||
{{- if not .Date.IsZero }}<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end -}}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{{- define "main" -}}
|
||||
|
||||
{{/* Check that user fully installed Academic. */}}
|
||||
{{/* Check that user fully installed Wowchemy. */}}
|
||||
{{ if not (isset site.Params "theme") }}
|
||||
{{ errorf "Please complete the installation of Academic by following the steps at https://sourcethemes.com/academic/docs/install/" }}
|
||||
{{ errorf "Please complete the installation of Wowchemy by following the steps at https://wowchemy.com/docs/install/" }}
|
||||
{{ end }}
|
||||
|
||||
{{/* Deprecation warnings */}}
|
||||
@@ -10,7 +10,7 @@
|
||||
{{/* v4.5: Address changed from string to map. */}}
|
||||
{{ if isset site.Params "address" }}
|
||||
{{ if eq (reflect.IsMap site.Params.address) false }}
|
||||
{{ errorf "Please upgrade the `address` field in `config/_default/params.toml`. Refer to all of the Breaking Changes in v4.5 at https://sourcethemes.com/academic/updates/v4.5.0/" }}
|
||||
{{ errorf "Please upgrade the `address` field in `config/_default/params.toml`. Refer to all of the Breaking Changes in v4.5 at https://wowchemy.com/updates/v4.5.0/" }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
{{ end }}
|
||||
{{ $menu_name = .Params.menu_name | default $menu_name | default (path.Base (path.Split .File).Dir) }}
|
||||
{{ if not (index site.Menus $menu_name) }}
|
||||
{{ errorf "Please define menu items named `menu: %s:` in your %s front matter or define `[[menu.%s]]` in `config/default/menus.toml`. See https://sourcethemes.com/academic/docs/managing-content/#menus" $menu_name .Path $menu_name }}
|
||||
{{ errorf "Please define menu items named `menu: %s:` in your %s front matter or define `[[menu.%s]]` in `config/default/menus.toml`. See https://wowchemy.com/docs/managing-content/#menus" $menu_name .Path $menu_name }}
|
||||
{{ end }}
|
||||
|
||||
<form class="docs-search d-flex align-items-center">
|
||||
|
||||
@@ -146,11 +146,11 @@
|
||||
<script id="dsq-count-scr" src="https://{{site.Params.comments.disqus.shortname}}.disqus.com/count.js" async></script>
|
||||
{{ end }}
|
||||
|
||||
{{ $js_comment := printf "/* Source Themes Academic v%s | https://sourcethemes.com/academic/ */\n" site.Data.academic.version }}
|
||||
{{ $js_comment := printf "/* Wowchemy v%s | https://wowchemy.com/ */\n" site.Data.wowchemy.version }}
|
||||
{{ $js_bundle_head := $js_comment | resources.FromString "js/bundle-head.js" }}
|
||||
{{ $js_linebreak := "\n" | resources.FromString "js/linebreak.js" }}{{/* Fix no line break after Bootstrap JS causing error. */}}
|
||||
{{ $js_academic := resources.Get "js/academic.js" }}
|
||||
{{ $js_academic_search := resources.Get "js/academic-search.js" }}
|
||||
{{ $js_academic := resources.Get "js/wowchemy.js" }}
|
||||
{{ $js_academic_search := resources.Get "js/wowchemy-search.js" }}
|
||||
{{ $js_algolia_search := resources.Get "js/algolia-search.js" }}
|
||||
{{ $js_bootstrap := resources.Get "js/_vendor/bootstrap.min.js" }}
|
||||
{{ $js_bundle := slice $js_bootstrap $js_linebreak $js_academic }}
|
||||
@@ -162,8 +162,8 @@
|
||||
{{ range site.Params.plugins_js }}
|
||||
{{ $js_bundle = $js_bundle | append (resources.Get (printf "js/%s.js" .)) }}
|
||||
{{ end }}
|
||||
{{ $js_bundle := $js_bundle | resources.Concat "js/academic-bundle-pre.js" | minify }}
|
||||
{{ $js_bundle := slice $js_bundle_head $js_bundle | resources.Concat "js/academic.min.js" | fingerprint "md5" }}
|
||||
{{ $js_bundle := $js_bundle | resources.Concat "js/wowchemy-bundle-pre.js" | minify }}
|
||||
{{ $js_bundle := slice $js_bundle_head $js_bundle | resources.Concat "js/wowchemy.min.js" | fingerprint "md5" }}
|
||||
<script src="{{ $js_bundle.RelPermalink }}"></script>
|
||||
|
||||
{{ partial "custom_js" . }}
|
||||
@@ -10,7 +10,7 @@
|
||||
{{/* Check homepage exists */}}
|
||||
{{ if not $headless_bundle }}
|
||||
{{ errorf "Homepage not found at %s!" $page }}
|
||||
{{ errorf "Add the `/home/index.md` homepage file to each language's content folder. For example, your site should have a `content/home/` folder containing `index.md` and your homepage sections, or for multi-language sites, `content/en/home/` and `content/zh/home/` etc. Refer to the 'Build Your Homepage' and 'Language' documentation at https://sourcethemes.com/academic/docs/ and the example homepage at https://github.com/gcushen/hugo-academic/tree/master/exampleSite/content/home/index.md ." }}
|
||||
{{ errorf "Add the `/home/index.md` homepage file to each language's content folder. For example, your site should have a `content/home/` folder containing `index.md` and your homepage sections, or for multi-language sites, `content/en/home/` and `content/zh/home/` etc. Refer to the 'Build Your Homepage' and 'Language' documentation at https://wowchemy.com/docs/ and the example homepage at https://github.com/wowchemy/starter-academic/tree/master/exampleSite/content/home/index.md ." }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ $page = .File.Path }}
|
||||
@@ -18,8 +18,8 @@
|
||||
{{/* Check widget page exists. */}}
|
||||
{{ if not $headless_bundle }}
|
||||
{{ errorf "Widget Page not found at %s!" $page }}
|
||||
{{ errorf "View the Widget Page documentation at https://sourcethemes.com/academic/docs/managing-content/#create-a-widget-page ." }}
|
||||
{{ errorf "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/gcushen/hugo-academic/issues/1595#issuecomment-605514973 ." }}
|
||||
{{ errorf "View the Widget Page documentation at https://wowchemy.com/docs/managing-content/#create-a-widget-page ." }}
|
||||
{{ errorf "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/wowchemy/wowchemy-hugo-modules/issues/1595#issuecomment-605514973 ." }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
@@ -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://sourcethemes.com/academic/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://wowchemy.com/docs/page-builder/#about " $person_page_path }}
|
||||
{{end}}
|
||||
{{ $person := $person_page.Params }}
|
||||
{{ $avatar := ($person_page.Resources.ByType "image").GetMatch "*avatar*" }}
|
||||
|
||||
Reference in new issue
Block a user