Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove downloaded scripts and replace with CDN #475

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
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
6 changes: 0 additions & 6 deletions assets/js/enquire.min.js

This file was deleted.

9 changes: 0 additions & 9 deletions assets/js/fuse.min.js

This file was deleted.

3 changes: 0 additions & 3 deletions assets/js/lazysizes.min.js

This file was deleted.

2 changes: 2 additions & 0 deletions exampleSite/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
resources/

4 changes: 2 additions & 2 deletions exampleSite/config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ buildFuture = true
copyright = "©{year}, All Rights Reserved"
timeout = 10000
enableEmoji = true
paginate = 13
[pagination]
pagerSize = 13
rssLimit = 100

enableGitInfo = false
Expand All @@ -37,7 +38,6 @@ googleAnalytics = ""
[outputs]
home = ["HTML", "RSS", "SearchIndex"]
section = ["HTML", "RSS", "SearchIndex"]
taxonomyTerm = ["HTML", "RSS", "SearchIndex"]
taxonomy = ["HTML", "RSS", "SearchIndex"]

[outputFormats]
Expand Down
4 changes: 2 additions & 2 deletions exampleSite/config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ commento = false
paypal = ""
patreon = ""

# possible share name: ["facebook","twitter", "reddit", "linkedin", "tumblr", "weibo", "douban", "line", "pocket", "feedly", "hatena", "pinterest", "delicious", "google"]
# possible share name: ["facebook", "twitter", "reddit", "linkedin", "tumblr", "weibo", "douban", "line", "telegram", "whatsapp", "pocket", "feedly", "hatena", "pinterest"]
[[share]]
name = "facebook"
username = ""
Expand All @@ -211,4 +211,4 @@ commento = false
link = ""
[[footerLinks]]
name = ""
link = ""
link = ""

This file was deleted.

This file was deleted.

6 changes: 4 additions & 2 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

<main class="main inner" data-sidebar-position="{{ $.Param "sidebarPosition" }}">
<div class="list__main {{ if $.Param "enableSidebar" }}{{ if eq ($.Param "sidebarPosition") "left" }}mr{{ else }}lm{{ end }}{{ else }}lmr{{ end }}">
{{ partial "body/breadcrumb" . }}
{{ if $.Param "enableBreadcrumb" }}
{{ partial "body/breadcrumb" . }}
{{ end }}
<header class="list__header">
<h5 class="list__header--title capitalize h5">{{.Title}}</h5>
</header>
Expand Down Expand Up @@ -30,4 +32,4 @@ <h5 class="list__header--title capitalize h5">{{.Title}}</h5>

{{ partial "script/sidebar-script" . }}
{{ partial "script/list-script" . }}
{{ end }}
{{ end }}
6 changes: 4 additions & 2 deletions layouts/_default/taxonomy.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

<main class="main inner" data-sidebar-position="{{ $.Param "sidebarPosition" }}">
<div class="list__main {{ if $.Param "enableSidebar" }}{{ if eq ($.Param "sidebarPosition") "left" }}mr{{ else }}lm{{ end }}{{ else }}lmr{{ end }}">
{{ partial "body/breadcrumb" . }}
{{ if $.Param "enableBreadcrumb" }}
{{ partial "body/breadcrumb" . }}
{{ end }}
<header class="list__header">
<h5 class="list__header--title capitalize h5">{{ .Title }}</h5>
</header>
Expand All @@ -29,4 +31,4 @@ <h5 class="list__header--title capitalize h5">{{ .Title }}</h5>

{{ partial "script/sidebar-script" . }}
{{ partial "script/taxo-script" . }}
{{ end }}
{{ end }}
2 changes: 1 addition & 1 deletion layouts/partials/body/main-left.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ $isPad := or (in (slice "archive" "posts" "page") .Type) }}
{{ $isPad = or $isPad (and (eq .Kind "page") (not (in (slice "about" "contact" "publication") .Type))) }}
{{ $isPad = or $isPad (and (eq .Kind "section") (eq .Type "publication")) }}
{{ $isPad = or $isPad (and (eq .Type "tags") (ne .Kind "taxonomyTerm")) }}
{{ $isPad = or $isPad (and (eq .Type "tags") (ne .Kind "taxonomy")) }}

{{ if eq ($.Param "languagedir") "rtl" }}
<div class="wrapper__left hide" data-pad="{{ $isPad }}" dir="rtl">
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/body/main-right.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ $isPad := or (in (slice "archive" "posts" "page") .Type) }}
{{ $isPad = or $isPad (and (eq .Kind "page") (not (in (slice "about" "contact" "publication") .Type))) }}
{{ $isPad = or $isPad (and (eq .Kind "section") (eq .Type "publication")) }}
{{ $isPad = or $isPad (and (eq .Type "tags") (ne .Kind "taxonomyTerm")) }}
{{ $isPad = or $isPad (and (eq .Type "tags") (ne .Kind "taxonomy")) }}

{{ if ne ($.Param "languagedir") "rtl" }}
<div class="wrapper__right hide" data-pad="{{ $isPad }}" dir="ltr">
Expand Down
Loading