Skip to content

Commit

Permalink
fix: fix social.ejs undefined issue & update deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ahonn committed Feb 4, 2024
1 parent c3ae375 commit 4fd8c6e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
4 changes: 2 additions & 2 deletions layout/_partial/_footer/social.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
<% if (config.feed && config.feed.path && theme.rss === 'default') { %>
<a href="<%- url_for(config.feed.path) %>" class="iconfont icon-rss" title="rss"></a>
<% } else if (theme.rss === 'default') { %>
<% var rss_link = config.feed.path || 'atom.xml'; %>
<% var rss_link = config.feed && config.feed.path || 'atom.xml'; %>
<a href="<%- url_for(rss_link) %>" class="iconfont icon-rss" title="rss"></a>
<% } else if (theme.rss) { %>
<a href="<%- url_for(theme.rss) %>" class="iconfont icon-rss" title="rss"></a>
<% } %>
</div>
<% } %>
<% } %>

0 comments on commit 4fd8c6e

Please sign in to comment.