Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
White Cabinet theme
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CNS Netadmin
White Cabinet theme
Commits
10463c50
Commit
10463c50
authored
2 years ago
by
Kodai Okawa
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into 'master'
[mod] sidebar.html: change banner setting See merge request
!4
parents
021a405b
e5624bcc
Branches
Branches containing commit
1 merge request
!4
[mod] sidebar.html: change banner setting
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
layouts/partials/sidebar.html
+0
-27
0 additions, 27 deletions
layouts/partials/sidebar.html
with
0 additions
and
27 deletions
layouts/partials/sidebar.html
+
0
−
27
View file @
10463c50
...
...
@@ -38,33 +38,6 @@
{{ end }}
<!--StatBanner-->
{{ end }}
<!--range-->
<!--<h3>recent post</h3>-->
{{ with $.Site.GetPage $dir }}
{{ range first $maxnum .Pages.ByDate.Reverse }}
{{$StatBanner := and (eq .Params.mkbanner true) (le now .Params.bannerEndDate) }}
{{ if ne $StatBanner true }}
{{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) }}
{{ if le ($.Scratch.Get "counter") $maxnum }}
{{ if .Params.bannerimg }}
<div
class=
"topic imgsize"
onKeyPress=
"return true"
onClick=
"link('{{ .Site.BaseURL }}{{ .RelPermalink }}')"
>
<img
src=
"{{ .Site.BaseURL }}{{ .Params.bannerimg }}"
>
</div>
{{ else if .Params.image }}
<div
class=
"topic bannersize"
onKeyPress=
"return true"
onClick=
"link('{{ .Site.BaseURL }}{{ .RelPermalink }}')"
style=
"background-image: url({{ .Site.BaseURL }}{{ .Params.image }});"
>
<div
class=
"title"
>
<h2>
{{ .Title }}
</h2>
</div><br>
<div
class=
"date"
>
Posted on {{dateFormat "2 Jan, 2006" .Params.date }}
</div>
</div>
{{ else }}
<div
class=
"topic bannersize"
onKeyPress=
"return true"
onClick=
"link('{{ .Site.BaseURL }}{{ .RelPermalink }}')"
style=
"background-image: url({{ .Site.BaseURL }}{{ .Site.Params.defaultBannerImage }});"
>
<div
class=
"title"
>
<h2>
{{ .Title }}
</h2>
</div><br>
<div
class=
"date"
>
Posted on {{dateFormat "2 Jan, 2006" .Params.date }}
</div>
</div>
{{ end }}
<!--bannerimg-->
{{ end }}
<!--num of banner-->
{{ end }}
<!--exclude StatBanner-->
{{ end }}
<!--range ByDate.Reverse-->
{{ end }}
<!--from post-->
<script
src=
"{{ .Site.BaseURL }}js/topic.js"
></script>
</div>
<!-- topic_list -->
</div>
<!-- sidebar -->
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment