fix bootstrap 4 problems
This commit is contained in:
parent
c0b94eb405
commit
44426d21c3
@ -2,7 +2,7 @@
|
|||||||
{{if .Meta.TagState.Tags}}
|
{{if .Meta.TagState.Tags}}
|
||||||
<div>
|
<div>
|
||||||
{{range .Meta.TagState.Tags}}
|
{{range .Meta.TagState.Tags}}
|
||||||
<a class="badge badge-default" href="/{{(index $.Meta.TagState.Info .).Path}}">{{.}}</a>
|
<a class="badge badge-secondary" href="/{{(index $.Meta.TagState.Info .).Path}}">{{.}}</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -21,10 +21,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "navbar"}}
|
{{define "navbar"}}
|
||||||
<nav class="navbar navbar-toggleable-md navbar-inverse bg-inverse fixed-top">
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
|
||||||
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup">
|
|
||||||
<span class="navbar-toggler-icon"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="/">Goldsmith Sample</a>
|
<a class="navbar-brand" href="/">Goldsmith Sample</a>
|
||||||
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
|
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
|
||||||
<div class="navbar-nav">
|
<div class="navbar-nav">
|
||||||
@ -35,6 +32,9 @@
|
|||||||
<a class="nav-item nav-link {{if $area}}{{if eq $area "tags"}}active{{end}}{{end}}" href="/tags/">Tags</a>
|
<a class="nav-item nav-link {{if $area}}{{if eq $area "tags"}}active{{end}}{{end}}" href="/tags/">Tags</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
</nav>
|
</nav>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func fixup(doc *goquery.Document) error {
|
func fixup(doc *goquery.Document) error {
|
||||||
doc.Find("table").AddClass("table")
|
doc.Find("table").AddClass("table", "table-dark")
|
||||||
doc.Find("blockquote").AddClass("blockquote")
|
doc.Find("blockquote").AddClass("blockquote")
|
||||||
doc.Find("img[src*='thumb']").Each(func(i int, s *goquery.Selection) {
|
doc.Find("img[src*='thumb']").Each(func(i int, s *goquery.Selection) {
|
||||||
thumbLink := s.ParentFiltered("a")
|
thumbLink := s.ParentFiltered("a")
|
||||||
|
Loading…
Reference in New Issue
Block a user