Site updated: 2024-06-02 16:17:31
This commit is contained in:
parent
3b0b3c525c
commit
3c90e68bef
205
2024/05/21/hello-world/index.html
Normal file
205
2024/05/21/hello-world/index.html
Normal file
|
@ -0,0 +1,205 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
|
||||||
|
|
||||||
|
<title>Hello World | Hexo</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
|
<meta name="description" content="Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick">
|
||||||
|
<meta property="og:type" content="article">
|
||||||
|
<meta property="og:title" content="Hello World">
|
||||||
|
<meta property="og:url" content="http://example.com/2024/05/21/hello-world/index.html">
|
||||||
|
<meta property="og:site_name" content="Hexo">
|
||||||
|
<meta property="og:description" content="Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick">
|
||||||
|
<meta property="og:locale" content="en_US">
|
||||||
|
<meta property="article:published_time" content="2024-05-21T14:13:21.778Z">
|
||||||
|
<meta property="article:modified_time" content="2024-05-21T14:13:21.778Z">
|
||||||
|
<meta property="article:author" content="John Doe">
|
||||||
|
<meta name="twitter:card" content="summary">
|
||||||
|
|
||||||
|
<link rel="alternate" href="/atom.xml" title="Hexo" type="application/atom+xml">
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="shortcut icon" href="/favicon.png">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/css/style.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/fancybox/jquery.fancybox.min.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<meta name="generator" content="Hexo 7.2.0"></head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="container">
|
||||||
|
<div id="wrap">
|
||||||
|
<header id="header">
|
||||||
|
<div id="banner"></div>
|
||||||
|
<div id="header-outer" class="outer">
|
||||||
|
<div id="header-title" class="inner">
|
||||||
|
<h1 id="logo-wrap">
|
||||||
|
<a href="/" id="logo">Hexo</a>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div id="header-inner" class="inner">
|
||||||
|
<nav id="main-nav">
|
||||||
|
<a id="main-nav-toggle" class="nav-icon"><span class="fa fa-bars"></span></a>
|
||||||
|
|
||||||
|
<a class="main-nav-link" href="/">Home</a>
|
||||||
|
|
||||||
|
<a class="main-nav-link" href="/archives">Archives</a>
|
||||||
|
|
||||||
|
</nav>
|
||||||
|
<nav id="sub-nav">
|
||||||
|
|
||||||
|
|
||||||
|
<a class="nav-icon" href="/atom.xml" title="RSS Feed"><span class="fa fa-rss"></span></a>
|
||||||
|
|
||||||
|
<a class="nav-icon nav-search-btn" title="Search"><span class="fa fa-search"></span></a>
|
||||||
|
</nav>
|
||||||
|
<div id="search-form-wrap">
|
||||||
|
<form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit"></button><input type="hidden" name="sitesearch" value="http://example.com"></form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="outer">
|
||||||
|
<section id="main"><article id="post-hello-world" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
|
||||||
|
<div class="article-meta">
|
||||||
|
<a href="/2024/05/21/hello-world/" class="article-date">
|
||||||
|
<time class="dt-published" datetime="2024-05-21T14:13:21.778Z" itemprop="datePublished">2024-05-21</time>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="article-inner">
|
||||||
|
|
||||||
|
|
||||||
|
<header class="article-header">
|
||||||
|
|
||||||
|
|
||||||
|
<h1 class="p-name article-title" itemprop="headline name">
|
||||||
|
Hello World
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="e-content article-entry" itemprop="articleBody">
|
||||||
|
|
||||||
|
<p>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>.</p>
|
||||||
|
<h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">"My New Post"</span></span><br></pre></td></tr></table></figure>
|
||||||
|
|
||||||
|
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/writing.html">Writing</a></p>
|
||||||
|
<h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure>
|
||||||
|
|
||||||
|
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/server.html">Server</a></p>
|
||||||
|
<h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure>
|
||||||
|
|
||||||
|
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/generating.html">Generating</a></p>
|
||||||
|
<h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure>
|
||||||
|
|
||||||
|
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/one-command-deployment.html">Deployment</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<footer class="article-footer">
|
||||||
|
<a data-url="http://example.com/2024/05/21/hello-world/" data-id="clwx9gyl80000a8n9cl5xb1d9" data-title="Hello World" class="article-share-link"><span class="fa fa-share">Share</span></a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<aside id="sidebar">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="widget-wrap">
|
||||||
|
<h3 class="widget-title">Archives</h3>
|
||||||
|
<div class="widget">
|
||||||
|
<ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2024/05/">May 2024</a></li></ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="widget-wrap">
|
||||||
|
<h3 class="widget-title">Recent Posts</h3>
|
||||||
|
<div class="widget">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<a href="/2024/05/21/hello-world/">Hello World</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<footer id="footer">
|
||||||
|
|
||||||
|
<div class="outer">
|
||||||
|
<div id="footer-info" class="inner">
|
||||||
|
|
||||||
|
© 2024 John Doe<br>
|
||||||
|
Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<nav id="mobile-nav">
|
||||||
|
|
||||||
|
<a href="/" class="mobile-nav-link">Home</a>
|
||||||
|
|
||||||
|
<a href="/archives" class="mobile-nav-link">Archives</a>
|
||||||
|
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script src="/js/jquery-3.6.4.min.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script src="/fancybox/jquery.fancybox.min.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script src="/js/script.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
185
archives/2024/05/index.html
Normal file
185
archives/2024/05/index.html
Normal file
|
@ -0,0 +1,185 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
|
||||||
|
|
||||||
|
<title>Archives: 2024/5 | Hexo</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
<meta property="og:title" content="Hexo">
|
||||||
|
<meta property="og:url" content="http://example.com/archives/2024/05/index.html">
|
||||||
|
<meta property="og:site_name" content="Hexo">
|
||||||
|
<meta property="og:locale" content="en_US">
|
||||||
|
<meta property="article:author" content="John Doe">
|
||||||
|
<meta name="twitter:card" content="summary">
|
||||||
|
|
||||||
|
<link rel="alternate" href="/atom.xml" title="Hexo" type="application/atom+xml">
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="shortcut icon" href="/favicon.png">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/css/style.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/fancybox/jquery.fancybox.min.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<meta name="generator" content="Hexo 7.2.0"></head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="container">
|
||||||
|
<div id="wrap">
|
||||||
|
<header id="header">
|
||||||
|
<div id="banner"></div>
|
||||||
|
<div id="header-outer" class="outer">
|
||||||
|
<div id="header-title" class="inner">
|
||||||
|
<h1 id="logo-wrap">
|
||||||
|
<a href="/" id="logo">Hexo</a>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div id="header-inner" class="inner">
|
||||||
|
<nav id="main-nav">
|
||||||
|
<a id="main-nav-toggle" class="nav-icon"><span class="fa fa-bars"></span></a>
|
||||||
|
|
||||||
|
<a class="main-nav-link" href="/">Home</a>
|
||||||
|
|
||||||
|
<a class="main-nav-link" href="/archives">Archives</a>
|
||||||
|
|
||||||
|
</nav>
|
||||||
|
<nav id="sub-nav">
|
||||||
|
|
||||||
|
|
||||||
|
<a class="nav-icon" href="/atom.xml" title="RSS Feed"><span class="fa fa-rss"></span></a>
|
||||||
|
|
||||||
|
<a class="nav-icon nav-search-btn" title="Search"><span class="fa fa-search"></span></a>
|
||||||
|
</nav>
|
||||||
|
<div id="search-form-wrap">
|
||||||
|
<form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit"></button><input type="hidden" name="sitesearch" value="http://example.com"></form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="outer">
|
||||||
|
<section id="main">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section class="archives-wrap">
|
||||||
|
<div class="archive-year-wrap">
|
||||||
|
<a href="/archives/2024" class="archive-year">2024</a>
|
||||||
|
</div>
|
||||||
|
<div class="archives">
|
||||||
|
|
||||||
|
<article class="archive-article archive-type-post">
|
||||||
|
<div class="archive-article-inner">
|
||||||
|
<header class="archive-article-header">
|
||||||
|
<a href="/2024/05/21/hello-world/" class="archive-article-date">
|
||||||
|
<time class="dt-published" datetime="2024-05-21T14:13:21.778Z" itemprop="datePublished">May 21</time>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
<h1 itemprop="name">
|
||||||
|
<a class="archive-article-title" href="/2024/05/21/hello-world/">Hello World</a>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
|
||||||
|
</header>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
|
||||||
|
</div></section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<aside id="sidebar">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="widget-wrap">
|
||||||
|
<h3 class="widget-title">Archives</h3>
|
||||||
|
<div class="widget">
|
||||||
|
<ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2024/05/">May 2024</a></li></ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="widget-wrap">
|
||||||
|
<h3 class="widget-title">Recent Posts</h3>
|
||||||
|
<div class="widget">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<a href="/2024/05/21/hello-world/">Hello World</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<footer id="footer">
|
||||||
|
|
||||||
|
<div class="outer">
|
||||||
|
<div id="footer-info" class="inner">
|
||||||
|
|
||||||
|
© 2024 John Doe<br>
|
||||||
|
Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<nav id="mobile-nav">
|
||||||
|
|
||||||
|
<a href="/" class="mobile-nav-link">Home</a>
|
||||||
|
|
||||||
|
<a href="/archives" class="mobile-nav-link">Archives</a>
|
||||||
|
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script src="/js/jquery-3.6.4.min.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script src="/fancybox/jquery.fancybox.min.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script src="/js/script.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
185
archives/2024/index.html
Normal file
185
archives/2024/index.html
Normal file
|
@ -0,0 +1,185 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
|
||||||
|
|
||||||
|
<title>Archives: 2024 | Hexo</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
<meta property="og:title" content="Hexo">
|
||||||
|
<meta property="og:url" content="http://example.com/archives/2024/index.html">
|
||||||
|
<meta property="og:site_name" content="Hexo">
|
||||||
|
<meta property="og:locale" content="en_US">
|
||||||
|
<meta property="article:author" content="John Doe">
|
||||||
|
<meta name="twitter:card" content="summary">
|
||||||
|
|
||||||
|
<link rel="alternate" href="/atom.xml" title="Hexo" type="application/atom+xml">
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="shortcut icon" href="/favicon.png">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/css/style.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/fancybox/jquery.fancybox.min.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<meta name="generator" content="Hexo 7.2.0"></head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="container">
|
||||||
|
<div id="wrap">
|
||||||
|
<header id="header">
|
||||||
|
<div id="banner"></div>
|
||||||
|
<div id="header-outer" class="outer">
|
||||||
|
<div id="header-title" class="inner">
|
||||||
|
<h1 id="logo-wrap">
|
||||||
|
<a href="/" id="logo">Hexo</a>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div id="header-inner" class="inner">
|
||||||
|
<nav id="main-nav">
|
||||||
|
<a id="main-nav-toggle" class="nav-icon"><span class="fa fa-bars"></span></a>
|
||||||
|
|
||||||
|
<a class="main-nav-link" href="/">Home</a>
|
||||||
|
|
||||||
|
<a class="main-nav-link" href="/archives">Archives</a>
|
||||||
|
|
||||||
|
</nav>
|
||||||
|
<nav id="sub-nav">
|
||||||
|
|
||||||
|
|
||||||
|
<a class="nav-icon" href="/atom.xml" title="RSS Feed"><span class="fa fa-rss"></span></a>
|
||||||
|
|
||||||
|
<a class="nav-icon nav-search-btn" title="Search"><span class="fa fa-search"></span></a>
|
||||||
|
</nav>
|
||||||
|
<div id="search-form-wrap">
|
||||||
|
<form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit"></button><input type="hidden" name="sitesearch" value="http://example.com"></form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="outer">
|
||||||
|
<section id="main">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section class="archives-wrap">
|
||||||
|
<div class="archive-year-wrap">
|
||||||
|
<a href="/archives/2024" class="archive-year">2024</a>
|
||||||
|
</div>
|
||||||
|
<div class="archives">
|
||||||
|
|
||||||
|
<article class="archive-article archive-type-post">
|
||||||
|
<div class="archive-article-inner">
|
||||||
|
<header class="archive-article-header">
|
||||||
|
<a href="/2024/05/21/hello-world/" class="archive-article-date">
|
||||||
|
<time class="dt-published" datetime="2024-05-21T14:13:21.778Z" itemprop="datePublished">May 21</time>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
<h1 itemprop="name">
|
||||||
|
<a class="archive-article-title" href="/2024/05/21/hello-world/">Hello World</a>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
|
||||||
|
</header>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
|
||||||
|
</div></section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<aside id="sidebar">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="widget-wrap">
|
||||||
|
<h3 class="widget-title">Archives</h3>
|
||||||
|
<div class="widget">
|
||||||
|
<ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2024/05/">May 2024</a></li></ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="widget-wrap">
|
||||||
|
<h3 class="widget-title">Recent Posts</h3>
|
||||||
|
<div class="widget">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<a href="/2024/05/21/hello-world/">Hello World</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<footer id="footer">
|
||||||
|
|
||||||
|
<div class="outer">
|
||||||
|
<div id="footer-info" class="inner">
|
||||||
|
|
||||||
|
© 2024 John Doe<br>
|
||||||
|
Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<nav id="mobile-nav">
|
||||||
|
|
||||||
|
<a href="/" class="mobile-nav-link">Home</a>
|
||||||
|
|
||||||
|
<a href="/archives" class="mobile-nav-link">Archives</a>
|
||||||
|
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script src="/js/jquery-3.6.4.min.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script src="/fancybox/jquery.fancybox.min.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script src="/js/script.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
185
archives/index.html
Normal file
185
archives/index.html
Normal file
|
@ -0,0 +1,185 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
|
||||||
|
|
||||||
|
<title>Archives | Hexo</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
<meta property="og:title" content="Hexo">
|
||||||
|
<meta property="og:url" content="http://example.com/archives/index.html">
|
||||||
|
<meta property="og:site_name" content="Hexo">
|
||||||
|
<meta property="og:locale" content="en_US">
|
||||||
|
<meta property="article:author" content="John Doe">
|
||||||
|
<meta name="twitter:card" content="summary">
|
||||||
|
|
||||||
|
<link rel="alternate" href="/atom.xml" title="Hexo" type="application/atom+xml">
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="shortcut icon" href="/favicon.png">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/css/style.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/fancybox/jquery.fancybox.min.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<meta name="generator" content="Hexo 7.2.0"></head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="container">
|
||||||
|
<div id="wrap">
|
||||||
|
<header id="header">
|
||||||
|
<div id="banner"></div>
|
||||||
|
<div id="header-outer" class="outer">
|
||||||
|
<div id="header-title" class="inner">
|
||||||
|
<h1 id="logo-wrap">
|
||||||
|
<a href="/" id="logo">Hexo</a>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div id="header-inner" class="inner">
|
||||||
|
<nav id="main-nav">
|
||||||
|
<a id="main-nav-toggle" class="nav-icon"><span class="fa fa-bars"></span></a>
|
||||||
|
|
||||||
|
<a class="main-nav-link" href="/">Home</a>
|
||||||
|
|
||||||
|
<a class="main-nav-link" href="/archives">Archives</a>
|
||||||
|
|
||||||
|
</nav>
|
||||||
|
<nav id="sub-nav">
|
||||||
|
|
||||||
|
|
||||||
|
<a class="nav-icon" href="/atom.xml" title="RSS Feed"><span class="fa fa-rss"></span></a>
|
||||||
|
|
||||||
|
<a class="nav-icon nav-search-btn" title="Search"><span class="fa fa-search"></span></a>
|
||||||
|
</nav>
|
||||||
|
<div id="search-form-wrap">
|
||||||
|
<form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit"></button><input type="hidden" name="sitesearch" value="http://example.com"></form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="outer">
|
||||||
|
<section id="main">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section class="archives-wrap">
|
||||||
|
<div class="archive-year-wrap">
|
||||||
|
<a href="/archives/2024" class="archive-year">2024</a>
|
||||||
|
</div>
|
||||||
|
<div class="archives">
|
||||||
|
|
||||||
|
<article class="archive-article archive-type-post">
|
||||||
|
<div class="archive-article-inner">
|
||||||
|
<header class="archive-article-header">
|
||||||
|
<a href="/2024/05/21/hello-world/" class="archive-article-date">
|
||||||
|
<time class="dt-published" datetime="2024-05-21T14:13:21.778Z" itemprop="datePublished">May 21</time>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
<h1 itemprop="name">
|
||||||
|
<a class="archive-article-title" href="/2024/05/21/hello-world/">Hello World</a>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
|
||||||
|
</header>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
|
||||||
|
</div></section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<aside id="sidebar">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="widget-wrap">
|
||||||
|
<h3 class="widget-title">Archives</h3>
|
||||||
|
<div class="widget">
|
||||||
|
<ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2024/05/">May 2024</a></li></ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="widget-wrap">
|
||||||
|
<h3 class="widget-title">Recent Posts</h3>
|
||||||
|
<div class="widget">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<a href="/2024/05/21/hello-world/">Hello World</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<footer id="footer">
|
||||||
|
|
||||||
|
<div class="outer">
|
||||||
|
<div id="footer-info" class="inner">
|
||||||
|
|
||||||
|
© 2024 John Doe<br>
|
||||||
|
Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<nav id="mobile-nav">
|
||||||
|
|
||||||
|
<a href="/" class="mobile-nav-link">Home</a>
|
||||||
|
|
||||||
|
<a href="/archives" class="mobile-nav-link">Archives</a>
|
||||||
|
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script src="/js/jquery-3.6.4.min.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script src="/fancybox/jquery.fancybox.min.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script src="/js/script.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
BIN
css/images/banner.jpg
Normal file
BIN
css/images/banner.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 219 KiB |
1346
css/style.css
Normal file
1346
css/style.css
Normal file
File diff suppressed because it is too large
Load Diff
1
fancybox/jquery.fancybox.min.css
vendored
Normal file
1
fancybox/jquery.fancybox.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
13
fancybox/jquery.fancybox.min.js
vendored
Normal file
13
fancybox/jquery.fancybox.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
205
index.html
Normal file
205
index.html
Normal file
|
@ -0,0 +1,205 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
|
||||||
|
|
||||||
|
<title>Hexo</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
<meta property="og:title" content="Hexo">
|
||||||
|
<meta property="og:url" content="http://example.com/index.html">
|
||||||
|
<meta property="og:site_name" content="Hexo">
|
||||||
|
<meta property="og:locale" content="en_US">
|
||||||
|
<meta property="article:author" content="John Doe">
|
||||||
|
<meta name="twitter:card" content="summary">
|
||||||
|
|
||||||
|
<link rel="alternate" href="/atom.xml" title="Hexo" type="application/atom+xml">
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="shortcut icon" href="/favicon.png">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/css/style.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/fancybox/jquery.fancybox.min.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<meta name="generator" content="Hexo 7.2.0"></head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="container">
|
||||||
|
<div id="wrap">
|
||||||
|
<header id="header">
|
||||||
|
<div id="banner"></div>
|
||||||
|
<div id="header-outer" class="outer">
|
||||||
|
<div id="header-title" class="inner">
|
||||||
|
<h1 id="logo-wrap">
|
||||||
|
<a href="/" id="logo">Hexo</a>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div id="header-inner" class="inner">
|
||||||
|
<nav id="main-nav">
|
||||||
|
<a id="main-nav-toggle" class="nav-icon"><span class="fa fa-bars"></span></a>
|
||||||
|
|
||||||
|
<a class="main-nav-link" href="/">Home</a>
|
||||||
|
|
||||||
|
<a class="main-nav-link" href="/archives">Archives</a>
|
||||||
|
|
||||||
|
</nav>
|
||||||
|
<nav id="sub-nav">
|
||||||
|
|
||||||
|
|
||||||
|
<a class="nav-icon" href="/atom.xml" title="RSS Feed"><span class="fa fa-rss"></span></a>
|
||||||
|
|
||||||
|
<a class="nav-icon nav-search-btn" title="Search"><span class="fa fa-search"></span></a>
|
||||||
|
</nav>
|
||||||
|
<div id="search-form-wrap">
|
||||||
|
<form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit"></button><input type="hidden" name="sitesearch" value="http://example.com"></form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="outer">
|
||||||
|
<section id="main">
|
||||||
|
|
||||||
|
<article id="post-hello-world" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
|
||||||
|
<div class="article-meta">
|
||||||
|
<a href="/2024/05/21/hello-world/" class="article-date">
|
||||||
|
<time class="dt-published" datetime="2024-05-21T14:13:21.778Z" itemprop="datePublished">2024-05-21</time>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="article-inner">
|
||||||
|
|
||||||
|
|
||||||
|
<header class="article-header">
|
||||||
|
|
||||||
|
|
||||||
|
<h1 itemprop="name">
|
||||||
|
<a class="p-name article-title" href="/2024/05/21/hello-world/">Hello World</a>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="e-content article-entry" itemprop="articleBody">
|
||||||
|
|
||||||
|
<p>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>.</p>
|
||||||
|
<h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">"My New Post"</span></span><br></pre></td></tr></table></figure>
|
||||||
|
|
||||||
|
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/writing.html">Writing</a></p>
|
||||||
|
<h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure>
|
||||||
|
|
||||||
|
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/server.html">Server</a></p>
|
||||||
|
<h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure>
|
||||||
|
|
||||||
|
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/generating.html">Generating</a></p>
|
||||||
|
<h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure>
|
||||||
|
|
||||||
|
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/one-command-deployment.html">Deployment</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<footer class="article-footer">
|
||||||
|
<a data-url="http://example.com/2024/05/21/hello-world/" data-id="clwx9gyl80000a8n9cl5xb1d9" data-title="Hello World" class="article-share-link"><span class="fa fa-share">Share</span></a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<aside id="sidebar">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="widget-wrap">
|
||||||
|
<h3 class="widget-title">Archives</h3>
|
||||||
|
<div class="widget">
|
||||||
|
<ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2024/05/">May 2024</a></li></ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="widget-wrap">
|
||||||
|
<h3 class="widget-title">Recent Posts</h3>
|
||||||
|
<div class="widget">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<a href="/2024/05/21/hello-world/">Hello World</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<footer id="footer">
|
||||||
|
|
||||||
|
<div class="outer">
|
||||||
|
<div id="footer-info" class="inner">
|
||||||
|
|
||||||
|
© 2024 John Doe<br>
|
||||||
|
Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<nav id="mobile-nav">
|
||||||
|
|
||||||
|
<a href="/" class="mobile-nav-link">Home</a>
|
||||||
|
|
||||||
|
<a href="/archives" class="mobile-nav-link">Archives</a>
|
||||||
|
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script src="/js/jquery-3.6.4.min.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script src="/fancybox/jquery.fancybox.min.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script src="/js/script.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
2
js/jquery-3.6.4.min.js
vendored
Normal file
2
js/jquery-3.6.4.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
138
js/script.js
Normal file
138
js/script.js
Normal file
|
@ -0,0 +1,138 @@
|
||||||
|
(function($){
|
||||||
|
// Search
|
||||||
|
var $searchWrap = $('#search-form-wrap'),
|
||||||
|
isSearchAnim = false,
|
||||||
|
searchAnimDuration = 200;
|
||||||
|
|
||||||
|
var startSearchAnim = function(){
|
||||||
|
isSearchAnim = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
var stopSearchAnim = function(callback){
|
||||||
|
setTimeout(function(){
|
||||||
|
isSearchAnim = false;
|
||||||
|
callback && callback();
|
||||||
|
}, searchAnimDuration);
|
||||||
|
};
|
||||||
|
|
||||||
|
$('.nav-search-btn').on('click', function(){
|
||||||
|
if (isSearchAnim) return;
|
||||||
|
|
||||||
|
startSearchAnim();
|
||||||
|
$searchWrap.addClass('on');
|
||||||
|
stopSearchAnim(function(){
|
||||||
|
$('.search-form-input').focus();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$('.search-form-input').on('blur', function(){
|
||||||
|
startSearchAnim();
|
||||||
|
$searchWrap.removeClass('on');
|
||||||
|
stopSearchAnim();
|
||||||
|
});
|
||||||
|
|
||||||
|
// Share
|
||||||
|
$('body').on('click', function(){
|
||||||
|
$('.article-share-box.on').removeClass('on');
|
||||||
|
}).on('click', '.article-share-link', function(e){
|
||||||
|
e.stopPropagation();
|
||||||
|
|
||||||
|
var $this = $(this),
|
||||||
|
url = $this.attr('data-url'),
|
||||||
|
encodedUrl = encodeURIComponent(url),
|
||||||
|
id = 'article-share-box-' + $this.attr('data-id'),
|
||||||
|
title = $this.attr('data-title'),
|
||||||
|
offset = $this.offset();
|
||||||
|
|
||||||
|
if ($('#' + id).length){
|
||||||
|
var box = $('#' + id);
|
||||||
|
|
||||||
|
if (box.hasClass('on')){
|
||||||
|
box.removeClass('on');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
var html = [
|
||||||
|
'<div id="' + id + '" class="article-share-box">',
|
||||||
|
'<input class="article-share-input" value="' + url + '">',
|
||||||
|
'<div class="article-share-links">',
|
||||||
|
'<a href="https://twitter.com/intent/tweet?text=' + encodeURIComponent(title) + '&url=' + encodedUrl + '" class="article-share-twitter" target="_blank" title="Twitter"><span class="fa fa-twitter"></span></a>',
|
||||||
|
'<a href="https://www.facebook.com/sharer.php?u=' + encodedUrl + '" class="article-share-facebook" target="_blank" title="Facebook"><span class="fa fa-facebook"></span></a>',
|
||||||
|
'<a href="http://pinterest.com/pin/create/button/?url=' + encodedUrl + '" class="article-share-pinterest" target="_blank" title="Pinterest"><span class="fa fa-pinterest"></span></a>',
|
||||||
|
'<a href="https://www.linkedin.com/shareArticle?mini=true&url=' + encodedUrl + '" class="article-share-linkedin" target="_blank" title="LinkedIn"><span class="fa fa-linkedin"></span></a>',
|
||||||
|
'</div>',
|
||||||
|
'</div>'
|
||||||
|
].join('');
|
||||||
|
|
||||||
|
var box = $(html);
|
||||||
|
|
||||||
|
$('body').append(box);
|
||||||
|
}
|
||||||
|
|
||||||
|
$('.article-share-box.on').hide();
|
||||||
|
|
||||||
|
box.css({
|
||||||
|
top: offset.top + 25,
|
||||||
|
left: offset.left
|
||||||
|
}).addClass('on');
|
||||||
|
}).on('click', '.article-share-box', function(e){
|
||||||
|
e.stopPropagation();
|
||||||
|
}).on('click', '.article-share-box-input', function(){
|
||||||
|
$(this).select();
|
||||||
|
}).on('click', '.article-share-box-link', function(e){
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
|
||||||
|
window.open(this.href, 'article-share-box-window-' + Date.now(), 'width=500,height=450');
|
||||||
|
});
|
||||||
|
|
||||||
|
// Caption
|
||||||
|
$('.article-entry').each(function(i){
|
||||||
|
$(this).find('img').each(function(){
|
||||||
|
if ($(this).parent().hasClass('fancybox') || $(this).parent().is('a')) return;
|
||||||
|
|
||||||
|
var alt = this.alt;
|
||||||
|
|
||||||
|
if (alt) $(this).after('<span class="caption">' + alt + '</span>');
|
||||||
|
|
||||||
|
$(this).wrap('<a href="' + this.src + '" data-fancybox=\"gallery\" data-caption="' + alt + '"></a>')
|
||||||
|
});
|
||||||
|
|
||||||
|
$(this).find('.fancybox').each(function(){
|
||||||
|
$(this).attr('rel', 'article' + i);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
if ($.fancybox){
|
||||||
|
$('.fancybox').fancybox();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Mobile nav
|
||||||
|
var $container = $('#container'),
|
||||||
|
isMobileNavAnim = false,
|
||||||
|
mobileNavAnimDuration = 200;
|
||||||
|
|
||||||
|
var startMobileNavAnim = function(){
|
||||||
|
isMobileNavAnim = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
var stopMobileNavAnim = function(){
|
||||||
|
setTimeout(function(){
|
||||||
|
isMobileNavAnim = false;
|
||||||
|
}, mobileNavAnimDuration);
|
||||||
|
}
|
||||||
|
|
||||||
|
$('#main-nav-toggle').on('click', function(){
|
||||||
|
if (isMobileNavAnim) return;
|
||||||
|
|
||||||
|
startMobileNavAnim();
|
||||||
|
$container.toggleClass('mobile-nav-on');
|
||||||
|
stopMobileNavAnim();
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#wrap').on('click', function(){
|
||||||
|
if (isMobileNavAnim || !$container.hasClass('mobile-nav-on')) return;
|
||||||
|
|
||||||
|
$container.removeClass('mobile-nav-on');
|
||||||
|
});
|
||||||
|
})(jQuery);
|
Loading…
Reference in New Issue
Block a user