Skip to content

Commit

Permalink
chore: update theme example.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 22, 2024
1 parent b54e525 commit fdd1bae
Show file tree
Hide file tree
Showing 25 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ Create a [idoc](https://github.com/jaywcjlove/idoc) site using the beautiful the
npx idoc init my-app
npx idoc
```

<!--idoc:config:
layout: home.ejs
-->
File renamed without changes.
20 changes: 20 additions & 0 deletions examples/theme/home.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

<%- include('theme/default/partial/header'); %>
<%- include('theme/default/partial/navigation'); %>


<div <%= element.wrapper %> class="warpper-content warpper <%= chapters && chapters.length > 0 ? 'sidebar' : ''%> <%= tocsTree && tocsTree.length > 0 ? '' : 'notocs'%>">
<%- include('theme/default/partial/chapters'); %>
<markdown-style theme-auto-switch-disabled>
<%- html %>
<%- giscusScript %>
<% if (giscusScript) { %>
<script src="<%= RELATIVE_PATH %>js/giscus.js?v=<%=idocVersion%>"></script>
<% } %>
<%- include('theme/default/partial/article-footer'); %>
</markdown-style>
<%- include('theme/default/partial/tocs'); %>
</div>
<script src="<%= RELATIVE_PATH %>js/demo-preview.js?v=<%=idocVersion%>"></script>

<%- include('theme/default/partial/footer'); %>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit fdd1bae

Please sign in to comment.