mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-12-22 22:52:54 +00:00
Fix more build problems
This commit is contained in:
parent
b2bfdb95cf
commit
9b08324593
2 changed files with 3 additions and 3 deletions
BIN
exampleSite/static/img/workday.jpg
Normal file
BIN
exampleSite/static/img/workday.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 58 KiB |
|
@ -54,9 +54,9 @@
|
|||
{{ $totalProjects := (len .Pages) }}
|
||||
{{ $numberOfProjectsToShow := .Site.Params.home.numberOfProjectsToShow | default $totalProjects }}
|
||||
{{ if $isHome }}
|
||||
<a class="navbar-item" href="#{{ .Title | urlize }}">{{ .Title }}</a>
|
||||
<a class="navbar-item" href="{{ printf "#%s" (.Title | urlize) }}">{{ .Title }}</a>
|
||||
{{ else if le $totalProjects $numberOfProjectsToShow }}
|
||||
<a class="navbar-item" href="/#{{ .Title | urlize }}">{{ .Title }}</a>
|
||||
<a class="navbar-item" href="{{ printf "/#%s" (.Title | urlize) | relLangURL }}">{{ .Title }}</a>
|
||||
{{ else }}
|
||||
<a class="navbar-item" href="{{ .Permalink }}">
|
||||
{{ if $pageIsInProjects }}
|
||||
|
@ -73,7 +73,7 @@
|
|||
{{ if not (and $pageIsInBlog (eq .Page.Kind "section")) }}
|
||||
{{ with .Site.GetPage "section" "/blog" }}
|
||||
{{ if $isHome }}
|
||||
<a class="navbar-item" href="#{{ .Title | urlize }}">{{ .Title }}</a>
|
||||
<a class="navbar-item" href="{{ printf "#%s" (.Title | urlize) }}">{{ .Title }}</a>
|
||||
{{ else }}
|
||||
<a class="navbar-item" href="{{ .Permalink }}">
|
||||
{{ if $pageIsInBlog }}
|
||||
|
|
Loading…
Reference in a new issue