Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Nov 2, 2020
1 parent 0ed370a commit dab618a
Show file tree
Hide file tree
Showing 43 changed files with 3,142 additions and 2,703 deletions.
2 changes: 2 additions & 0 deletions assets/js/main.js

Large diffs are not rendered by default.

File renamed without changes.
2 changes: 0 additions & 2 deletions assets/main.js

This file was deleted.

1 change: 1 addition & 0 deletions assets/scss/main.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions exampleSite/config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ googleSiteVerification = ""
bingSiteVerification = ""
baiduSiteVerification = ""

bgColor = "blue"

# math = true # Enable math globally.

# poweredBy = false # Whether to show powered by.
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 2 additions & 2 deletions exampleSite/static/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.hook {
width: 100%;
text-align: center;
color: var(--bs-light);
background-color: var(--bs-secondary);
color: var(--hbs-secondary-text);
background-color: var(--hbs-secondary);
margin-bottom: 1rem;
padding: .5rem;
border-radius: .25rem;
Expand Down
4 changes: 3 additions & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
{{- partial "head/site-verification" . -}}
{{- partial "head/baidu-analytics" . -}}
{{- partial "head/google-adsense" . -}}
{{- $script := resources.Get "main.js" | resources.Fingerprint -}}
{{ $style := resources.Get "scss/main.css" | resources.Fingerprint }}
<link rel=stylesheet href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}" crossorigin="anonymous">
{{- $script := resources.Get "js/main.js" | resources.Fingerprint -}}
<script src="{{ $script.Permalink }}" integrity="{{ $script.Data.Integrity }}" crossorigin="anonymous"></script>
{{- partial "head/math" . -}}
{{- partial "head/custom" . -}}
2 changes: 1 addition & 1 deletion layouts/partials/header/color-scheme-switcher.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="colorSchemeSwitcher">
<label class="form-check-label text-light" for="colorSchemeSwitcher" id="colorSchemeSwitcherLable">
<i class="fas fa-fw fa-sun"></i>
<i class="fas fa-fw fa-moon"></i>
</label>
</div>
</form>
6 changes: 4 additions & 2 deletions layouts/partials/header/navbar.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<nav class="navbar fixed-top navbar-expand-md navbar-dark bg-dark">
<nav class="navbar fixed-top navbar-expand-md">
<div class="container">
<a class="navbar-brand" href="{{ absLangURL "/" }}">
<img class="logo" alt="Logo" src="{{ absURL "images/logo.png" }}" loading="lazy">
HUGO BOOTSTRAP
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
<span class="navbar-toggler-icon fas fa-fw fa-bars"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto mb-2 mb-lg-0">
Expand Down Expand Up @@ -38,6 +39,7 @@
<ul class="navbar-nav ml-auto">
{{- partial "header/search-form" . -}}
{{- partial "header/language-switcher" . -}}
{{- partial "header/palette-switcher" . -}}
{{- partial "header/color-scheme-switcher" . -}}
</li>
</ul>
Expand Down
14 changes: 14 additions & 0 deletions layouts/partials/header/palette-switcher.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{{- $palettes := slice "blue" "blue gray" "brown" "cyan" "gray" "green" "indigo" "orange" "pink" "purple" "red" "teal" "yellow" -}}
<li class="nav-item dropdown palette-switcher">
<a class="nav-link" id="navbarDropdownPalette" role="button" data-toggle="dropdown" aria-expanded="false">
<i class="fas fa-fw fa-palette"></i>
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdownPalette">
{{- range $palettes -}}
{{- $key := replace . " " "-" -}}
<li>
<a class="dropdown-item bg-{{ $key }}" data-palette="{{ $key }}">{{ . | title }}</a>
</li>
{{- end -}}
</ul>
</li>
4 changes: 2 additions & 2 deletions layouts/partials/post/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
</span>
{{- partial "post/translations" . -}}
{{- range (.GetTerms "categories") -}}
<a href="{{ .Permalink }}" class="post-category badge">
<a href="{{ .Permalink }}" class="post-taxonomy badge">
<i class="fas fa-fw fa-folder"></i> {{ .Name }}
</a>
{{- end -}}
{{- range (.GetTerms "tags") -}}
<a href="{{ .Permalink }}" class="post-tag badge">
<a href="{{ .Permalink }}" class="post-taxonomy badge">
<i class="fas fa-fw fa-tag"></i> {{ .Name }}
</a>
{{- end -}}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/sidebar/taxonomies.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ <h4>
</h4>
<div>
{{- range $value.ByCount -}}
<a href="{{ .Page.Permalink }}" class="btn btn-sm btn-primary mr-2 mb-2">
{{ .Page.Title }} <span class="badge rounded-pill bg-dark">{{ .Count }}</span>
<a href="{{ .Page.Permalink }}" class="post-taxonomy btn btn-sm">
{{ .Page.Title }} <span class="badge">{{ .Count }}</span>
</a>
{{- end -}}
</div>
Expand Down
Loading

0 comments on commit dab618a

Please sign in to comment.