Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Xzya/hugo-material-blog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniela Grammlich <git@dgrammlich.de>2018-11-02 19:10:20 +0300
committerDaniela Grammlich <git@dgrammlich.de>2018-11-02 19:10:20 +0300
commitca7d05b47cb42d53ec019cc0716e77ac022bc0f7 (patch)
treeb751a22b6c218a9c0c9197c2c8a669459d3dc33c
parentb59661e897139c567d8657374cbb4caa510748c2 (diff)
Update Materialize to version 1.0.0
-rw-r--r--layouts/_default/baseof.html5
-rw-r--r--layouts/partials/header.html6
-rw-r--r--layouts/partials/language-selector.html2
-rw-r--r--static/js/script.js6
4 files changed, 11 insertions, 8 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 155813f..10621e5 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -10,8 +10,7 @@
<title>{{ $title }}</title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css">
-
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<link href="{{ .Site.BaseURL }}css/style.css" rel="stylesheet">
{{ if .RSSLink }}
@@ -38,7 +37,7 @@
<!-- Scripts-->
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script>
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script src="{{ .Site.BaseURL }}js/script.js"></script>
</body>
</html> \ No newline at end of file
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index d21302a..f5da9e9 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -13,7 +13,7 @@
{{ end }}
</ul>
<li>
- <a class="dropdown-button black-text" href="#!" data-activates="{{ $.Scratch.Get "id" }}-{{ $index }}">{{ $menu.Name }}
+ <a class="dropdown-trigger black-text" href="#!" data-target="{{ $.Scratch.Get "id" }}-{{ $index }}">{{ $menu.Name }}
<i class="material-icons right">arrow_drop_down</i>
</a>
</li>
@@ -28,12 +28,12 @@
<div class="row max-width">
<div class="col s12 l10 offset-l1">
<!-- Hamburger menu -->
- <a href="#" data-activates="nav-mobile" class="button-collapse black-text">
+ <a href="#" data-target="nav-mobile" class="sidenav-trigger black-text">
<i class="material-icons">menu</i>
</a>
<!-- Mobile sidenav -->
- <ul id="nav-mobile" class="side-nav">
+ <ul id="nav-mobile" class="sidenav">
{{ $.Scratch.Set "id" "dropdown-header-mobile" }}
{{ block "nav-menu" . }}{{ end }}
</ul>
diff --git a/layouts/partials/language-selector.html b/layouts/partials/language-selector.html
index 9be471e..69022c2 100644
--- a/layouts/partials/language-selector.html
+++ b/layouts/partials/language-selector.html
@@ -6,7 +6,7 @@
</li>
{{ end }}
</ul>
-<a class="dropdown-button black-text" href="#!" data-activates="dropdown-languages">{{ .Site.Language.LanguageName }}
+<a class="dropdown-trigger black-text" href="#!" data-target="dropdown-languages">{{ .Site.Language.LanguageName }}
<i class="material-icons right">arrow_drop_down</i>
</a>
{{ end }} \ No newline at end of file
diff --git a/static/js/script.js b/static/js/script.js
index 30edc60..9c24b3b 100644
--- a/static/js/script.js
+++ b/static/js/script.js
@@ -1 +1,5 @@
-$(".button-collapse").sideNav(); \ No newline at end of file
+$('.dropdown-trigger').dropdown();
+
+$(document).ready(function(){
+ $('.sidenav').sidenav();
+});