Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
feat: update style / exampleSite files and compatible with Hugo 0.58
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq committed Sep 29, 2019
1 parent 42d50ae commit 69068c7
Show file tree
Hide file tree
Showing 10 changed files with 951 additions and 39 deletions.
6 changes: 0 additions & 6 deletions assets/css/_core/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,3 @@ a {
}
}
}

i.fas,
i.far,
i.fab {
padding: 0 .2rem;
}
4 changes: 3 additions & 1 deletion assets/css/_core/_normalize.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ hr,
h1,
h2,
h3,
h4 {
h4,
h5,
h6 {
padding: 0;
margin: 0;
}
Expand Down
5 changes: 4 additions & 1 deletion assets/css/_page/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@
}
}

h3::before {
h3::before,
h4::before,
h5::before,
h6::before {
content: "|";
margin-right: .3125rem;
color: $post-link-color;
Expand Down
10 changes: 9 additions & 1 deletion assets/css/_partial/_post/_code.scss
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,15 @@ p > code {
}

/* LineNumbersTable */ .lnt { color: $code-info-color; }
/* LineHighlight */ .hl { display: block; width: 100%; background-color: #ffffcc }
/* LineHighlight */ .hl {
display: block;
width: 100%;
background-color: darken($code-background-color, 5%);

.dark-theme & {
background-color: darken($code-background-color-dark, 5%);
}
}
/* P */ .chroma .p { color: #A9A9B3 }

/* Keyword */ .k { color: #859900 }
Expand Down
41 changes: 41 additions & 0 deletions exampleSite/content/posts/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,47 @@ Test all features in development[^link test].

## Test ECharts

{{< echarts height="500px" >}}
{
title : {
text: '某站点用户访问来源',
subtext: '纯属虚构',
x:'center'
},
tooltip : {
trigger: 'item',
formatter: "{a} <br/>{b} : {c} ({d}%)"
},
legend: {
orient: 'vertical',
left: 'left',
data: ['直接访问','邮件营销','联盟广告','视频广告','搜索引擎']
},
series : [
{
name: '访问来源',
type: 'pie',
radius : '55%',
center: ['50%', '60%'],
data:[
{value:335, name:'直接访问'},
{value:310, name:'邮件营销'},
{value:234, name:'联盟广告'},
{value:135, name:'视频广告'},
{value:1548, name:'搜索引擎'}
],
itemStyle: {
emphasis: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
}
}
]
}
{{< /echarts >}}

## Test Ruby

人最重要的特点是会思考,建站初衷无非是保存思维的电子快照。
Expand Down
Loading

0 comments on commit 69068c7

Please sign in to comment.