austingebauer / devise

A fast, minimal, responsive Hugo theme for blogs.
https://themes.gohugo.io/devise
MIT License
103 stars 56 forks source link

How to set about as the homepage? And the HTML syntax seems to be ineffective #30

Closed imjiaoyuan closed 1 year ago

imjiaoyuan commented 1 year ago

May I ask how to set the about page as the homepage like your homepage? My default has always been the posts page.And the HTML syntax seems to be ineffective.

austingebauer commented 1 year ago

Hi @YuanJ2003! I put an _index.md page in the top-level content directory which includes the content for my home page. Were you able to try that?

imjiaoyuan commented 1 year ago

Thank you! I modified the code of index.html and It solved the question.

{{ define "main" }}
    {{- with .Site.GetPage "about" -}}
        <div class="pl-sm-4 ml-sm-5">
            {{ .Content }}
        </div>
    {{- end -}}
{{ end }}
austingebauer commented 1 year ago

Glad you were able to get it fixed. I'm going to close this issue 👍