CINXE.COM
一款非常漂亮的Hexo主题 转换为Hugo - 中文 - HUGO
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>一款非常漂亮的Hexo主题 转换为Hugo - 中文 - HUGO</title> <meta name="description" content="Yelee, 一款非常漂亮的Hexo主题迁移到Hugo, 没有js功底,大家能帮忙看下嘛?非常感谢"> <meta name="generator" content="Discourse 3.4.0.beta3-dev - https://github.com/discourse/discourse version 5bf5d1335680f28a8eb65c488353be9585eed08e"> <link rel="icon" type="image/png" href="https://global.discourse-cdn.com/flex036/uploads/gohugo/optimized/2X/6/66a05218f64425b2fa59ede30c1b4b7dc1fdf5f9_2_32x32.ico"> <link rel="apple-touch-icon" type="image/png" href="https://global.discourse-cdn.com/flex036/uploads/gohugo/optimized/2X/c/c2d3414c64e766d814100b32063948e604298a70_2_180x180.png"> <meta name="theme-color" media="all" content="#0a1922"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=yes, viewport-fit=cover"> <link rel="canonical" href="https://discourse.gohugo.io/t/hexo-hugo/12472" /> <link rel="search" type="application/opensearchdescription+xml" href="https://discourse.gohugo.io/opensearch.xml" title="HUGO Search"> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/color_definitions_hugo-light_1_3_09733212c5bcbf3d2262e9135364889a94410a8e.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" class="light-scheme"/> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/desktop_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="desktop" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/checklist_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="checklist" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-adplugin_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-adplugin" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-ai_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-ai" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-akismet_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-akismet" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-cakeday_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-cakeday" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-details_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-details" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-lazy-videos_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-lazy-videos" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-local-dates_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-local-dates" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-narrative-bot_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-narrative-bot" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-presence_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-presence" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-solved_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-solved" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/footnote_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="footnote" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/hosted-site_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="hosted-site" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/poll_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="poll" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/spoiler-alert_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="spoiler-alert" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-ai_desktop_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-ai_desktop" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/poll_desktop_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="poll_desktop" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/desktop_theme_2_554e2f649b5332218939d027878568e9fb5cb3e9.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="2" data-theme-name="custom header links"/> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/desktop_theme_3_ba320989966c049743dec43ab8cc84324bf2a254.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="3" data-theme-name="hugo light"/> <meta id="data-ga-universal-analytics" data-tracking-code="UA-7131036-7" data-json="{"cookieDomain":"auto"}" data-auto-link-domains=""> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-7131036-7" nonce="YX0e9CixIi0D8lqFT2DAx6IUL"></script> <script defer src="https://global.discourse-cdn.com/flex036/assets/google-universal-analytics-v4-e154af4adb3c483a3aba7f9a7229b8881cdc5cf369290923d965a2ad30163ae8.gz.js" data-discourse-entrypoint="google-universal-analytics-v4" nonce="YX0e9CixIi0D8lqFT2DAx6IUL"></script> <link rel="alternate nofollow" type="application/rss+xml" title="RSS feed of '一款非常漂亮的Hexo主题 转换为Hugo'" href="https://discourse.gohugo.io/t/hexo-hugo/12472.rss" /> <meta property="og:site_name" content="HUGO" /> <meta property="og:type" content="website" /> <meta name="twitter:card" content="summary" /> <meta name="twitter:image" content="https://global.discourse-cdn.com/flex036/uploads/gohugo/original/2X/b/b91c8ab3a3c1c8679127cf049b46fa919e9e0e5c.png" /> <meta property="og:image" content="https://global.discourse-cdn.com/flex036/uploads/gohugo/original/2X/b/b91c8ab3a3c1c8679127cf049b46fa919e9e0e5c.png" /> <meta property="og:url" content="https://discourse.gohugo.io/t/hexo-hugo/12472" /> <meta name="twitter:url" content="https://discourse.gohugo.io/t/hexo-hugo/12472" /> <meta property="og:title" content="一款非常漂亮的Hexo主题 转换为Hugo" /> <meta name="twitter:title" content="一款非常漂亮的Hexo主题 转换为Hugo" /> <meta property="og:description" content="Yelee, 一款非常漂亮的Hexo主题迁移到Hugo, 没有js功底,大家能帮忙看下嘛?非常感谢" /> <meta name="twitter:description" content="Yelee, 一款非常漂亮的Hexo主题迁移到Hugo, 没有js功底,大家能帮忙看下嘛?非常感谢" /> <meta property="og:article:section" content="中文" /> <meta property="og:article:section:color" content="F7941D" /> <meta name="twitter:label1" value="Reading time" /> <meta name="twitter:data1" value="1 mins 🕑" /> <meta name="twitter:label2" value="Likes" /> <meta name="twitter:data2" value="2 ❤" /> <meta property="article:published_time" content="2018-06-17T04:14:31+00:00" /> <meta property="og:ignore_canonical" content="true" /> <script type="application/ld+json">{"@context":"http://schema.org","@type":"QAPage","name":"一款非常漂亮的Hexo主题 转换为Hugo","mainEntity":{"@type":"Question","name":"一款非常漂亮的Hexo主题 转换为Hugo","text":"<a href=\"https://github.com/MOxFIVE/hexo-theme-yelee\" rel=\"nofollow noopener\">Yelee<\/a>, 一款非常漂亮的Hexo主题迁移到Hugo, 没有js功底,大家能帮忙看下嘛?非常感谢","upvoteCount":1,"answerCount":0,"datePublished":"2018-06-17T04:14:31.235Z","author":{"@type":"Person","name":"sanghai","url":"https://discourse.gohugo.io/u/sanghai"}}}</script> </head> <body class="crawler browser-update"> <script defer="" src="https://yyz2.discourse-cdn.com/flex036/theme-javascripts/417061e7eee24be4fb6a457975f0dce96a82d9e6.js?__ws=discourse.gohugo.io" data-theme-id="5" nonce="YX0e9CixIi0D8lqFT2DAx6IUL"></script> <header> <a href="/"> HUGO </a> </header> <div id="main-outlet" class="wrap" role="main"> <div id="topic-title"> <h1> <a href="/t/hexo-hugo/12472">一款非常漂亮的Hexo主题 转换为Hugo</a> </h1> <div class="topic-category" itemscope itemtype="http://schema.org/BreadcrumbList"> <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a href="/c/chinese/42" class="badge-wrapper bullet" itemprop="item"> <span class='badge-category-bg' style='background-color: #F7941D'></span> <span class='badge-category clear-badge'> <span class='category-name' itemprop='name'>中文</span> </span> </a> <meta itemprop="position" content="1" /> </span> </div> </div> <div itemscope itemtype='http://schema.org/DiscussionForumPosting'> <meta itemprop='headline' content='一款非常漂亮的Hexo主题 转换为Hugo'> <link itemprop='url' href='https://discourse.gohugo.io/t/hexo-hugo/12472'> <meta itemprop='datePublished' content='2018-06-17T04:14:31Z'> <meta itemprop='articleSection' content='中文'> <meta itemprop='keywords' content=''> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='HUGO'> </div> <div id='post_1' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://discourse.gohugo.io/u/sanghai'><span itemprop='name'>sanghai</span></a> </span> <link itemprop="mainEntityOfPage" href="https://discourse.gohugo.io/t/hexo-hugo/12472"> <span class="crawler-post-infos"> <time datetime='2018-06-17T04:14:31Z' class='post-time'> June 17, 2018, 4:14am </time> <meta itemprop='dateModified' content='2018-06-17T04:14:31Z'> <span itemprop='position'>1</span> </span> </div> <div class='post' itemprop='text'> <p><a href="https://github.com/MOxFIVE/hexo-theme-yelee" rel="nofollow noopener">Yelee</a>, 一款非常漂亮的Hexo主题迁移到Hugo, 没有js功底,大家能帮忙看下嘛?非常感谢</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="1" /> <span class='post-likes'>1 Like</span> </div> </div> <div id='post_3' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://discourse.gohugo.io/u/anthonyfok'><span itemprop='name'>anthonyfok</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2018-06-19T20:38:11Z' class='post-time'> June 19, 2018, 8:38pm </time> <meta itemprop='dateModified' content='2018-06-19T20:38:11Z'> <span itemprop='position'>3</span> </span> </div> <div class='post' itemprop='text'> <aside class="quote no-group" data-username="sanghai" data-post="1" data-topic="12472"> <div class="title"> <div class="quote-controls"></div> <img loading="lazy" alt="" width="24" height="24" src="https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/48.png" class="avatar"> sanghai:</div> <blockquote> <p><a href="https://github.com/MOxFIVE/hexo-theme-yelee">Yelee </a>, 一款非常漂亮的Hexo主题迁移到Hugo, 没有js功底,大家能帮忙看下嘛?非常感谢</p> </blockquote> </aside> <p><a class="mention" href="/u/sanghai">@sanghai</a> 你好!</p> <p>Yelee 主题和它的原型 Yilia 都确实很美。</p> <p>我前天看到之后,还考虑过作为试试看做这个 Hexo → Hugo 主题的迁移,顺便更深度学习两者的使用方法。</p> <p>不过,进一步检查,两个主题 <a href="https://github.com/MOxFIVE/hexo-theme-yelee" class="inline-onebox">GitHub - MOxFIVE/hexo-theme-yelee: 简而不减 Hexo 双栏博客主题; Another simple and elegant theme for Hexo.</a> 和 <a href="https://github.com/litten/hexo-theme-yilia" class="inline-onebox">GitHub - litten/hexo-theme-yilia: 一个简洁优雅的hexo主题 A simple and elegant theme for hexo.</a> 都找遍了,都没有发现他们的许可授权啊! LICENSE 文件不存在,个别文件里也没有说明 copyright 信息,为了尊重知识产权和守法,我只能望而却步……</p> <p>如果你真的、真的很想把这个主题移植到 Hugo,先决条件就是请原作者澄清他的许可授权声明。</p> <p>又或者,正如 <a class="mention" href="/u/rickcogley">@RickCogley</a> 在 “<a href="https://discourse.gohugo.io/t/a-beautiful-theme-to-hugo/12470" class="inline-onebox">A beautiful theme To hugo</a>” 所建议的,<a href="https://themes.gohugo.io/">https://themes.gohugo.io/</a> 也不乏美丽而实用的主题,不妨先好好探索一下现有的 Hugo themes。</p> <p>Good luck!</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="1" /> <span class='post-likes'>1 Like</span> </div> </div> </div> <div id="related-topics" class="more-topics__list " role="complementary" aria-labelledby="related-topics-title"> <h3 id="related-topics-title" class="more-topics__list-title"> Related topics </h3> <div class="topic-list-container" itemscope itemtype='http://schema.org/ItemList'> <meta itemprop='itemListOrder' content='http://schema.org/ItemListOrderDescending'> <table class='topic-list'> <thead> <tr> <th>Topic</th> <th></th> <th class="replies">Replies</th> <th class="views">Views</th> <th>Activity</th> </tr> </thead> <tbody> <tr class="topic-list-item" id="topic-list-item-12470"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='1'> <span class="link-top-line"> <a itemprop='url' href='https://discourse.gohugo.io/t/a-beautiful-theme-to-hugo/12470' class='title raw-link raw-topic-link'>A beautiful theme To hugo</a> </span> <div class="link-bottom-line"> <div class="discourse-tags"> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>2</span> </td> <td class="views"> <span class='views' title='views'>1284</span> </td> <td> June 18, 2018 </td> </tr> <tr class="topic-list-item" id="topic-list-item-18114"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='2'> <span class="link-top-line"> <a itemprop='url' href='https://discourse.gohugo.io/t/topic/18114' class='title raw-link raw-topic-link'>背景色や文字色の変え方</a> </span> <div class="link-bottom-line"> <a href='/c/japanese/41' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #BF1E2E'></span> <span class='badge-category clear-badge'> <span class='category-name'>日本語</span> </span> </a> <div class="discourse-tags"> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>8</span> </td> <td class="views"> <span class='views' title='views'>4062</span> </td> <td> April 15, 2019 </td> </tr> <tr class="topic-list-item" id="topic-list-item-7648"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='3'> <span class="link-top-line"> <a itemprop='url' href='https://discourse.gohugo.io/t/hugo/7648' class='title raw-link raw-topic-link'>Hugo可以建一个有图片上传功能的网站吗?</a> </span> <div class="link-bottom-line"> <a href='/c/chinese/42' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #F7941D'></span> <span class='badge-category clear-badge'> <span class='category-name'>中文</span> </span> </a> <div class="discourse-tags"> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>3</span> </td> <td class="views"> <span class='views' title='views'>3468</span> </td> <td> March 9, 2022 </td> </tr> <tr class="topic-list-item" id="topic-list-item-46305"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='4'> <span class="link-top-line"> <a itemprop='url' href='https://discourse.gohugo.io/t/hugo-wiki/46305' class='title raw-link raw-topic-link'>一种使 Hugo 可以正确渲染类 wiki 链接、图片的方式</a> </span> <div class="link-bottom-line"> <a href='/c/chinese/42' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #F7941D'></span> <span class='badge-category clear-badge'> <span class='category-name'>中文</span> </span> </a> <div class="discourse-tags"> <a href='https://discourse.gohugo.io/tag/modules' class='discourse-tag'>modules</a> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>5</span> </td> <td class="views"> <span class='views' title='views'>883</span> </td> <td> May 7, 2024 </td> </tr> <tr class="topic-list-item" id="topic-list-item-30824"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='5'> <span class="link-top-line"> <a itemprop='url' href='https://discourse.gohugo.io/t/clone-the-next-theme-from-hexo-engine-hope-it-can-be-include-to-official-list/30824' class='title raw-link raw-topic-link'>Clone the Next theme from Hexo engine & hope it can be include to official list</a> </span> <div class="link-bottom-line"> <a href='/c/showcases/44' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #25AAE2'></span> <span class='badge-category clear-badge'> <span class='category-name'>Showcases</span> </span> </a> <div class="discourse-tags"> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>9</span> </td> <td class="views"> <span class='views' title='views'>1174</span> </td> <td> February 25, 2021 </td> </tr> </tbody> </table> </div> </div> </div> <footer class="container wrap"> <nav class='crawler-nav'> <ul> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/' itemprop="url">Home </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/categories' itemprop="url">Categories </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/guidelines' itemprop="url">Guidelines </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/tos' itemprop="url">Terms of Service </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/privacy' itemprop="url">Privacy Policy </a> </span> </li> </ul> </nav> <p class='powered-by-link'>Powered by <a href="https://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled</p> </footer> <div class="buorg"><div>Unfortunately, <a href="https://www.discourse.org/faq/#browser">your browser is unsupported</a>. Please <a href="https://browsehappy.com">switch to a supported browser</a> to view rich content, log in and reply.</div></div> </body> </html>