mirror of
https://github.com/jaywcjlove/awesome-mac.git
synced 2026-04-11 02:11:46 +08:00
Add Report button. Modify the style.
This commit is contained in:
parent
fde2796efb
commit
ded428b5c6
@ -106,21 +106,15 @@ function MarkedToHTMLSave(_path,form_file,callback){
|
||||
console.log(notice(' → ['+form_file+"]成功转换成HTML!"+ _path));
|
||||
html = MDhrefToPath(html);
|
||||
|
||||
var title="",description="",keywords="";
|
||||
var title="",description="",keywords="",lang;
|
||||
if (_path.indexOf('zh.html')>0){
|
||||
title = "精品Mac应用分享推荐 - Awesome Mac";
|
||||
description = "收集分享大量非常好用的Mac应用程序、软件以及工具,主要面向开发者和设计师。 - Awesome Mac";
|
||||
keywords = "mac,osx,app,mac软件,awesome mac,苹果软件下载,免费软件,mac免费软件下载,精品mac应用";
|
||||
lang="zh";
|
||||
}else{
|
||||
title = "Awesome Mac application sharing recommendation - Awesome Mac";
|
||||
description = "A curated list of awesome applications, softwares, tools and shiny things for Mac osx. - Awesome Mac";
|
||||
keywords = "mac,osx,app,softwares,applications,mac softwares,awesome mac,free softwares,Freeware";
|
||||
lang="en";
|
||||
}
|
||||
var data = {
|
||||
html: html,
|
||||
title: title,
|
||||
description:description,
|
||||
keywords:keywords
|
||||
lang:lang,
|
||||
html: html
|
||||
};
|
||||
var options = {
|
||||
// delimiter: '$'
|
||||
|
||||
@ -3,12 +3,13 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
|
||||
<title><%- title %></title>
|
||||
<meta name="description" content="<%- description %>" />
|
||||
<meta name="keywords" content="<%- keywords %>" />
|
||||
<title><% if(lang=='zh'){ %> 精品Mac应用分享推荐 - Awesome Mac <% }else{ %> Awesome Mac application sharing recommendation - Awesome Mac <% } %></title>
|
||||
<meta name="description" content="<% if(lang=='zh'){ %> 收集分享大量非常好用的Mac应用程序、软件以及工具,主要面向开发者和设计师。 - Awesome Mac <% }else{ %> A curated list of awesome applications, softwares, tools and shiny things for Mac osx. - Awesome Mac <% } %>" />
|
||||
<meta name="keywords" content="<% if(lang=='zh'){ %> mac,osx,app,mac软件,awesome mac,苹果软件下载,免费软件,mac免费软件下载,精品mac应用 <% }else{ %> mac,osx,app,softwares,applications,mac softwares,awesome mac,free softwares,Freeware <% } %>" />
|
||||
<link rel="shortcut icon" href="./favicon.ico" />
|
||||
<style type="text/css">
|
||||
* {box-sizing: border-box; }
|
||||
body,html{padding: 0;margin:0;}
|
||||
body{font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 16px; line-height: 1.5; word-wrap: break-word; }
|
||||
p,blockquote,ul,ol,dl,table,pre{margin-top: 0; margin-bottom: 16px; }
|
||||
blockquote{margin-right: 0; margin-left: 0; padding: 0 1em; color: #777; border-left: 0.25em solid #ddd; }
|
||||
@ -54,6 +55,31 @@
|
||||
20%,60%{-webkit-transform:rotate(-25deg);transform:rotate(-25deg)}
|
||||
40%,80%{-webkit-transform:rotate(10deg);transform:rotate(10deg)}
|
||||
}
|
||||
|
||||
#awesome-mac {
|
||||
padding: 37px 0px 40px 0;
|
||||
text-align: center;
|
||||
color: #686868;
|
||||
}
|
||||
|
||||
.topmenu{
|
||||
position: fixed;
|
||||
left: 5px;
|
||||
}
|
||||
|
||||
.topmenu a{
|
||||
background: #ebebeb;
|
||||
display: inline-block;
|
||||
padding: 1px 5px;
|
||||
font-size: 12px;
|
||||
border-radius: 2px;
|
||||
color:#757575;
|
||||
}
|
||||
|
||||
.topmenu a:hover{
|
||||
background: #2186ff;
|
||||
color: #fff;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body id="totop">
|
||||
@ -64,6 +90,12 @@
|
||||
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path>
|
||||
</svg>
|
||||
</a>
|
||||
<div class="topmenu">
|
||||
<a href="https://github.com/jaywcjlove/awesome-mac/issues">
|
||||
<% if(lang=='zh'){ %> 推荐软件 <% }else{ %> Recommended <% } %>
|
||||
</a>
|
||||
<a href="https://github.com/jaywcjlove/awesome-mac/issues"><% if(lang=='zh'){ %> 链接失效报告 <% }else{ %> Link failure Report <% } %></a>
|
||||
</div>
|
||||
<article class="markdown-body">
|
||||
<%- html %>
|
||||
</article>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user