From 5f0f61019a64edee2cef3ea3dfcf9ac435572afa Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Mon, 17 Jul 2017 15:12:30 +0200 Subject: [PATCH] Added languagedir param. --- README.md | 3 ++- layouts/_default/baseof.html | 3 ++- sass/_zen.scss | 4 +--- sass/init/_variables.scss | 7 ------- static/js/script.js | 2 +- 5 files changed, 6 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 29a89da..7eb68c1 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ $ cd themes $ git clone https://github.com/frjo/hugo-theme-zen.git zen ``` -[Hugo - Installing Hugo](http://gohugo.io/overview/installing/) +[Hugo - Installing Hugo](https://gohugo.io/overview/installing/) ## config.yaml example @@ -61,6 +61,7 @@ params: footer: "A [example.org](https://example.org/) production." icon: "" # Relative path to icon in json feed, no leading slash. jquery: true # Add jQuery + languageDir: "" # Set ltr or rtl, defaults to ltr. logo: false # Turn off the logo. piwikSiteId: # Piwik site id piwikTrackerUrl: "" # Piwik url, schemaless and no slash on end (example.com/piwik). diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6831586..7b54da0 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,5 +1,5 @@ - + {{ block "title" . }}{{ .Title }} – {{ .Site.Title }}{{ end }} @@ -33,6 +33,7 @@ + {{ partial "scripts.html" . -}} {{ partialCached "scripts_cache.html" . -}} diff --git a/sass/_zen.scss b/sass/_zen.scss index b4e9542..f0c443a 100644 --- a/sass/_zen.scss +++ b/sass/_zen.scss @@ -312,9 +312,7 @@ body { } } - - - +/* Mobil menu */ .js-nav-wrapper { position: fixed; diff --git a/sass/init/_variables.scss b/sass/init/_variables.scss index 669b9c1..a8d2097 100644 --- a/sass/init/_variables.scss +++ b/sass/init/_variables.scss @@ -142,9 +142,6 @@ $max-content-width: 960px; // The default left/right gutter/padding. $zen-gutters: 20px; -// See $include-rtl below. -$zen-rtl-selector: '[dir="rtl"]'; - // Miscellaneous variables // @@ -157,7 +154,3 @@ $zen-rtl-selector: '[dir="rtl"]'; $indent-amount: 2 * $base-font-size; $include-rtl: false; -// Automatically turn off Zen Grids' RTL support if $include-rtl is false. -@if not $include-rtl { - $zen-rtl-selector: false !global; -} diff --git a/static/js/script.js b/static/js/script.js index a06f446..1449c1b 100644 --- a/static/js/script.js +++ b/static/js/script.js @@ -15,7 +15,7 @@ var mq = window.matchMedia('(max-width: 666px)'); if (mq.matches) { // Create the nav toggle button and the nav sheet. - $('.page').after('
Menu
'); + $('.page').after('
Menu
'); // Populate the nav sheet. $('.main-menu').addClass('hidden').clone().removeClass('main-menu layout__navigation layout__full hidden hidden').addClass('js-main-menu').appendTo('.js-nav-sheet').find('.navbar').removeClass('navbar').addClass('js-navbar');