added variables for the top page content
This commit is contained in:
@@ -88,6 +88,9 @@ type AmConfig struct {
|
|||||||
FooterTemplate string `yaml:"footerTemplate"`
|
FooterTemplate string `yaml:"footerTemplate"`
|
||||||
DefaultCommunityLogo string `yaml:"defaultCommunityLogo"`
|
DefaultCommunityLogo string `yaml:"defaultCommunityLogo"`
|
||||||
DefaultUserPhoto string `yaml:"defaultUserPhoto"`
|
DefaultUserPhoto string `yaml:"defaultUserPhoto"`
|
||||||
|
WelcomeTitle string `yaml:"welcomeTitle"`
|
||||||
|
WelcomeMessage string `yaml:"welcomeMessage"`
|
||||||
|
TopPostsTitle string `yaml:"topPostsTitle"`
|
||||||
} `yaml:"site"`
|
} `yaml:"site"`
|
||||||
Database struct {
|
Database struct {
|
||||||
Driver string `yaml:"driver"`
|
Driver string `yaml:"driver"`
|
||||||
|
|||||||
@@ -25,6 +25,11 @@ site:
|
|||||||
footerTemplate: "footer.jet"
|
footerTemplate: "footer.jet"
|
||||||
defaultCommunityLogo: "/img/builtin/default-community.jpg"
|
defaultCommunityLogo: "/img/builtin/default-community.jpg"
|
||||||
defaultUserPhoto: "/img/builtin/no-user.png"
|
defaultUserPhoto: "/img/builtin/no-user.png"
|
||||||
|
welcomeTitle: "Welcome to Amsterdam"
|
||||||
|
welcomeMessage: >
|
||||||
|
Welcome to the <strong>Amsterdam Web Communities System</strong>. To get the most out of this site, you should log in or create an account,
|
||||||
|
using one of the links above.
|
||||||
|
topPostsTitle: "Latest from the Conferences"
|
||||||
database:
|
database:
|
||||||
driver: "mysql"
|
driver: "mysql"
|
||||||
dsn: "amsdb:x00yes2k@tcp(localhost)/amsterdam?parseTime=true&loc=UTC"
|
dsn: "amsdb:x00yes2k@tcp(localhost)/amsterdam?parseTime=true&loc=UTC"
|
||||||
|
|||||||
+3
-5
@@ -12,17 +12,15 @@
|
|||||||
{{ if .CurrentUser().IsAnon }}
|
{{ if .CurrentUser().IsAnon }}
|
||||||
<!-- Welcome Section -->
|
<!-- Welcome Section -->
|
||||||
<div class="mb-8">
|
<div class="mb-8">
|
||||||
<h1 class="text-blue-800 text-4xl font-bold mb-2">Welcome to Amsterdam</h1>
|
<h1 class="text-blue-800 text-4xl font-bold mb-2">{{ GlobalConfig.Site.WelcomeTitle | raw }}</h1>
|
||||||
<hr class="border-2 border-gray-400 w-4/5 mb-4">
|
<hr class="border-2 border-gray-400 w-4/5 mb-4">
|
||||||
<p class="text-black text-sm mb-4">
|
<p class="text-black text-sm mb-4">{{ GlobalConfig.Site.WelcomeMessage | raw }}</p>
|
||||||
Welcome to the <strong>Amsterdam Web Communities System</strong>. To get the most out of this site, you should log in or create an account, using one of the links above.
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- Front Page Posts Section -->
|
<!-- Front Page Posts Section -->
|
||||||
<div>
|
<div>
|
||||||
<h2 class="text-blue-800 text-4xl font-bold mb-2">Latest from the Conferences</h2>
|
<h2 class="text-blue-800 text-4xl font-bold mb-2">{{ GlobalConfig.Site.TopPostsTitle | raw }}</h2>
|
||||||
<hr class="border-2 border-gray-400 w-4/5 mb-4">
|
<hr class="border-2 border-gray-400 w-4/5 mb-4">
|
||||||
|
|
||||||
{{ user := "" }}
|
{{ user := "" }}
|
||||||
|
|||||||
Reference in New Issue
Block a user