Commit b12f2918 authored by Peter Serwylo's avatar Peter Serwylo

Exclude assets/wp-content from localization to save space.

Required updating a couple of links which were "assets/" to instead be
"{{ site.baseurl }}/assets/". Most links were already correct like that.
parent 5b077b8a
......@@ -3,7 +3,7 @@ source 'https://rubygems.org'
gem "jekyll"
group :jekyll_plugins do
gem "jekyll-polyglot", :git => 'https://github.com/pserwylo/polyglot.git', :branch => 'merge-translations'
gem "jekyll-polyglot"
gem "jekyll-feed"
gem "jekyll-redirect-from"
gem 'jekyll-fdroid', :git => 'https://gitlab.com/fdroid/jekyll-fdroid.git', :branch => 'master'
......
GIT
remote: https://github.com/pserwylo/polyglot.git
revision: ea0b78b397e8f3c547a63c11fa716f91b340274c
branch: merge-translations
specs:
jekyll-polyglot (1.2.4)
jekyll (~> 3.3, >= 3.0)
GIT
remote: https://gitlab.com/fdroid/jekyll-fdroid.git
revision: 377e4143b9d908dba0023dd9b3749daa965bc37f
......@@ -44,6 +36,8 @@ GEM
jekyll (~> 3.3)
jekyll-paginate-v2 (1.7.3)
jekyll (~> 3.0)
jekyll-polyglot (1.3.0)
jekyll (>= 3.0)
jekyll-redirect-from (0.12.1)
jekyll (~> 3.3)
jekyll-sass-converter (1.5.0)
......@@ -81,7 +75,7 @@ DEPENDENCIES
jekyll
jekyll-fdroid!
jekyll-feed
jekyll-polyglot!
jekyll-polyglot
jekyll-redirect-from
BUNDLED WITH
......
......@@ -28,4 +28,9 @@ fdroid-repo: https://f-droid.org/repo
# The "languages" entry is automatically overridden by the tools/update_langs.sh script when
# new translations become available.
languages: [ "en", "de", "es", "es_AR", "fr", "sc", "tr", "zh_Hans", "zh_Hant" ]
default_lang: "None. This forces jekyll polyglot to generate a en/ subdirectory too (with correct links)."
default_lang: "_" # Not specifying a language here forces polyglot to generate a en/ subdirectory too (with correct links). See https://github.com/untra/polyglot/issues/60.
exclude_from_localization:
- wp-content
- assets
- css
- favicon.png
......@@ -7,7 +7,7 @@
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: local('Roboto'), local('Roboto-Regular'), url(../assets/roboto.ttf) format('truetype');
src: local('Roboto'), local('Roboto-Regular'), url({{ site.baseurl }}/assets/roboto.ttf) format('truetype');
}
......
......@@ -18,12 +18,12 @@ permalink: /
<a href="https://f-droid.org/FDroid.apk.asc">{{ strings.gpg_signature }}</a>
</div>
<div class="qr">
<img src="assets/download-fdroid-qr.png" />
<img src="{{ site.baseurl }}/assets/download-fdroid-qr.png" />
</div>
</div>
<div class="screenshot">
<img
src="assets/phone-frame.png"
style="background: url('{% fdroid_screenshot %}') center center no-repeat; background-size: 78% auto" />
style="background: url('{{ site.baseurl }}/{% fdroid_screenshot %}') center center no-repeat; background-size: 78% auto" />
</div>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment