mdBook icon indicating copy to clipboard operation
mdBook copied to clipboard

Adding a footer partial integration

Open hamflx opened this issue 3 years ago • 5 comments

Add footer.hbs support #1288

hamflx avatar Apr 28 '22 01:04 hamflx

Thanks! Can you say more about your use case? I think it would be good to discuss the particular location for where the footer is located. At first glance it is not clear how the footer should interact with the content, navigation buttons, and sidebar. I think below the buttons is probably OK, but I want to check why you want to add this, and are there considerations for other projects.

ehuss avatar May 02 '22 18:05 ehuss

I added the disqus comment section to footer.hbs. Also for websites in China you need to put icp record information at the bottom of the website.

image

hamflx avatar May 03 '22 03:05 hamflx

添加 footer.hbs 支持#1288

Hey, I noticed your need. You are trying to place the comment system and government information at the end of the article. I don't think this needs a separate footer file. Now, you just need to make some settings in index.hbs, like I did.

I just came back from your blog, https://www.hamflx.cn/ and the way you did it caused the login button to be obscured, affecting the overall page.

image

image

Week2019 avatar May 31 '22 20:05 Week2019

Thank you for your advice.

caused the login button to be obscured

I fixed the problem by inserting the dom element of the comment system into the

tag.

you just need to make some settings in index.hbs

I didn't redefine index.hbbs for my blog, it was too much of a hassle.

hamflx avatar Jun 01 '22 04:06 hamflx

@ehuss PTAL

zhangguanzhang avatar Mar 10 '23 01:03 zhangguanzhang