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

github.com/AmazingRise/hugo-theme-diary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramazingrise <8315221+AmazingRise@users.noreply.github.com>2021-05-14 05:48:02 +0300
committeramazingrise <8315221+AmazingRise@users.noreply.github.com>2021-05-14 05:48:02 +0300
commit368250ef26613ab014bb78a2bbdea0f45cc8c4b7 (patch)
tree265685c350314c625a183fde9b26decf3cd8984a /layouts
parent3673a16986c4f71d8e7465d6c7fa512cae64173a (diff)
Remove components and some of jQuery codes.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/journal.html12
-rw-r--r--layouts/partials/mobile-header.html9
-rw-r--r--layouts/partials/sidebar.html11
3 files changed, 23 insertions, 9 deletions
diff --git a/layouts/partials/journal.html b/layouts/partials/journal.html
index 0667cb7..95cdfe5 100644
--- a/layouts/partials/journal.html
+++ b/layouts/partials/journal.html
@@ -116,12 +116,20 @@ app = new Vue({
region: {{.Site.Params.twikooRegion}},
});
{{ end }}
+
+ document.querySelectorAll("table").forEach(function(elem){
+ elem.classList.add("table-striped");
+ elem.classList.add("table");
+ elem.classList.add("table-responsive");
+ elem.classList.add("table-hover");
+ })
},
destroyed() {
window.removeEventListener('scroll', this.handleScroll);
window.removeEventListener('resize', this.handleResize);
}
});
-</script>
-<script src="{{"/js/journal.js" | relURL}}"></script>
+new SmoothScroll('a#globalBackToTop');
+
+</script> \ No newline at end of file
diff --git a/layouts/partials/mobile-header.html b/layouts/partials/mobile-header.html
index 2276cc9..028b73c 100644
--- a/layouts/partials/mobile-header.html
+++ b/layouts/partials/mobile-header.html
@@ -14,11 +14,14 @@
{{$actived = "active"}}
{{end}}
{{ if .HasChildren }}
- <parent name="{{ .Name }}" type="drawer-menu-item {{$actived}}">
- {{ range .Children }}
+ <div class="a-block" class="drawer-menu-item {{$actived}}" v-on:click="isHidden = !isHidden">
+ {{ .Name }}
+ <div class="nav-link-subitem" v-if="!isHidden">
+ {{ range .Children }}
<li><a href="{{ .URL }}"> {{ .Name }}</a></li>
{{ end }}
- </parent>
+ </div>
+ </div>
{{ else }}
<!--<a class="a-block nav-link-item {{$actived}}" href="{{ .URL }}">-->
<a class="a-block drawer-menu-item {{ $actived }}" href="{{ .URL }}">
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index 459965f..897d951 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -23,11 +23,14 @@
{{$actived = "active"}}
{{end}}
{{ if .HasChildren }}
- <parent name="{{ .Name }}" type="nav-link-item {{$actived}}">
- {{ range .Children }}
+ <div class="a-block" class="nav-link-item {{$actived}}" v-on:click="isHidden = !isHidden">
+ {{ .Name }}
+ <div class="nav-link-subitem" v-if="!isHidden">
+ {{ range .Children }}
<li><a href="{{ .URL }}"> {{ .Name }}</a></li>
- {{ end }}
- </parent>
+ {{ end }}
+ </div>
+ </div>
{{ else }}
<!--<a class="a-block nav-link-item {{$actived}}" href="{{ .URL }}">-->
<a class="a-block nav-link-item {{ $actived }}" href="{{ .URL }}">