🔧 🚩 🚧 Finished the outline variable replace content.
This commit is contained in:
parent
c27081fd26
commit
3165c7b566
@ -66,16 +66,16 @@
|
||||
}
|
||||
|
||||
.with-love {
|
||||
color: hexo-config('footer.icon.color');
|
||||
color: $footer_icon_color;
|
||||
display: inline-block;
|
||||
margin: 0 5px;
|
||||
|
||||
@if hexo-config('footer.icon.animated') {
|
||||
@if $footer_icon_animated {
|
||||
animation: icon-animate 1.33s ease-in-out infinite;
|
||||
}
|
||||
}
|
||||
|
||||
@if hexo-config('footer.beian.enable') and hexo-config('footer.beian.gongan_icon_url') {
|
||||
@if $footer_beian_enable {
|
||||
.beian img {
|
||||
display: inline-block;
|
||||
margin: 0 3px;
|
||||
@ -83,15 +83,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
@if hexo-config('busuanzi_count.enable') {
|
||||
@if $busuanzi_enable {
|
||||
.busuanzi-count {
|
||||
@if hexo-config('busuanzi_count.total_visitors') {
|
||||
@if $busuanzi_visitors {
|
||||
#busuanzi_container_site_uv {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@if hexo-config('busuanzi_count.total_views') {
|
||||
@if $busuanzi_views {
|
||||
#busuanzi_container_site_pv {
|
||||
display: none;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
@if hexo-config('bookmark.enable') {
|
||||
@if $bookmark_enable {
|
||||
.book-mark-link {
|
||||
border-bottom: 0;
|
||||
position: fixed;
|
||||
@ -11,7 +11,7 @@
|
||||
}
|
||||
|
||||
&::before {
|
||||
color: convert(hexo-config('bookmark.color'));
|
||||
color: convert($bookmark_color);
|
||||
font-size: 32px;
|
||||
line-height: 1;
|
||||
@include font-family-icons('\f02e');
|
||||
|
@ -1,4 +1,4 @@
|
||||
@if hexo-config('github_banner.enable') {
|
||||
@if $github_banner_enable {
|
||||
@keyframes octocat-wave {
|
||||
0%, 100% {
|
||||
transform: rotate(0);
|
||||
@ -28,7 +28,7 @@
|
||||
}
|
||||
|
||||
@include tablet-mobile() {
|
||||
@if hexo-config('local_search.enable') or hexo-config('algolia_search.enable') {
|
||||
@if $local_search_enable or $algolia_search_enable {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
}
|
||||
*/
|
||||
|
||||
@if hexo-config('mobile_layout_economy') {
|
||||
@if $mobile_layout_economy {
|
||||
@include mobile-small() {
|
||||
// For Pisces & Gemini schemes only wider width (remove main blocks in Gemini).
|
||||
.main-inner {
|
||||
@ -56,7 +56,7 @@
|
||||
margin-bottom: 10px !important;
|
||||
padding: 10px !important;
|
||||
|
||||
@if hexo-config('note.icons') {
|
||||
@if $note_icons {
|
||||
&:not(.no-icon) {
|
||||
padding-left: 35px !important;
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
font-size: $font-size-smaller;
|
||||
}
|
||||
|
||||
@if not hexo-config('social_icons.icons_only') {
|
||||
@if not $social_icons_only {
|
||||
.fa, .fab, .far, .fas {
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
@ -3,11 +3,11 @@
|
||||
max-width: $site-author-image-width;
|
||||
padding: 2px;
|
||||
|
||||
@if hexo-config('avatar.rounded') {
|
||||
@if $avatar_rounded {
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
@if hexo-config('avatar.rotated') {
|
||||
@if $avatar_rotated {
|
||||
transition: transform 1s ease-out;
|
||||
|
||||
&:hover {
|
||||
|
@ -1,4 +1,4 @@
|
||||
@if hexo-config('toc.enable') {
|
||||
@if $toc_enable {
|
||||
.post-toc {
|
||||
font-size: $font-size-small;
|
||||
|
||||
@ -22,14 +22,14 @@
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
@if not hexo-config('toc.wrap') {
|
||||
@if not $toc_wrap {
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
.nav {
|
||||
.nav-child {
|
||||
display: if(hexo-config('toc.expand_all'), block, none);
|
||||
display: if($toc_expand_all, block, none);
|
||||
}
|
||||
|
||||
.active > .nav-child {
|
||||
|
@ -12,10 +12,10 @@
|
||||
|
||||
@media (any-hover: hover) {
|
||||
body:not(.sidebar-active) .sidebar-toggle:hover {
|
||||
@include toggle-arrow(hexo-config('sidebar.position'));
|
||||
@include toggle-arrow($sidebar_position);
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-active .sidebar-toggle {
|
||||
@include toggle-close(hexo-config('sidebar.position'));
|
||||
@include toggle-close($sidebar_position);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
@if hexo-config('site_state') {
|
||||
@if $site_state {
|
||||
.site-state {
|
||||
@include flex-wrap();
|
||||
line-height: 1.4;
|
||||
|
@ -6,6 +6,22 @@ $scheme: {{ $P.scheme }};
|
||||
$darkmode: {{ $P.darkmode }};
|
||||
$theme_color_dark: {{ $P.themeColor.dark }};
|
||||
$theme_color_light: {{ $P.themeColor.light }};
|
||||
$mobile_layout_economy: {{ $P.mobileLayoutEconomy }};
|
||||
|
||||
// Header
|
||||
$bookmark_enable: {{ $P.bookmark.enable }};
|
||||
$bookmark_color: {{ $P.bookmark.color }};
|
||||
$github_banner_enable: {{ $P.githubBanner.enable }};
|
||||
|
||||
// Footer
|
||||
$footer_icon_color: {{ $P.footer.icon.color }};
|
||||
$footer_icon_animated: {{ $P.footer.icon.animated }};
|
||||
$footer_beian_enable: {{ $P.footer.beian.enable }};
|
||||
|
||||
// Counter
|
||||
$busuanzi_enable: {{ $P.busuanzi.enable }};
|
||||
$busuanzi_visitors: {{ $P.busuanzi.visitors }};
|
||||
$busuanzi_views: {{ $P.busuanzi.views }};
|
||||
|
||||
// Font
|
||||
$font_enable: {{ $P.font.enable }};
|
||||
@ -26,8 +42,18 @@ $sidebar_padding: {{ $P.sidebar.padding }};
|
||||
$sidebar_position: {{ $P.sidebar.position }};
|
||||
$sidebar_width: {{ $P.sidebar.width }};
|
||||
|
||||
$avatar_rotated: {{ $P.avatar.rotated }};
|
||||
$avatar_rounded: {{ $P.avatar.rounded }};
|
||||
$avatar_rounded: {{ $P.avatar.rounded }};
|
||||
$site_state: {{ $P.siteState }};
|
||||
$social_icons_only: {{ $P.socialIcons.iconsOnly }};
|
||||
$toc_enable: {{ $P.toc.enable }};
|
||||
$toc_expand_all: {{ $P.toc.expandAll }};
|
||||
$toc_wrap: {{ $P.toc.wrap }};
|
||||
|
||||
// Note
|
||||
$note_light_bg_offset: {{ $P.note.lightBgOffset }};
|
||||
$note_icons: {{ $P.note.icons }};
|
||||
|
||||
// Reading progress bar
|
||||
$reading_progress_start: {{ $P.readingProgress.start }};
|
||||
|
@ -27,7 +27,7 @@
|
||||
// @import '_common/scaffolding';
|
||||
|
||||
// Layout
|
||||
// @import '_common/outline';
|
||||
@import '_common/outline';
|
||||
|
||||
// Components
|
||||
@import '_common/components';
|
||||
|
@ -152,7 +152,7 @@ params:
|
||||
rotated: false
|
||||
|
||||
# Posts / Categories / Tags in sidebar.
|
||||
site_state: true
|
||||
siteState: true
|
||||
|
||||
# Social Links
|
||||
# Usage: `Key: permalink || icon`
|
||||
@ -170,9 +170,9 @@ params:
|
||||
#Instagram: https://instagram.com/yourname || fab fa-instagram
|
||||
#Skype: skype:yourname?call|chat || fab fa-skype
|
||||
|
||||
social_icons:
|
||||
socialIcons:
|
||||
enable: true
|
||||
icons_only: false
|
||||
iconsOnly: false
|
||||
transition: false
|
||||
|
||||
# Blog rolls
|
||||
@ -194,9 +194,9 @@ params:
|
||||
# If true, all words will placed on next lines if header width longer then sidebar width.
|
||||
wrap: false
|
||||
# If true, all level of TOC in a post will be displayed, rather than the activated part of it.
|
||||
expand_all: false
|
||||
expandAll: false
|
||||
# Maximum heading depth of generated toc.
|
||||
max_depth: 6
|
||||
maxDepth: 6
|
||||
|
||||
|
||||
# ---------------------------------------------------------------
|
||||
@ -346,13 +346,13 @@ params:
|
||||
preconnect: false
|
||||
|
||||
# Set the text alignment in posts / pages.
|
||||
text_align:
|
||||
textAlign:
|
||||
# Available values: start | end | left | right | center | justify | justify-all | match-parent
|
||||
desktop: justify
|
||||
mobile: justify
|
||||
|
||||
# Reduce padding / margin indents on devices with narrow width.
|
||||
mobile_layout_economy: false
|
||||
mobileLayoutEconomy: false
|
||||
|
||||
# Browser header panel color.
|
||||
themeColor:
|
||||
@ -409,7 +409,7 @@ params:
|
||||
save: auto
|
||||
|
||||
# `Follow me on GitHub` banner in the top-right corner.
|
||||
github_banner:
|
||||
githubBanner:
|
||||
enable: false
|
||||
permalink: https://github.com/yourname
|
||||
title: Follow me on GitHub
|
||||
@ -722,14 +722,14 @@ params:
|
||||
|
||||
# Show Views / Visitors of the website / page with busuanzi.
|
||||
# For more information: http://ibruce.info/2015/04/04/busuanzi/
|
||||
busuanzi_count:
|
||||
busuanzi:
|
||||
enable: false
|
||||
total_visitors: true
|
||||
total_visitors_icon: fa fa-user
|
||||
total_views: true
|
||||
total_views_icon: fa fa-eye
|
||||
post_views: true
|
||||
post_views_icon: far fa-eye
|
||||
visitors: true
|
||||
visitorsIcon: fa fa-user
|
||||
views: true
|
||||
viewsIcon: fa fa-eye
|
||||
postViews: true
|
||||
postViewsIcon: far fa-eye
|
||||
|
||||
|
||||
# ---------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user