Skip to content

🎨hugo友情链接模板/ a hugo friend links templates.

License

Notifications You must be signed in to change notification settings

kkkgo/hugo-friendlinks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Preview: https://blog.03k.org/friends.html

usage

    1. Copy "layouts" to your hugo website path or theme path.
    1. Creat a xxx.md, set page layout to "links", If you want to add to index, set menu to main.
---
title: "Myfriends"
date: 2018-11-02
layout: "links"
menu: "main"
weight: 50
---
    1. Now you can add friend's links in the xxx.md by shortcode. The format looks like:
---
title: "Myfriends"
date: 2018-11-02
layout: "links"
menu: "main"
weight: 50
---
{{< friend name="Tony" url="http://tony.blog" logo="/tony.jpg" word="A funny guy" >}}  
{{< friend name="Mike" url="http://Mike.blog" logo="/Mike.jpg" word="A poor guy" >}}  
    1. Preview:
      Preview
    1. In order to display other content of the theme, You need to find a template based on your theme, such as "single.html". Refer to the code of "single.html" to modify "links.html". For example, insert some code at the head or tail. Make "links.html" look consistent with the template format of "single.html".

操作可以参考:#2 (comment)
效果预览: https://blog.03k.org/friends.html
欢迎交换友链!

About

🎨hugo友情链接模板/ a hugo friend links templates.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages