ppoffice / hexo-theme-icarus

A simple, delicate, and modern theme for the static site generator Hexo.
https://ppoffice.github.io/hexo-theme-icarus/
MIT License
6.35k stars 1.54k forks source link

post页面修改成两栏格式之后profile挂件内容缺失 #753

Closed declan-haojin closed 4 years ago

declan-haojin commented 4 years ago

Bug描述 post页面修改成两栏格式之后profile挂件内容缺失

系统与环境

-
        # Where should the widget be placed, left sidebar or right sidebar
        position: left
        type: profile
        # Author name
        author: Declan
        # Author title
        author_title: Keep mindful living.
        # Author's current location
        location: Xi'an, China
        # URL or path to the avatar image
        avatar: '/img/avatar.png'
        # Whether show the rounded avatar image
        avatar_rounded: true
        # Email address for the Gravatar
        gravatar: 
        # URL or path for the follow button
        follow_link: 'mailto:declan@****'
        # Links to be shown on the bottom of the profile widget
        social_links:
            Github:
                icon: fab fa-github
                url: 'https://github.com/declan-haojin'
            Instagram:
                icon: fab fa-instagram
                url: 'https://www.instagram.com/***/'
            Twitter:
                icon: fab fa-twitter
                url: 'https://twitter.com/***'
            # Facebook:
            #     icon: fab fa-facebook
            #     url: 'https://www.facebook.com/profile.php?id=****&ref=bookmarks'
            QQ:
                icon: fab fa-qq
                url: 'https://user.qzone.qq.com/****/'
            RSS:
                icon: fas fa-rss
                url: /atom.xml
title: VRC Change Up 2020-2021 Dev Log
widgets:
- type: profile
position: left
- type: recent_posts
position: left
tags:
- VEX
toc: true
categories:
- VEX Robotics
thumbmail: https://cdn.jsdelivr.net/gh/declan-haojin/blog-image@master/img/20200417004933.png
date: 2020-05-31 23:20:07

期望效果 image-20200605012803107

实际效果


也不知道是bug还是我本身配置的问题,希望得到解答,谢谢!

ppoffice commented 4 years ago

@declan-haojin 你需要把整个widgets配置复制到你的文章头部。只有type: profile是不行的。

declan-haojin commented 4 years ago

弄好了,谢谢!