Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why the site type be restricted? #136

Open
GabrielDrapor opened this issue Jan 15, 2020 · 0 comments
Open

Why the site type be restricted? #136

GabrielDrapor opened this issue Jan 15, 2020 · 0 comments

Comments

@GabrielDrapor
Copy link

in layouts/_defult/list.html

{{ partial "header.html" . }}
<h2 class="c-title p-tag-title">{{ .Title }}</h2>
{{ range $index, $page := (.Paginate (where .Site.RegularPages "Type" "posts")).Pages }}
{{ if ne $index 0 }}
{{ end }}
{{ .Render "li" }}
{{ end }}
{{ partial "pagination.html" .Paginator }}
{{ partial "siteinfo.html" . }}
{{ partial "footer.html" . }}

why not change it to

{{ partial "header.html" . }}
<h2 class="c-title p-tag-title">{{ .Title }}</h2>
{{ range $index, $page := .Pages }}
{{ if ne $index 0 }}
{{ end }}
{{ .Render "li" }}
{{ end }}
{{ partial "pagination.html" .Paginator }}
{{ partial "siteinfo.html" . }}
{{ partial "footer.html" . }}

for avoiding problems when having multi sections?

@GabrielDrapor GabrielDrapor changed the title Why the site t;ype be restricted? Why the site type be restricted? Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant