mirror of
https://github.com/carsonip/hugo-theme-minos
synced 2025-12-30 03:19:49 -08:00
Initial commit, porting in progress
This commit is contained in:
31
layouts/_default/list.html
Normal file
31
layouts/_default/list.html
Normal file
@@ -0,0 +1,31 @@
|
||||
{{ partial "head.html" . }}
|
||||
<body>
|
||||
<div id="container">
|
||||
{{ partial "header.html" . }}
|
||||
<section id="main" class="outer">
|
||||
<section class="archives-wrap">
|
||||
<div class="archive-category-wrap">
|
||||
<span class="archive-category">{{ .Title }}</span>
|
||||
</div>
|
||||
<div class="archives">
|
||||
{{ range .Data.Pages }}
|
||||
<article class="archive-article archive-type-post">
|
||||
<div class="archive-article-inner">
|
||||
<header class="archive-article-header">
|
||||
<a href="{{ .RelPermalink }}" class="archive-article-date">
|
||||
<time datetime='{{ .Date.Format "2006-01-02T15:04:05.000-07:00" }}' itemprop="datePublished">{{ .Date.Format "2006 Jan 2" }}</time>
|
||||
</a>
|
||||
<h1 itemprop="name">
|
||||
<a class="archive-article-title" href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
</h1>
|
||||
</header>
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
</div></section>
|
||||
</section>
|
||||
{{ partial "footer.html" . }}
|
||||
<!--<%- partial('_partial/after-footer') %>-->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
54
layouts/_default/single.html
Normal file
54
layouts/_default/single.html
Normal file
@@ -0,0 +1,54 @@
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
<body>
|
||||
<div id="container">
|
||||
{{ partial "header.html" . }}
|
||||
<section id="main" class="outer">
|
||||
{{ partial "article.html" . }}
|
||||
|
||||
<!--<% if (!index && theme.share_jia){ %>-->
|
||||
<!--<%- partial('post/share_jia') %>-->
|
||||
<!--<% } %>-->
|
||||
|
||||
<!--<% if (!index && theme.share_addthis){ %>-->
|
||||
<!--<%- partial('post/share_addthis') %>-->
|
||||
<!--<% } %>-->
|
||||
{{ partial "share_addthis.html" . }}
|
||||
|
||||
{{ if not .Params.nocomment }}
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
{{ end }}
|
||||
<!--<% if (!index && post.comments && config.disqus_shortname){ %>-->
|
||||
<!--<section id="comments">-->
|
||||
<!--<div id="disqus_thread">-->
|
||||
<!--<noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>-->
|
||||
<!--</div>-->
|
||||
<!--</section>-->
|
||||
<!--<% } %>-->
|
||||
|
||||
<!--<% if (!index && post.comments && config.duoshuo_shortname){ %>-->
|
||||
<!--<section id="comments">-->
|
||||
<!--<!– 多说评论框 start –>-->
|
||||
<!--<div class="ds-thread" data-thread-key="<%= post.layout %>-<%= post.slug %>" data-title="<%= post.title %>" data-url="<%= page.permalink %>"></div>-->
|
||||
<!--<!– 多说评论框 end –>-->
|
||||
<!--<!– 多说公共JS代码 start (一个网页只需插入一次) –>-->
|
||||
<!--<script type="text/javascript">-->
|
||||
<!--var duoshuoQuery = {short_name:'<%= config.duoshuo_shortname %>'};-->
|
||||
<!--(function() {-->
|
||||
<!--var ds = document.createElement('script');-->
|
||||
<!--ds.type = 'text/javascript';ds.async = true;-->
|
||||
<!--ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';-->
|
||||
<!--ds.charset = 'UTF-8';-->
|
||||
<!--(document.getElementsByTagName('head')[0]-->
|
||||
<!--|| document.getElementsByTagName('body')[0]).appendChild(ds);-->
|
||||
<!--})();-->
|
||||
<!--</script>-->
|
||||
<!--<!– 多说公共JS代码 end –>-->
|
||||
<!--</section>-->
|
||||
<!--<% } %>-->
|
||||
</section>
|
||||
{{ partial "footer.html" . }}
|
||||
<!--<%- partial('_partial/after-footer') %>-->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user