提交 e5ce9906 编写于 作者: E edisonxiang

add community framework

上级 647f77d6
...@@ -69,7 +69,7 @@ paginate = 10 ...@@ -69,7 +69,7 @@ paginate = 10
[[menu.main]] [[menu.main]]
identifier = "mails" identifier = "mails"
name = "Mail Lists" name = "Mail Lists"
url = "/news.html" url = "/community/mails.html"
parent = "community" parent = "community"
weight = 10 weight = 10
...@@ -192,7 +192,7 @@ paginate = 10 ...@@ -192,7 +192,7 @@ paginate = 10
[[languages.zh.menu.main]] [[languages.zh.menu.main]]
identifier = "mails" identifier = "mails"
name = "邮件列表" name = "邮件列表"
url = "/zh/news.html" url = "/zh/community/mails.html"
parent = "community" parent = "community"
weight = 10 weight = 10
......
+++
title = "Mail Lists"
id = "mails"
+++
# Head
# Mail List
{{< mails >}}
# Footer
+++
title = "Mail Lists"
id = "mails"
+++
# Head
# Mail List
{{< mails >}}
# Footer
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
{{ partial "head.html" . }}
<body>
<div id="all">
<header>
{{ partial "nav.html" . }}
</header>
{{ partial "breadcrumbs.html" . }}
<div id="content">
{{ if isset .Params "id" }}
{{ partial .Params.id . }}
{{ else }}
<div class="container">
<div>
{{ .Content }}
</div>
</div>
<!-- /.container -->
{{ end }}
</div>
<!-- /#content -->
{{ partial "footer.html" . }}
</div>
<!-- /#all -->
{{ partial "scripts.html" . }}
</body>
</html>
<div class="container">
<div>
{{ .Content }}
</div>
</div>
<div class="e_mail">
<h2>{{ i18n "main_email_subscribe_title" }}</h2>
{{ range where $.Page.Site.Pages "Type" "maillist" }}
{{ if .Params }}
<li>
<div>
<h3>{{ .Params.emailaddress }}</h3>
<p> {{ .Params.description }}</p>
</div>
<a href="{{ .Params.websitelink}}" target="_blank">
<div class="btn">{{ .Params.buttontext }} </div>
</a>
</li>
{{ end }}
{{ end }}
</div>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册