#7 show also page name in the title bar

병합
SylvieLorxu jorgesumle/master 에서 SylvieLorxu/master 로 1 commits 를 머지했습니다 8 년 전

I don't know why all env variables start with var, but I tried to follow the same naming convention. I've named the index.html page "Home". The rest of the pages will have the name of their filename without the extension.

If we have a blog named MyBlog:

  • index.html title bar will read Home - MyBlog
  • pages/Contact.html title bar will read Contact - MyBlog
  • pages/About.html title bar will read About - MyBlog
  • posts/myPost.html title bar will read myPost - MyBlog

I didn't write export var_page="Home" to variables file, because it changes a lot.

I don't know why all env variables start with var, but I tried to follow the same naming convention. I've named the index.html page "Home". The rest of the pages will have the name of their filename without the extension. If we have a blog named __MyBlog__: * `index.html` title bar will read __Home - MyBlog__ * `pages/Contact.html` title bar will read __Contact - MyBlog__ * `pages/About.html` title bar will read __About - MyBlog__ * `posts/myPost.html` title bar will read __myPost - MyBlog__ I didn't write `export var_page="Home"` to `variables` file, because it changes a lot.
Sylvia van Os 코멘트됨, 8 년 전
소유자

Thanks for this. According to the documentation though, you're supposed to name posts like 2016-02-04--Untimed article.md or 2016-02-04-17:00-Hello, world!.md and I feel it probably displays titles like these very ugly. You probably want to use doctitle, see line 288: doctitle=${docbasename#*-*-*-*-}

Thanks for this. According to the documentation though, you're supposed to name posts like ```2016-02-04--Untimed article.md``` or ```2016-02-04-17:00-Hello, world!.md``` and I feel it probably displays titles like these very ugly. You probably want to use doctitle, see line 288: ```doctitle=${docbasename#*-*-*-*-}```
Jorge Maldonado Ventura 코멘트됨, 8 년 전
협업자

Fixed it!

Fixed it!
Sylvia van Os 코멘트됨, 8 년 전
소유자

Any chance you could quickly squash this into a single commit? After that I'll hit merge :)

Any chance you could quickly squash this into a single commit? After that I'll hit merge :)
Jorge Maldonado Ventura 코멘트됨, 8 년 전
협업자

Done, thanks for the feedback!

Done, thanks for the feedback!
Sylvia van Os 코멘트됨, 8 년 전
소유자

Thanks again for the contribution!

Thanks again for the contribution!
이 풀리퀘스트가 성공적으로 머지되었습니다!
로그인하여 이 대화에 참여
레이블 없음
마일스톤 없음
담당자 없음
참여자 2명
로딩중...
취소
저장
아직 콘텐츠가 없습니다.