최근 지킬을 사용하여 새 블로그/포트폴리오 사이트를 설정했습니다. 내가 사용자 정의한 테마는 홈 페이지뿐이었습니다.이 홈 페이지는 게시물 페이지 였고 나에 관한 페이지였습니다.지킬 사이트에 추가 페이지 추가 시도 중
프로젝트를 홈 페이지와 비슷하지만 홈페이지 (색인) 페이지에 게시물이 나열된 것처럼 프로젝트를 나열하는 새 페이지를 추가하려고합니다.
탐색 링크에 표시 할 프로젝트 링크를 가져올 수 있으며 클릭하면 올바른 URL로 이동합니다. 템플릿의 나머지 부분은 있지만 프로젝트 폴더에있는 예제 파일이 보이지 않습니다. 여기서 내가 뭘 잘못하고 있니? 여기
가 여기 내 디렉토리 트리├── CNAME
├── CODE_OF_CONDUCT.md
├── LICENSE
├── _config.yml
├── _includes
│ ├── analytics.html
│ └── head.html
├── _layouts
│ ├── about.html
│ ├── default.html
│ ├── post.html
│ └── project.html
├── _posts
│ ├── 2017-03-09-developer-goals.md
│ ├── 2017-03-09-finding-web-dev.md
│ ├── 2017-03-09-my-experience.md
│ ├── 2017-09-16-example-content.md
│ └── 2017-09-17-jumping-into-react.md
├── _projects
│ └── 2017-03-09-developer-goals.md
├── _sass
│ ├── _base.scss
│ ├── _catalogue.scss
│ ├── _code.scss
│ ├── _layout.scss
│ ├── _pagination.scss
│ ├── _post.scss
│ ├── _syntax.scss
│ └── _variables.scss
├── _site
│ ├── 2017-03-09
│ │ ├── developer-goals.html
│ │ ├── finding-web-dev.html
│ │ └── my-experience.html
│ ├── 2017-09-16
│ │ └── example-content.html
│ ├── 2017-09-17
│ │ └── jumping-into-react.html
│ ├── CNAME
│ ├── CODE_OF_CONDUCT.md
│ ├── LICENSE
│ ├── about
│ │ └── index.html
│ ├── favicon.ai
│ ├── favicon.png
│ ├── index.html
│ ├── project
│ │ └── index.html
│ └── styles.css
├── about.md
├── favicon.ai
├── favicon.png
├── index.html
├── projects.html
└── styles.scss
입니다 여기 내 projects.html
파일
---
layout: default
title: "Projects"
author: "Steven"
permalink: /project/
---
<div class="catalogue">
{% for project in paginator.project %}
<a href="{{ project.url | prepend: site.url }}" class="catalogue-item">
<div>
<time datetime="{{ project.date }}" class="catalogue-time">{{ project.date | date: "%B %d, %Y" }}</time>
<h1 class="catalogue-title">{{ project.title }}</h1>
<div class="catalogue-line"></div>
<p>
{{ project.content | truncatewords: 30 | strip_html }}
</p>
</div>
</a>
{% endfor %}
</div>
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.url }}" class="left arrow">←</a>
{% endif %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.url }}" class="right arrow">→</a>
{% endif %}
<span>{{ paginator.page }}</span>
</div>
내 project.html
파일입니다,
---
layout: default
---
<div class="post">
<h1 class="post-title">{{ page.title }}</h1>
<div class="post-line"></div>
{{ content }}
</div>
이 레이아웃과 디자인이 매우 간단하지만 왜 이것이 작동하지 않는지 알 수 없습니다. 어떤 도움을 많이 주시면 감사하겠습니다! 또한 라이브 사이트 인 stevenmills.io를 자유롭게 확인하십시오.