#header-inner { position: absolute; bottom: 0; // Move to the bottom of the parent section left: 0; // Align to the left if needed width: 80%; // Ensure it spans the width of the parent section overflow: hidden; }
Links on the nav bar are not possible to click
changes-2
After changes-2 #header-inner
1 2 3 4 5 6 7 8
#header-inner { position: absolute; bottom: 0; // Move to the bottom of the parent section left: 0; // Align to the left if needed width: 80%; // Ensure it spans the width of the parent section z-index: 10; // Ensure it is above other elements }
#search-form-wrap { position: fixed; // Fixes it to the viewport, not affecting layout top: 15px; right: -200px; // Initially off-screen width: 150px; height: 30px; opacity: 0; transition: transform 0.2s ease-out, opacity 0.2s ease-out;
&.on { opacity: 1; transform: translateX(-200px); // Slide into view when activated }
@media (max-width: 600px) { // Adjust for mobile screens width: 100vw; right: 0; transform: none; // Keep it fixed in place for small screens opacity: 1; // Keep it visible and responsive } }
#search-form-wrap { position: fixed; // Fixes it to the viewport, not affecting layout top: 210px; right: -200px; // Initially off-screen width: 150px; height: 30px; opacity: 0; transition: transform 0.2s ease-out, opacity 0.2s ease-out;
&.on { opacity: 1; transform: translateX(-200px); // Slide into view when activated }
@media (max-width: 600px) { // Adjust for mobile screens width: 70vw; right: 0; transform: none; // Keep it fixed in place for small screens opacity: 1; // Keep it visible and responsive } }
After editing \themes\landscape\source\css\style.styl
1 2 3 4 5
.mobile-nav-on#search-form-wrap { opacity: 0; // Hide the search form when the mobile nav is open transform: translateX(-200px); // Keep it off-screen transition: opacity 0.2s ease-out, transform 0.2s ease-out; // Smooth transition }
#search-form-wrap { position: fixed; // Fixes it to the viewport, not affecting layout top: 210px; // Set the vertical positionfrom the top right: -200px; // Initially off-screen width: 150px; // Width for desktop view height: 30px; // Fixed height opacity: 0; // Hidden by default transition: transform 0.2s ease-out, opacity 0.2s ease-out;
&.on { opacity: 1; // Fully visible when active transform: translateX(-200px); // Slide into view when activated }
@media (max-width: 600px) { // General mobile styles width: 70vw; // Adjust width for mobile view right: 0; // Align to the right of the viewport transform: none; // Keep it fixed in place for small screens opacity: 1; // Keep it visible and responsive }
@media (orientation: landscape) and (max-width: 600px) { // Styles for landscape mode on mobile width: 210vw; // Adjust width for landscape orientation top: 180px; // Adjust topposition for landscape view right: -50%; // Start off-screen to the left by half the viewport width transition: transform 0.2s ease-out, opacity 0.2s ease-out; // Ensure smooth transition
Use hexo-reference Plugin for Enhanced Linking Install hexo-reference: This plugin improves link handling within Markdown files, including footnotes and internal references.
Run this command to install it:
1
npm install hexo-reference --save
Update _config.yml: Configure hexo-reference in your Hexo _config.yml file to enable the plugin.
Add this to your _config.yml file:
1 2 3
# _config.yml plugins: -hexo-reference
Use Links in Markdown: Now, you can use standard anchor links or footnotes, and hexo-reference will convert them to work correctly on the site. Update your Markdown file like this:
1 2 3 4 5 6
**Favorite list**
[Takedown](#Favorite-items)
## Favorite items
Generate and Deploy: After setting up, rebuild and deploy your project:
1 2 3
hexo clean hexo generate hexo deploy
or
1
hexo clean; hexo generate; hexo serve
Show some number of tags in the ‘Tag’ section.
Before changes of content of themes\landscape\layout\_widget\tag.ejs file was