Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in example config #200

Merged
merged 1 commit into from
Jan 3, 2023
Merged

Conversation

ChrisJefferson
Copy link
Contributor

I might be using hexo / landscape wrong (I only just started), but I installed hexo and landscape, then copied the config from the readme into my _config.landscape.yml, and I got the following error (this is the important part of the error I think):

/home/caj/files/reps/websites/hexo-blog/nonbinaryalgorithms/node_modules/hexo-theme-landscape/layout/_partial/sidebar.ejs:3
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
    2|   <% theme.widgets.forEach(function(widget){ %>
 >> 3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Partial _widget/archives does not exist. (in _partial/sidebar.ejs)

When I had a look, there is no _widget/archives, but there is _widget/archive, and when I fixed that the page could then be built, and I had a working archives link.

@stevenjoezhang stevenjoezhang merged commit e1bf9df into hexojs:master Jan 3, 2023
@stevenjoezhang
Copy link
Member

See also

widgets:
- category
- tag
- tagcloud
- archive
- recent_posts

Pikaurd pushed a commit to Pikaurd/hexo-theme-landscape that referenced this pull request Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants