From 9b495484672135b25a58cfa7b7fd9d3107f47f62 Mon Sep 17 00:00:00 2001 From: Robert J Date: Fri, 25 Jan 2019 15:31:09 +0100 Subject: [PATCH] CORS and Polish lang (#126) I propose adding `crossorigin=anonymous` for signed stylesheets to allow for CORS policy. Practical example - I keep my web page in S3 bucket and redirect both naked domain and www domain into the same bucket (this is rare scenario - most people duplicate buckets). So I had to enable CORS like in [this article](https://medium.com/@Keithweaver_/only-allowing-access-to-your-s3-bucket-via-your-website-5ca5c8546152) However CORS cannot be used without crossorigin=anonymous set. (explained [here](https://stackoverflow.com/questions/32039568/what-are-the-integrity-and-crossorigin-attributes) Also added pl.toml for Polish language. --- i18n/pl.toml | 25 +++++++++++++++++++++++++ layouts/partials/css/owlCarousel.html | 2 +- layouts/partials/head/css.html | 4 ++-- 3 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 i18n/pl.toml diff --git a/i18n/pl.toml b/i18n/pl.toml new file mode 100644 index 0000000..d344b2c --- /dev/null +++ b/i18n/pl.toml @@ -0,0 +1,25 @@ +[404_title] + other = "404" +[404_description] + other = "Oops! Ta strona nie istnieje! Albo trafiłeś na błąd {{ with .Site.Params.email }} (w takim wypadku, [powiadom mnie](mailto:{{ . }}) ) {{ end }} albo próbujesz wejść na stronę, której nie ma." +[index_projects_allProjects] + other = "Wszystkie projekty" +[index_blog_latestPosts] + other = "Ostatnie posty" +[index_blog_allPosts] + other = "Wszystkie posty" +[index_blog_readMore] + other = "Więcej" +[index_currentTime] + other = "Mój lokalny czas to" +[nav_backToSection] + other = "Wróć do {{ .Title }}" +[nav_main] + other = "główna" +[blog_readingTime] + one = "{{ .Count }} minut" + other = "{{ .Count }} minut" +[blog_shareThis] + other = "Podziel się" +[footer_text] + other = "[**Introduction**](https://github.com/vickylai/hugo-theme-introduction/) szablon dla [Hugo](http://gohugo.io/). Stworzony z [ i ](https://vickylai.com) przez społeczność open source." diff --git a/layouts/partials/css/owlCarousel.html b/layouts/partials/css/owlCarousel.html index d42e685..2111705 100644 --- a/layouts/partials/css/owlCarousel.html +++ b/layouts/partials/css/owlCarousel.html @@ -1,4 +1,4 @@ {{ $owlCarousel := resources.Get "vendor/owlCarousel/owl.carousel.min.css" }} {{ $owlCarouselTheme := resources.Get "vendor/owlCarousel/owl.theme.default.min.css" }} {{ $owlCarouselBundle := slice $owlCarousel $owlCarouselTheme | resources.Concat "/styles/owlCarousel.min.css" | fingerprint }} - + diff --git a/layouts/partials/head/css.html b/layouts/partials/head/css.html index 0b3f461..6671f4c 100644 --- a/layouts/partials/head/css.html +++ b/layouts/partials/head/css.html @@ -8,11 +8,11 @@ {{ $cssOpts := (dict "targetPath" "/css/main.css" ) }} {{ $postCSSOpts := (dict "use" "autoprefixer" ) }} {{ $bundle := $bundleRaw | toCSS $cssOpts | postCSS $postCSSOpts | minify | fingerprint }} - + {{ end }} {{ range .Site.Params.customCSS -}} {{ $style := resources.Get . }} - + {{- end }}