monkeyWzr / hugo-theme-cactus

Cactus theme for hugo
MIT License
537 stars 338 forks source link

For those who want to add extra items on index page(home page) #139

Open YoobinLee opened 11 months ago

YoobinLee commented 11 months ago

Here I make an example of "links". You can see the final result in YoobinPage.

  1. Enter the theme folder.
.link-list
  padding: 0
  list-style: none

  .link-item
    margin-bottom: 5px
    p
      display: inline

links: Friend Links

  1. Return to the root, build new source/_dada/links.json, insert:

    [
    {
       "name":"",
       "url":"",
       "desc":""
    }
    ]
  2. If you want to add hyperlink to the title in the index page:

ei5uke commented 6 months ago

Correct me if I'm wrong, but looking into your github-pages source code, this should be an implementation for hexo-theme-cactus, not hugo-theme-cactus. Either way, cool addition!