chore: selectively show widgets in posts

pull/701/head
ppoffice 2020-04-11 17:45:01 -04:00
parent bb59425608
commit 0796cd83d9
5 changed files with 119 additions and 9 deletions

65
_config.post.yml Normal file
View File

@ -0,0 +1,65 @@
# Sidebar configurations.
# Please be noted that a sidebar is only visible when it has at least one widget
sidebar:
# Left sidebar configurations
left:
# Whether the sidebar sticks to the top when page scrolls
sticky: true
# Right sidebar configurations
right:
# Whether the sidebar sticks to the top when page scrolls
sticky: false
# Sidebar widget configurations
# http://ppoffice.github.io/hexo-theme-icarus/categories/Widgets/
widgets:
# Profile widget configurations
-
# Where should the widget be placed, left sidebar or right sidebar
position: left
type: profile
# Author name
author: PPOffice
# Author title
author_title: Web Developer
# Author's current location
location: Earth, Solar System
# URL or path to the avatar image
avatar:
# Whether show the rounded avatar image
avatar_rounded: false
# Email address for the Gravatar
gravatar:
# URL or path for the follow button
follow_link: 'https://github.com/ppoffice'
# Links to be shown on the bottom of the profile widget
social_links:
Github:
icon: fab fa-github
url: 'https://github.com/ppoffice'
Facebook:
icon: fab fa-facebook
url: 'https://facebook.com'
Twitter:
icon: fab fa-twitter
url: 'https://twitter.com'
Dribbble:
icon: fab fa-dribbble
url: 'https://dribbble.com'
RSS:
icon: fas fa-rss
url: /
# Table of contents widget configurations
-
# Where should the widget be placed, left sidebar or right sidebar
position: left
type: toc
# Categories widget configurations
-
# Where should the widget be placed, left sidebar or right sidebar
position: left
type: categories
# Tags widget configurations
-
# Where should the widget be placed, left sidebar or right sidebar
position: left
type: tags

View File

@ -116,10 +116,7 @@ search:
type: insight type: insight
# Comment plugin configurations # Comment plugin configurations
# https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Comment/ # https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Comment/
comment: # comment:
type: disqus
# Disqus shortname
shortname: hexo-theme-icarus
# Donate plugin configurations # Donate plugin configurations
# https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Donation/ # https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Donation/
# donates: # donates:
@ -259,6 +256,7 @@ widgets:
# # AdSense AD unit ID # # AdSense AD unit ID
# slot_id: '' # slot_id: ''
# Plugin configurations # Plugin configurations
# https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/
plugins: plugins:
# Enable page startup animations # Enable page startup animations
animejs: true animejs: true

View File

@ -58,11 +58,11 @@ time_format: HH:mm:ss
# Pagination # Pagination
## Set per_page to 0 to disable pagination ## Set per_page to 0 to disable pagination
per_page: 6 per_page: 10
pagination_dir: page pagination_dir: page
index_generator: index_generator:
per_page: 6 per_page: 10
archive_generator: archive_generator:
per_page: 20 per_page: 20
@ -70,10 +70,10 @@ archive_generator:
monthly: true monthly: true
category_generator: category_generator:
per_page: 6 per_page: 10
tag_generator: tag_generator:
per_page: 6 per_page: 10
# Extensions # Extensions
## Plugins: https://github.com/hexojs/hexo/wiki/Plugins ## Plugins: https://github.com/hexojs/hexo/wiki/Plugins

View File

@ -6,7 +6,54 @@ variant: cyberpunk
article: article:
highlight: highlight:
theme: qtcreator_dark theme: qtcreator_dark
thumbnail: /uncategorized/cyberpunk-theme-variant/CP77-KV-en.jpg sidebar:
left:
sticky: false
right:
sticky: false
widgets:
-
position: left
type: profile
author: PPOffice
author_title: Web Developer
location: Earth, Solar System
follow_link: 'https://github.com/ppoffice'
social_links:
Github:
icon: fab fa-github
url: 'https://github.com/ppoffice'
Facebook:
icon: fab fa-facebook
url: 'https://facebook.com'
Twitter:
icon: fab fa-twitter
url: 'https://twitter.com'
Dribbble:
icon: fab fa-dribbble
url: 'https://dribbble.com'
RSS:
icon: fas fa-rss
url: /
-
position: left
type: links
links:
Hexo: 'https://hexo.io'
Bulma: 'https://bulma.io'
-
position: left
type: categories
-
position: right
type: recent_posts
-
position: right
type: archives
-
position: right
type: tags
thumbnail: /gallery/thumbnails/CP77-KV-en.jpg
--- ---
Icarus includes a new variant called Cyberpunk starting from version 3.0.0. Icarus includes a new variant called Cyberpunk starting from version 3.0.0.

View File

Before

Width:  |  Height:  |  Size: 276 KiB

After

Width:  |  Height:  |  Size: 276 KiB