浏览代码

modified portfolio section

tags/v1.0.0
Themefisher Dev 4 年前
父节点
当前提交
a9f46adfcd
共有 3 个文件被更改,包括 7 次插入4 次删除
  1. 2
    2
      layouts/_default/single.html
  2. 2
    2
      layouts/partials/blog.html
  3. 3
    0
      layouts/partials/head.html

+ 2
- 2
layouts/_default/single.html 查看文件

@@ -8,7 +8,7 @@
<div class="col-lg-8 offset-lg-2 text-center">
<h1>{{ .Title }}</h1>
<ul class="list-inline mb-50">
<li class="list-inline-item"><a href="{{ `author/` | relLangURL }}{{ .Params.Author | urlize }}">{{ .Params.Author }}</a></li>
<li class="list-inline-item"><a href="{{ `author/` | relLangURL }}{{ .Params.Author | urlize }}/">{{ .Params.Author }}</a></li>
<li class="list-inline-item">{{ dateFormat "Monday, Jan 2, 2006" .Date }}</li>
</ul>
<img class="img-fluid mb-50" src="{{ .Params.Image | absURL }}" alt="blog-image">
@@ -29,4 +29,4 @@
</div>
</section>

{{ end }}
{{ end }}

+ 2
- 2
layouts/partials/blog.html 查看文件

@@ -13,7 +13,7 @@
</div>
{{"<!-- /section title -->" | safeHTML}}

{{ range first 3 .Site.RegularPages }}
{{ range first 3 (where .Site.RegularPages "Section" "==" "blog")}}
{{ .Render "article"}}
{{ end }}

@@ -25,4 +25,4 @@
</div>
</section>
{{"<!-- /blog -->" | safeHTML}}
{{ end }}
{{ end }}

+ 3
- 0
layouts/partials/head.html 查看文件

@@ -19,6 +19,9 @@
{{ $styles := resources.Get "css/style.css" | minify}}
<link rel="stylesheet" href="{{ $styles.Permalink }}" media="screen">

{{"<!-- Custom stylesheet - for your changes -->" |safeHTML}}
<link rel="stylesheet" href="{{ "css/custom.css" | relURL}} " media="screen">

{{ "<!--Favicon-->" | safeHTML }}
<link rel="shortcut icon" href="{{ `images/favicon.png` | absURL }} " type="image/x-icon">
<link rel="icon" href="{{ `images/favicon.png` | absURL }} " type="image/x-icon">

正在加载...
取消
保存