2022-05-21 18:43:01 +08:00
|
|
|
// All variables from site's config content.
|
|
|
|
{{- $P := .Site.Params -}}
|
|
|
|
|
|
|
|
// Base
|
|
|
|
$scheme: {{ $P.scheme }};
|
|
|
|
$darkmode: {{ $P.darkmode }};
|
|
|
|
$theme_color_dark: {{ $P.themeColor.dark }};
|
2022-05-21 19:18:19 +08:00
|
|
|
$theme_color_light: {{ $P.themeColor.light }};
|
2022-05-21 20:34:09 +08:00
|
|
|
$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 }};
|
2022-05-21 18:43:01 +08:00
|
|
|
|
|
|
|
// Font
|
|
|
|
$font_enable: {{ $P.font.enable }};
|
|
|
|
$font_global_size: {{ default $P.font.global.size 1 }};
|
|
|
|
$font_headings_size: {{ default $P.font.headings.size 1.625 }};
|
|
|
|
$font_title_size: {{ default $P.font.title.size 1.375 }};
|
|
|
|
|
|
|
|
// Code & Code blocks
|
|
|
|
// TODO find the configure variable
|
|
|
|
$highlight_dark_background: #000;
|
|
|
|
$highlight_dark_foreground: #222;
|
2022-05-21 19:18:19 +08:00
|
|
|
$highlight_light_background: #000;
|
|
|
|
$highlight_light_foreground: #222;
|
2022-05-21 18:43:01 +08:00
|
|
|
|
|
|
|
// Sidebar
|
|
|
|
$sidebar_offset: {{ $P.sidebar.offset }};
|
2022-05-21 19:18:19 +08:00
|
|
|
$sidebar_padding: {{ $P.sidebar.padding }};
|
|
|
|
$sidebar_position: {{ $P.sidebar.position }};
|
|
|
|
$sidebar_width: {{ $P.sidebar.width }};
|
2022-05-21 18:43:01 +08:00
|
|
|
|
2022-05-21 20:34:09 +08:00
|
|
|
$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 }};
|
|
|
|
|
2022-05-21 18:43:01 +08:00
|
|
|
// Note
|
|
|
|
$note_light_bg_offset: {{ $P.note.lightBgOffset }};
|
2022-05-21 20:34:09 +08:00
|
|
|
$note_icons: {{ $P.note.icons }};
|
2022-05-21 19:18:19 +08:00
|
|
|
|
|
|
|
// Reading progress bar
|
|
|
|
$reading_progress_start: {{ $P.readingProgress.start }};
|
|
|
|
$reading_progress_color: {{ $P.readingProgress.color }};
|
|
|
|
$reading_progress_enable: {{ $P.readingProgress.enable }};
|
|
|
|
$reading_progress_height: {{ $P.readingProgress.height }};
|
|
|
|
$reading_progress_position: {{ $P.readingProgress.position }};
|
|
|
|
$reading_progress_reversed: {{ $P.readingProgress.reversed }};
|
|
|
|
|
|
|
|
// Thirdparty
|
|
|
|
$math_mathjax_enable: {{ $P.math.mathjax.enable }};
|
|
|
|
$related_posts_enable: {{ $P.relatedPosts.enable }};
|
|
|
|
|
|
|
|
// Search engine
|
|
|
|
$algolia_search_enable: {{ $P.algoliaSearch.enable }};
|
|
|
|
$local_search_enable: {{ $P.localSearch.enable }};
|
|
|
|
|
|
|
|
// Online IM
|
|
|
|
$gitalk_enable: {{ $P.gitalk.enable }};
|
|
|
|
$gitter_enable: {{ $P.gitter.enable }};
|
|
|
|
|
|
|
|
// Comment
|
|
|
|
$disqusjs_enable: {{ $P.disqusjs.enable }};
|
|
|
|
$utterances_enable: {{ $P.utterances.enable }};
|