diff --git a/.ruby-version b/.ruby-version index 619b537..be94e6f 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.3.3 +3.2.2 diff --git a/.tool-versions b/.tool-versions index 306ab33..f2a971a 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -ruby 3.1.4 +ruby 3.2.2 diff --git a/Gemfile.lock b/Gemfile.lock index c882319..d0deb8d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -62,13 +62,13 @@ GEM rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) mercenary (0.4.0) - mini_portile2 (2.8.7) minima (2.5.1) jekyll (>= 3.5, < 5.0) jekyll-feed (~> 0.9) jekyll-seo-tag (~> 2.1) - nokogiri (1.15.2) - mini_portile2 (~> 2.8.2) + nokogiri (1.15.2-arm64-darwin) + racc (~> 1.4) + nokogiri (1.15.2-x86_64-linux) racc (~> 1.4) pathutil (0.16.2) forwardable-extended (~> 2.6) @@ -112,7 +112,7 @@ DEPENDENCIES webrick (~> 1.8) RUBY VERSION - ruby 3.3.3p89 + ruby 3.2.2p53 BUNDLED WITH 2.3.26 diff --git a/_config.yml b/_config.yml index d049bcd..ef21703 100644 --- a/_config.yml +++ b/_config.yml @@ -55,7 +55,7 @@ defaults: # TOC Default Configuration toc: min_level: 1 - max_level: 2 + max_level: 3 no_toc_section_class: no_toc_section list_id: toc list_class: section-nav diff --git a/_layouts/base.html b/_layouts/base.html index 8b84795..43e5ffe 100644 --- a/_layouts/base.html +++ b/_layouts/base.html @@ -12,10 +12,11 @@ + +
Create a file named uploads-proxy.conf
in the siteRoot/conf/nginx
directory with this content:
+location ~ ^/wp-content/uploads/(.*) {
+ if (!-e $request_filename) {
+ rewrite ^/wp-content/uploads/(.*) https://mediaengagement.org/wp-content/uploads/$1 redirect;
+ }
+}
+
+ Open siteRoot/conf/nginx/site.conf.hbs
in your editor and add the below snippet below the {{
/unless}}
line in the `# WordPress Rules`:
+ include uploads-proxy.conf;
+
+
+ Your updated site.conf.hbs
hould look like this screenshot: