Clone home page design from Hexo V8.11.1.

This commit is contained in:
凡梦星尘 2022-05-04 16:17:20 +08:00
parent 24fa4020ff
commit e5dc7edefb
14 changed files with 3318 additions and 19 deletions

212
assets/css/highlight.css Normal file
View File

@ -0,0 +1,212 @@
/*!
Theme: Default
Description: Original highlight.js style
Author: (c) Ivan Sagalaev <maniac@softwaremaniacs.org>
Maintainer: @highlightjs/core-team
Website: https://highlightjs.org/
License: see project LICENSE
Touched: 2021
*/
pre code.hljs {
display: block;
overflow-x: auto;
padding: 1em
}
code.hljs {
padding: 3px 5px
}
.hljs {
background: #f3f3f3;
color: #444
}
.hljs-comment {
color: #697070
}
.hljs-punctuation,
.hljs-tag {
color: #444a
}
.hljs-tag .hljs-attr,
.hljs-tag .hljs-name {
color: #444
}
.hljs-attribute,
.hljs-doctag,
.hljs-keyword,
.hljs-meta .hljs-keyword,
.hljs-name,
.hljs-selector-tag {
font-weight: 700
}
.hljs-deletion,
.hljs-number,
.hljs-quote,
.hljs-selector-class,
.hljs-selector-id,
.hljs-string,
.hljs-template-tag,
.hljs-type {
color: #800
}
.hljs-section,
.hljs-title {
color: #800;
font-weight: 700
}
.hljs-link,
.hljs-operator,
.hljs-regexp,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-symbol,
.hljs-template-variable,
.hljs-variable {
color: #ab5656
}
.hljs-literal {
color: #695
}
.hljs-addition,
.hljs-built_in,
.hljs-bullet,
.hljs-code {
color: #397300
}
.hljs-meta {
color: #1f7199
}
.hljs-meta .hljs-string {
color: #38a
}
.hljs-emphasis {
font-style: italic
}
.hljs-strong {
font-weight: 700
}
/*!
Theme: StackOverflow Dark
Description: Dark theme as used on stackoverflow.com
Author: stackoverflow.com
Maintainer: @Hirse
Website: https://github.com/StackExchange/Stacks
License: MIT
Updated: 2021-05-15
Updated for @stackoverflow/stacks v0.64.0
Code Blocks: /blob/v0.64.0/lib/css/components/_stacks-code-blocks.less
Colors: /blob/v0.64.0/lib/css/exports/_stacks-constants-colors.less
*/
@media (prefers-color-scheme: dark) {
pre code.hljs {
display: block;
overflow-x: auto;
padding: 1em
}
code.hljs {
padding: 3px 5px
}
.hljs {
color: #fff;
background: #1c1b1b
}
.hljs-subst {
color: #fff
}
.hljs-comment {
color: #999
}
.hljs-attr,
.hljs-doctag,
.hljs-keyword,
.hljs-meta .hljs-keyword,
.hljs-section,
.hljs-selector-tag {
color: #88aece
}
.hljs-attribute {
color: #c59bc1
}
.hljs-name,
.hljs-number,
.hljs-quote,
.hljs-selector-id,
.hljs-template-tag,
.hljs-type {
color: #f08d49
}
.hljs-selector-class {
color: #88aece
}
.hljs-link,
.hljs-regexp,
.hljs-selector-attr,
.hljs-string,
.hljs-symbol,
.hljs-template-variable,
.hljs-variable {
color: #b5bd68
}
.hljs-meta,
.hljs-selector-pseudo {
color: #88aece
}
.hljs-built_in,
.hljs-literal,
.hljs-title {
color: #f08d49
}
.hljs-bullet,
.hljs-code {
color: #ccc
}
.hljs-meta .hljs-string {
color: #b5bd68
}
.hljs-deletion {
color: #de7176
}
.hljs-addition {
color: #76c490
}
.hljs-emphasis {
font-style: italic
}
.hljs-strong {
font-weight: 700
}
}

13
assets/css/style.css Normal file
View File

@ -0,0 +1,13 @@
/** User-defined style. **/
.sidebar {
visibility: inherit;
}
.site-author-image {
border-radius:0;
}
.back-to-top {
bottom: 30px;
}

View File

@ -1,11 +1,37 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<div id="content">
{{- block "main" . }}{{- end }}
<html lang="zh-CN">
{{ partial "partials/head.html" . }}
<body itemscope itemtype="http://schema.org/WebPage" {{/*class="use-motion"*/}}>
<div class="headband"></div>
<main class="main">
<header class="header" itemscope itemtype="http://schema.org/WPHeader">
{{ partial "partials/header.html" . }}
</header>
<div class="main-inner index posts-expand">
<div class="post-block">
{{- block "main" . -}}
{{- end -}}
</div>
{{- partial "footer.html" . -}}
</body>
</html>
<nav class="pagination">
{{ partial "partials/pages.html" . }}
</nav>
</div>
</main>
<footer class="footer">
<div class="footer-inner">
{{ partial "partials/footer.html" . }}
</div>
</footer>
<div class="back-to-top" role="button" aria-label="返回顶部">
<i class="fa fa-arrow-up"></i>
<span>0%</span>
</div>
</body>
</html>

View File

@ -1,10 +1,53 @@
<!DOCTYPE html>
<html>
<header>
<title>Hugo theme of NexT</title>
</header>
<body style="text-align: center;">
<h1>Start a new journey for Hugo's theme of NexT.<h1>
<h1>Easily & powerful theme for Hugo engine.<h1>
</body>
</html>
{{ define "main" }}
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://example.com/2022/05/02/hello-world2/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/imgs/icons/apple-touch-icon-next.png">
<meta itemprop="name" content="John Doe">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Hexo">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | Hexo">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2022/05/02/hello-world2/" class="post-title-link" itemprop="url">Hello World2</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间2022-05-02 21:50:19" itemprop="dateCreated datePublished" datetime="2022-05-02T21:50:19+08:00">2022-05-02</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间2022-05-04 11:59:28" itemprop="dateModified" datetime="2022-05-04T11:59:28+08:00">2022-05-04</time>
</span>
</div>
</div>
<div class="post-body" itemprop="articleBody">
<ol start="2">
<li>Welcome to <a target="_blank" rel="noopener" href="https://hexo.io/">Hexo</a>! This is your very first post. Check <a target="_blank" rel="noopener" href="https://hexo.io/docs/">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a target="_blank" rel="noopener" href="https://hexo.io/docs/troubleshooting.html">troubleshooting</a> or you can ask me on <a target="_blank" rel="noopener" href="https://github.com/hexojs/hexo/issues">GitHub</a>.
<div class="post-button">
<a class="btn" href="/2022/05/02/hello-world2/#more" rel="contents">
阅读全文 &raquo;
</a>
</div>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
{{ end }}

View File

@ -0,0 +1,14 @@
<div class="copyright">
&copy;
<span itemprop="copyrightYear">2022</span>
<span class="with-love">
<i class="fa fa-heart"></i>
</span>
<span class="author" itemprop="copyrightHolder">John Doe</span>
</div>
<div class="powered-by">
<a href="https://hexo.io/" rel="noopener" target="_blank">Hexo</a> &
<a href="https://theme-next.js.org/" rel="noopener" target="_blank">NexT.Gemini
</a>
强力驱动
</div>

View File

@ -0,0 +1,28 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="generator" content="Hugo v{{ hugo.Version }}">
<meta property="og:type" content="website">
<meta property="og:title" content="Hugo">
<meta property="og:url" content="http://example.com/index.html">
<meta property="og:site_name" content="Hugo">
<meta property="og:locale" content="zh_CN">
<meta property="article:author" content="John Doe">
<link rel="canonical" href="{{ .Site.BaseURL }}">
<link rel="shortcut icon" type="image/x-icon" href="/imgs/icons/favicon.ico">
<link rel="icon" type="image/x-icon" href="/imgs/icons/favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="/imgs/icons/favicon-16x16-next.png">
<link rel="icon" type="image/png" sizes="32x32" href="/imgs/icons/favicon-32x32-next.png">
<link rel="apple-touch-icon" sizes="180x180" href="/imgs/icons/apple-touch-icon-next.png">
<link rel="stylesheet" href="/css/main.css">
{{ $style := resources.Get "css/style.css" | resources.ExecuteAsTemplate "css/style.css" . -}}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.1/css/all.min.css" integrity="sha256-DfWjNxDkM94fVBWx1H5BMMp0Zq7luBlV8QRcSES7s+0=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/animate.css@3.1.1/animate.min.css" integrity="sha256-PR7ttpcvz8qrF57fur/yAx1qXMFJeJFiA6pSzWi0OIE=" crossorigin="anonymous">
<title>{{ .Site.Title }}</title>
</head>

View File

@ -0,0 +1,110 @@
<div class="header-inner">
<div class="site-brand-container">
<div class="site-nav-toggle">
<div class="toggle" aria-label="切换导航栏" role="button">
<span class="toggle-line"></span>
<span class="toggle-line"></span>
<span class="toggle-line"></span>
</div>
</div>
<div class="site-meta">
<a href="/" class="brand" rel="start">
<i class="logo-line"></i>
<h1 class="site-title">Hexo</h1>
<i class="logo-line"></i>
</a>
<p class="site-subtitle" itemprop="description">Find the hexo</p>
</div>
<div class="site-nav-right">
<div class="toggle popup-trigger">
</div>
</div>
</div>
<nav class="site-nav">
{{ partial "partials/menus.html" . }}
</nav>
</div>
<div class="toggle sidebar-toggle" role="button">
<span class="toggle-line"></span>
<span class="toggle-line"></span>
<span class="toggle-line"></span>
</div>
<aside class="sidebar">
<div class="sidebar-inner sidebar-overview-active">
<ul class="sidebar-nav">
<li class="sidebar-nav-toc">
文章目录
</li>
<li class="sidebar-nav-overview">
站点概览
</li>
</ul>
<div class="sidebar-panel-container">
<div class="post-toc-wrap sidebar-panel">
</div>
<div class="site-overview-wrap sidebar-panel">
<div class="site-author site-overview-item animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
<img class="site-author-image" itemprop="image" alt="John Doe" src="/imgs/icons/apple-touch-icon-next.png">
<p class="site-author-name" itemprop="name">John Doe</p>
<div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap site-overview-item animated">
<nav class="site-state">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">2</span>
<span class="site-state-item-name">日志</span>
</a>
</div>
<div class="site-state-item site-state-tags">
<span class="site-state-item-count">3</span>
<span class="site-state-item-name">标签</span>
</div>
</nav>
</div>
<div class="links-of-author site-overview-item animated">
<span class="links-of-author-item">
<a href="https://github.com/yourname" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;yourname" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
</span>
<span class="links-of-author-item">
<a href="mailto:yourname@gmail.com" title="E-Mail → mailto:yourname@gmail.com" rel="noopener" target="_blank"><i class="fa fa-envelope fa-fw"></i>E-Mail</a>
</span>
<span class="links-of-author-item">
<a href="https://weibo.com/yourname" title="Weibo → https:&#x2F;&#x2F;weibo.com&#x2F;yourname" rel="noopener" target="_blank"><i class="fab fa-weibo fa-fw"></i>Weibo</a>
</span>
<span class="links-of-author-item">
<a href="https://plus.google.com/yourname" title="Google → https:&#x2F;&#x2F;plus.google.com&#x2F;yourname" rel="noopener" target="_blank"><i class="fab fa-google fa-fw"></i>Google</a>
</span>
<span class="links-of-author-item">
<a href="https://twitter.com/yourname" title="Twitter → https:&#x2F;&#x2F;twitter.com&#x2F;yourname" rel="noopener" target="_blank"><i class="fab fa-twitter fa-fw"></i>Twitter</a>
</span>
<span class="links-of-author-item">
<a href="https://www.facebook.com/yourname" title="FB Page → https:&#x2F;&#x2F;www.facebook.com&#x2F;yourname" rel="noopener" target="_blank"><i class="fab fa-facebook fa-fw"></i>FB Page</a>
</span>
</div>
<div class="cc-license site-overview-item animated" itemprop="license">
<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh" class="cc-opacity" rel="noopener" target="_blank"><img src="https://cdn.jsdelivr.net/npm/@creativecommons/vocabulary@2020.11.3/assets/license_badges/big/by_nc_sa.svg" alt="Creative Commons"></a>
</div>
<div class="links-of-blogroll site-overview-item animated">
<div class="links-of-blogroll-title"><i class="fa fa-globe fa-fw"></i>
Links
</div>
<ul class="links-of-blogroll-list">
<li class="links-of-blogroll-item">
<a href="https://example.com/" title="https:&#x2F;&#x2F;example.com">Title</a>
</li>
<li class="links-of-blogroll-item">
<a href="https://example.com/" title="https:&#x2F;&#x2F;example.com">Title2</a>
</li>
<li class="links-of-blogroll-item">
<a href="https://example.com/" title="https:&#x2F;&#x2F;example.com">Title3</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</aside>
<div class="sidebar-dimmer"></div>

View File

@ -0,0 +1,23 @@
<ul class="main-menu menu">
<li class="menu-item menu-item-home">
<a href="/" rel="section">
<i class="fa fa-home fa-fw"></i>首页
</a>
</li>
<li class="menu-item menu-item-about">
<a href="/about/" rel="section">
<i class="fa fa-user fa-fw"></i>关于
</a>
</li>
<li class="menu-item menu-item-archives">
<a href="/archives/" rel="section">
<i class="fa fa-archive fa-fw"></i>归档
</a>
</li>
<li class="menu-item menu-item-commonweal">
<a href="/404/" rel="section">
<i class="fa fa-heartbeat fa-fw"></i>公益 404
</a>
</li>
</ul>

View File

@ -0,0 +1,5 @@
<span class="page-number current">1</span>
<a class="page-number" href="/page/2/">2</a>
<a class="extend next" rel="next" href="/page/2/">
<i class="fa fa-angle-right" aria-label="下一页"></i>
</a>

2825
static/css/main.css Normal file

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 549 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 843 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB