• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Xzya/hugo-material-blog: Clean Material Design blog theme for Hugo.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

Xzya/hugo-material-blog

开源软件地址(OpenSource Url):

https://github.com/Xzya/hugo-material-blog

开源编程语言(OpenSource Language):

HTML 93.9%

开源软件介绍(OpenSource Introduction):

Hugo Material Blog

Clean Material Design blog theme for Hugo.

Demo

You can find a demo here.

Screenshots

preview preview

Configuration

Check exampleSite/config.toml for an example configuration.

Cover image

You can use the cover_image param in the frontmatter of a post to include a cover image:

cover_image: "images/image1.jpeg"

Brand

The brand can be overriden by adding your own layout layouts/partials/brand.html. Check exampleSite/layouts/partials/brand.html for an example.

Footer content

The footer content can be overriden by adding your own layout in layouts/partials/footer-content.html. Check exampleSite/layouts/partials/footer-content.html for an example.

Menu

The navbar displays the main menus by default. You can find more details about how to configure it here, as well as in the exampleSite/config.toml.

Footer menu

You can include menus in the footer by setting them in the footer_menus array:

[params]
  [[params.footer_menus]]
    name = "Services"
    menu = "services"
  [[params.footer_menus]]
    name = "Links"
    menu = "other"

This also supports localization:

[languages.en]
  languageName = "English"
  [[languages.en.params.footer_menus]]
    name = "Services"
    menu = "footer1"
  [[languages.en.params.footer_menus]]
    name = "Other"
    menu = "footer2"

[languages.fr]
  languageName = "Français"
  [[languages.fr.params.footer_menus]]
    name = "Services"
    menu = "footer1"
  [[languages.fr.params.footer_menus]]
    name = "Autre"
    menu = "footer2"

Check exampleSite/config.toml for more examples.

Additional content in <head>

You can add your own content in the <head> by overriding partials/head-custom.html.

License

Open sourced under the MIT license.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap