Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
Former-commit-id: c0dc7bb [formerly 982bd9d]
Former-commit-id: 32f9f8f20d3ddaeaf0794061a03bff8731cbd1e8
Former-commit-id: 0e56ea2
  • Loading branch information
UtkarshVerma committed Apr 10, 2018
1 parent e0cd792 commit f735152
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

<body>
<div class="bg">{{ partial "background.html" . }}</div>
{{ partial "sidebar.html" . }}
<div class="pusher">
<div class="flipper">
<div class="front">
Expand All @@ -23,7 +24,6 @@
</div>
</div>
</div>
{{ partial "sidebar.html" . }}
{{ if .Site.Params.twitterEmoji }}{{ partial "twemoji.html" . }}{{ end }}
{{ if .Site.Params.enableShortest }}{{ partial "shortest.html" }}{{ end }}
</body>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/background.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
['#c94b4b', '#4b134f'], // Bighead
['#23074d', '#cc5333'], // Taran Tado
]
var dreamBody = $('body')
var dreamBody = $('.bg')
var dreamFront = $('.pusher .front')
var dreamBack = $('.pusher .back')
var dreamPrevBgIndex = 0
Expand Down
13 changes: 4 additions & 9 deletions layouts/partials/sidebar.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="ui sidebar inverted vertical menu" style="overflow: hidden !important;">
<div class="ui sidebar inverted vertical menu left" style="overflow: hidden !important; height: auto;">
<section class="ui top attached center aligned inverted segment">
<div class="ui small circular image">
{{ if isset .Site.Params "avatar" }}
Expand All @@ -10,17 +10,12 @@
<h3 class="ui header">
{{- .Site.Params.author -}}
<div class="sub header" style="color: white;">{{ $.Site.Params.motto }}</div>
</h3>
{{ if or (.Site.Params.enableCategories) (.Site.Params.enableTags) }}
<a id="tag-category-pop" class="ui red right corner label">
<i class="pointing down icon" title="{{ i18n "clickToPopTagsAndCategories" }}"></i>
</a>
{{ end }}
</h3>
</section>

{{ if .Site.Params.enableTags }}
{{ if .Site.Taxonomies.tags }}
<section class="ui attached center aligned inverted segment dream-tags">
<section class="ui attached center aligned inverted segment sidebar-dream-tags">
{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
<a class="ui label" href="{{ "/tags/" | relLangURL }}{{ $name | urlize }}" title="{{ $name }}">{{ $name }}</a>
{{ end }}
Expand All @@ -30,7 +25,7 @@ <h3 class="ui header">

{{ if .Site.Params.enableCategories }}
{{ if .Site.Taxonomies.categories }}
<section class="ui attached inverted segment dream-categories">
<section class="ui attached inverted segment sidebar-dream-categories">
<div class="ui inverted accordion">
{{ range $name, $taxonomy := .Site.Taxonomies.categories }}
<div class="title" style="color: white; padding-bottom:0.2em;">
Expand Down
5 changes: 4 additions & 1 deletion static/js/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ function setSemanticUIColor() {
var tagsParent = $('.dream-tags')
tagsParent.children().map(function() {
$(this).addClass(SemanticUIColors[randomInt(0, SemanticUIColors.length)])
})
})
$('.sidebar-dream-tags').children().map(function() {
$(this).addClass(SemanticUIColors[randomInt(0, SemanticUIColors.length)])
})
}

function setBackground(target, gradient) {
Expand Down

0 comments on commit f735152

Please sign in to comment.