From 4fd8c6edfef8b262e77ff64c26f07f542e255ae8 Mon Sep 17 00:00:00 2001 From: ahonn Date: Sun, 4 Feb 2024 14:19:53 +1100 Subject: [PATCH] fix: fix social.ejs undefined issue & update deploy workflow --- .github/workflows/deploy.yml | 5 +---- README.md | 2 +- layout/_partial/_footer/social.ejs | 4 ++-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 837db536..50b108e4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,12 +18,9 @@ jobs: uses: actions/setup-node@master with: node-version: '18.x' - - uses: actions/setup-python@v5 - with: - python-version: '3.10' - name: Prepare source run: | - npm install hexo-renderer-ejs hexo-renderer-scss --save + npm install hexo-renderer-ejs hexo-renderer-dartsass --save git clone -b master https://github.com/ahonn/hexo-theme-even.git themes/even cp themes/even/_config.yml.example themes/even/_config.yml npm install diff --git a/README.md b/README.md index 3aad5e5d..39941341 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ A super simple theme for Hexo ## Installation ```bash -$ npm install hexo-renderer-ejs hexo-renderer-scss --save +$ npm install hexo-renderer-ejs hexo-renderer-dartsass --save $ git clone https://github.com/ahonn/hexo-theme-even themes/even $ cp themes/even/_config.yml.example themes/even/_config.yml ``` diff --git a/layout/_partial/_footer/social.ejs b/layout/_partial/_footer/social.ejs index 3f1c91e9..42bc2660 100644 --- a/layout/_partial/_footer/social.ejs +++ b/layout/_partial/_footer/social.ejs @@ -14,10 +14,10 @@ <% if (config.feed && config.feed.path && theme.rss === 'default') { %> <% } else if (theme.rss === 'default') { %> - <% var rss_link = config.feed.path || 'atom.xml'; %> + <% var rss_link = config.feed && config.feed.path || 'atom.xml'; %> <% } else if (theme.rss) { %> <% } %> -<% } %> \ No newline at end of file +<% } %>