mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-14 00:59:43 +00:00
Fix blog section on windows (#152)
This commit is contained in:
parent
46f2ab37d4
commit
ce6913cc16
2 changed files with 4 additions and 4 deletions
|
@ -56,10 +56,10 @@
|
|||
{{ range sort $pages "Params.weight" }}
|
||||
{{ if ne .Name "contact.md" }}
|
||||
{{ if .File }}
|
||||
{{ if eq .File.Dir "projects/" }}
|
||||
{{ if eq (os.Stat .File.Dir).Name "projects" }}
|
||||
<!-- Now for some cool projects -->
|
||||
{{ partial "home/projects.html" . }}
|
||||
{{ else if eq .File.Dir "blog/" }}
|
||||
{{ else if eq (os.Stat .File.Dir).Name "blog" }}
|
||||
<!-- Let`s show some blog posts -->
|
||||
{{ partial "home/blog.html" . }}
|
||||
{{ else }}
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
|
||||
{{ range sort $pages "Params.weight" }}
|
||||
{{ if ne .Name "contact.md" }}
|
||||
{{ if eq .File.Dir "projects/" }}
|
||||
{{ if eq (os.Stat .File.Dir).Name "projects" }}
|
||||
<!-- Now for some cool projects -->
|
||||
{{ if $isHome }}
|
||||
<a class="navbar-item" href="{{ printf "/#%s" ( .Title | urlize) | relLangURL }}">{{ .Title }}</a>
|
||||
|
@ -69,7 +69,7 @@
|
|||
</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ else if eq .File.Dir "blog/" }}
|
||||
{{ else if eq (os.Stat .File.Dir).Name "blog" }}
|
||||
<!-- Let`s show some blog posts -->
|
||||
{{ if $isHome }}
|
||||
<a class="navbar-item" href="{{ printf "/#%s" ( .Title | urlize) | relLangURL }}">{{ .Title }}</a>
|
||||
|
|
Loading…
Reference in a new issue