diff --git a/exampleSite/content/posts/theme-documentation-basics.md b/exampleSite/content/posts/theme-documentation-basics.md index 658f3c95..6e1a40d6 100644 --- a/exampleSite/content/posts/theme-documentation-basics.md +++ b/exampleSite/content/posts/theme-documentation-basics.md @@ -221,6 +221,15 @@ Text to display in the footer section footer = "Text in footer" ``` +### Displaying content on the homepage + +Content to display on homepage below the social icons, using the contents of `content/_index.md`. + +```toml +[params] + enableFrontMatter = "true" +``` + ### Custom Head HTML You can add custom HTML in head section diff --git a/layouts/index.html b/layouts/index.html index 7ee5b55c..0f7cf002 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -25,6 +25,15 @@

{{ .Site.Params.Description }}

{{ end }} +{{ if isset .Site.Params "enablefrontmatter" }} + {{ if eq .Site.Params.EnableFrontMatter "true" }} +
+
+ {{ .Content }} +
+ {{ end }} +{{ end }} + {{ if isset .Site.Params "showpostsonhomepage" }}
diff --git a/static/css/main.css b/static/css/main.css index 2c8d44b4..3c142d3c 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -357,7 +357,7 @@ table td { } /* HOME PAGE */ -.home-about { +.home-about, .home-content { text-align: center; } @@ -556,7 +556,7 @@ table td { width: 100%; } - .home-about { + .home-about, .home-content { margin: 0 auto; }