Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/themefisher/academia-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsomrat <monnaf37@gmail.com>2019-10-22 07:43:16 +0300
committersomrat <monnaf37@gmail.com>2019-10-22 07:43:16 +0300
commit1bba8247fcfae6c7a2f79d3ca466787c2521ab6a (patch)
treeb053405d2c56bac20b2e54a5cdeb1b793f0f17e5 /layouts
parentcd238d1879a21fd1fe804159ab276b9fa057684b (diff)
change the name from academic to academia in many files, and give academic credit in readme file.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/404.html2
-rw-r--r--layouts/_default/rss.xml2
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/partials/custom_head.html2
-rw-r--r--layouts/partials/custom_js.html2
-rw-r--r--layouts/partials/site_head.html12
-rw-r--r--layouts/partials/site_js.html14
-rw-r--r--layouts/partials/widget_page.html2
-rw-r--r--layouts/slides/baseof.html2
9 files changed, 20 insertions, 20 deletions
diff --git a/layouts/404.html b/layouts/404.html
index 404df1b..05d64f2 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -4,7 +4,7 @@
<h1>{{ i18n "page_not_found" }}</h1>
- {{/* Show search box if Academic's search engine is enabled. */}}
+ {{/* Show search box if academia's search engine is enabled. */}}
{{ if eq site.Params.search.engine 1 }}
<form class="d-flex align-items-center mb-3">
<input name="q" type="search" class="form-control" id="search-query" placeholder="{{ i18n "search_placeholder" }}" autocomplete="off">
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml
index 8b5c420..2addaf7 100644
--- a/layouts/_default/rss.xml
+++ b/layouts/_default/rss.xml
@@ -10,7 +10,7 @@
<title>{{ if eq .Title site.Title }}{{ site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ site.Title }}</description>
- <generator>Source Themes Academic (https://sourcethemes.com/academic/)</generator>{{ with site.LanguageCode }}
+ <generator>Source Themes academia (https://sourcethemes.com/academic/)</generator>{{ with site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with site.Author.email }}
<managingEditor>{{.}}{{ with site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with site.Author.email }}
<webMaster>{{.}}{{ with site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with site.Copyright }}
diff --git a/layouts/index.html b/layouts/index.html
index d79d8ce..28b4f0e 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,7 +1,7 @@
{{- define "main" -}}
{{ if not (isset site.Params "color_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 academia by following the steps at https://sourcethemes.com/academic/docs/install/" }}
{{ end }}
{{ partial "widget_page.html" . }}
diff --git a/layouts/partials/custom_head.html b/layouts/partials/custom_head.html
index cb4802f..c4c31cc 100644
--- a/layouts/partials/custom_head.html
+++ b/layouts/partials/custom_head.html
@@ -1,4 +1,4 @@
{{/* Do not directly modify this file! */}}
{{/* Instead, create a `layout/partials/custom_head.html` file in your site and add your code to it. */}}
-{{/* This partial is included in `themes/academic/layout/partials/site_head.html`. */}}
+{{/* This partial is included in `themes/academia/layout/partials/site_head.html`. */}}
diff --git a/layouts/partials/custom_js.html b/layouts/partials/custom_js.html
index 0b66fff..f829864 100644
--- a/layouts/partials/custom_js.html
+++ b/layouts/partials/custom_js.html
@@ -1,4 +1,4 @@
{{/* Do not directly modify this file! */}}
{{/* Instead, create a `layout/partials/custom_js.html` file in your site and add your code to it. */}}
-{{/* This partial is included in `themes/academic/layout/partials/site_js.html`. */}}
+{{/* This partial is included in `themes/academia/layout/partials/site_js.html`. */}}
diff --git a/layouts/partials/site_head.html b/layouts/partials/site_head.html
index ef74e1e..06767e5 100644
--- a/layouts/partials/site_head.html
+++ b/layouts/partials/site_head.html
@@ -3,7 +3,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="generator" content="Source Themes Academia {{ site.Data.academic.version }}">
+ <meta name="generator" content="Source Themes Academia {{ site.Data.academia.version }}">
{{ hugo.Generator}}
{{ $scr := .Scratch }}
@@ -56,7 +56,7 @@
<link rel="stylesheet" href="{{ printf "/css/vendor/%s" ($scr.Get "vendor_css_filename") | relURL }}">
{{ else }}
{{ $scr.Set "use_cdn" 1 }}
- {{ printf "<link rel=\"stylesheet\" href=\"%s\" integrity=\"%s\" crossorigin=\"anonymous\">" (printf $css.academicons.url $css.academicons.version) $css.academicons.sri | safeHTML }}
+ {{ printf "<link rel=\"stylesheet\" href=\"%s\" integrity=\"%s\" crossorigin=\"anonymous\">" (printf $css.academiaons.url $css.academiaons.version) $css.academiaons.sri | safeHTML }}
{{ printf "<link rel=\"stylesheet\" href=\"%s\" integrity=\"%s\" crossorigin=\"anonymous\">" (printf $css.fontAwesome.url $css.fontAwesome.version) $css.fontAwesome.sri | safeHTML }}
{{ printf "<link rel=\"stylesheet\" href=\"%s\" integrity=\"%s\" crossorigin=\"anonymous\">" (printf $css.fancybox.url $css.fancybox.version) $css.fancybox.sri | safeHTML }}
@@ -100,20 +100,20 @@
<link rel="stylesheet" {{ printf "href=\"https://fonts.googleapis.com/css?family=%s&display=swap\"" . | safeHTMLAttr }}>
{{ end }}
- {{ $css_options := (dict "targetPath" "css/academic.css" "outputStyle" "compressed") }}
+ {{ $css_options := (dict "targetPath" "css/academia.css" "outputStyle" "compressed") }}
{{ $sass_template := resources.Get "sass/main.scss" }}
{{ $style := $sass_template | resources.ExecuteAsTemplate "main_parsed.scss" . | toCSS $css_options | minify | fingerprint "md5" }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
{{ if site.Params.plugins_css }}
- {{ $css_comment := printf "/* Source Themes Academic v%s | https://sourcethemes.com/academic/ */\n" site.Data.academic.version }}
+ {{ $css_comment := printf "/* Source Themes academia v%s | https://sourcethemes.com/academic/ */\n" site.Data.academia.version }}
{{ $css_bundle_head := $css_comment | resources.FromString "css/bundle-head.css" }}
{{ $css_bundle := slice }}
{{ range site.Params.plugins_css }}
{{ $css_bundle = $css_bundle | append (resources.Get (printf "css/%s.css" .)) }}
{{ end }}
- {{ $css_bundle := $css_bundle | resources.Concat "css/academic-bundle-pre.css" | minify }}
- {{ $css_bundle := slice $css_bundle_head $css_bundle | resources.Concat "css/academic.css" | fingerprint "md5" }}
+ {{ $css_bundle := $css_bundle | resources.Concat "css/academia-bundle-pre.css" | minify }}
+ {{ $css_bundle := slice $css_bundle_head $css_bundle | resources.Concat "css/academia.css" | fingerprint "md5" }}
<link rel="stylesheet" href="{{ $css_bundle.RelPermalink }}">
{{ end }}
diff --git a/layouts/partials/site_js.html b/layouts/partials/site_js.html
index 7558f43..9923227 100644
--- a/layouts/partials/site_js.html
+++ b/layouts/partials/site_js.html
@@ -130,24 +130,24 @@
</script>
{{ end }}
- {{ $js_comment := printf "/* Source Themes Academic v%s | https://sourcethemes.com/academic/ */\n" site.Data.academic.version }}
+ {{ $js_comment := printf "/* Source Themes academia v%s | https://sourcethemes.com/academic/ */\n" site.Data.academia.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_academia := resources.Get "js/academia.js" }}
+ {{ $js_academia_search := resources.Get "js/academia-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 }}
+ {{ $js_bundle := slice $js_bootstrap $js_linebreak $js_academia }}
{{ if eq site.Params.search.engine 1 }}
- {{ $js_bundle = $js_bundle | append $js_academic_search }}
+ {{ $js_bundle = $js_bundle | append $js_academia_search }}
{{ else if eq site.Params.search.engine 2 }}
{{ $js_bundle = $js_bundle | append $js_algolia_search }}
{{ end }}
{{ 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/academia-bundle-pre.js" | minify }}
+ {{ $js_bundle := slice $js_bundle_head $js_bundle | resources.Concat "js/academia.min.js" | fingerprint "md5" }}
<script src="{{ $js_bundle.RelPermalink }}"></script>
{{ partial "custom_js" . }}
diff --git a/layouts/partials/widget_page.html b/layouts/partials/widget_page.html
index 809967f..326f58d 100644
--- a/layouts/partials/widget_page.html
+++ b/layouts/partials/widget_page.html
@@ -11,7 +11,7 @@
{{ $headless_bundle := site.GetPage $page }}
{{/* Check homepage exists */}}
{{ if not $headless_bundle }}
- {{ errorf "Homepage not found or duplicate homepages detected for a localization! Add the `home/` folder (especially `/home/index.md`) 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 "Homepage not found or duplicate homepages detected for a localization! Add the `home/` folder (especially `/home/index.md`) 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-academia/tree/master/exampleSite/content/home/index.md ." }}
{{ end }}
{{/* Load page sections */}}
diff --git a/layouts/slides/baseof.html b/layouts/slides/baseof.html
index d98b790..dc43ccf 100644
--- a/layouts/slides/baseof.html
+++ b/layouts/slides/baseof.html
@@ -7,7 +7,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="generator" content="Source Themes Academic {{ site.Data.academic.version }}">
+ <meta name="generator" content="Source Themes academia {{ site.Data.academia.version }}">
<link rel="manifest" href="{{ "site.webmanifest" | relURL }}">
<link rel="icon" type="image/png" href="{{ "/img/icon.png" | relURL }}">