diff --git a/README.md b/README.md
index 57b3b1f..1a6fb96 100644
--- a/README.md
+++ b/README.md
@@ -25,7 +25,7 @@ Maupassant theme, ported to Hugo.
8. 支持文章按年份日期进行归档
9. 支持GA分析统计
17. 不蒜子页面计数器支持
-11. 代码高亮、代码行号
+11. 代码高亮、代码行号、代码拷贝
10. sitemap站点地图
5. RSS支持,并且可以自动发现RSS
14. Google站内搜索
diff --git a/layouts/partials/copy_button.html b/layouts/partials/copy_button.html
new file mode 100644
index 0000000..2e2fec8
--- /dev/null
+++ b/layouts/partials/copy_button.html
@@ -0,0 +1,76 @@
+{{- if (and (eq .Kind "page") (in (slice "post" "posts") .Type)) }}
+
+
+{{- end }}
\ No newline at end of file
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index d5075d9..4ca0311 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -136,6 +136,8 @@
{{ template "_internal/google_analytics.html" . }}
{{- end -}}
+{{ partial "copy_button" . }}
+
{{ if .Site.Params.busuanzi }}
{{ end }}
diff --git a/static/css/style.css b/static/css/style.css
index 6cc45f0..4a0912c 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -15,7 +15,6 @@
[class^="icon-"], [class*=" icon-"] {
font-family: 'icomoon';
- speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
@@ -98,13 +97,12 @@ mark {
padding: 3px 3px 3px 5px;
background: #fffdd1;
}
-pre, code {
- font-family:Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
-}
pre {
+ font-family:Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
overflow:auto;
border: 1px solid #ddd;
display: block;
+ margin: 0px;
}
code {
display: inline-block;
@@ -220,8 +218,6 @@ textarea {
#nav-menu a:first-child {
border:none;
}
-#nav-menu a:hover {
-}
#nav-menu a.current {
border:1px solid #ddd;
border-bottom:1px solid #fff;
@@ -1039,7 +1035,6 @@ table tr:nth-child(2n) {
table tr {
border: 0;
- border-top: 1px solid #CCC;
background-color: white;
}