OneNav 0.9.18 Update: Configure Site Info, Themes, and Transition Pages via Backend

onenavbookmark managerseo optimizationtransition pagesite settings
Published·Modified·

OneNav is an open-source, free bookmark (navigation) management program developed by xiaoz using PHP + SQLite 3. It features a clean interface, simple installation, and ease of use. OneNav helps you centrally manage browser bookmarks, solving synchronization and access difficulties across devices, platforms, and browsers, allowing one deployment for access anywhere.

Install OneNav: https://doc.xiaoz.org/books/onenav/page/5ef69

0.9.18 Update Content

  • New: Site information, themes, and transition pages can now be configured directly via the backend.
  • Themes: Added info.json to describe themes.
  • Removed: Custom JavaScript; replaced with custom header in site settings.
  • Localization: Some resources have been localized.
  • Compatibility: baisuTwo theme adapted for OneNav 0.9.18.

Upgrade

Backup your entire site, download the latest source code: https://github.com/helloxz/onenav/releases, and perform a cover upgrade.

  1. After upgrading, visit the backend: https://your-domain/index.php?c=admin and wait for the database to automatically upgrade.
  2. Open OneNav Backend - Site Settings - Fill in your site information. Refer to Site Settings.
  3. Open OneNav Backend - Theme Settings - Select the theme you want to use.

For more details, refer to the upgrade documentation: https://doc.xiaoz.org/books/onenav/page/5ef69

Site Settings

Starting from version 0.9.18, site information can be configured via the OneNav backend, eliminating the need to modify the config.php configuration file.

Open OneNav Backend - System Settings - Site Settings - You can configure website title, keywords, description, and other information.

Parameter Description:

  • Website Logo: You can enter text, or relative/absolute paths, or URL addresses for images. Specific support depends on the theme you use; some themes may not support the website logo.
  • Website Keywords: Separate multiple keywords with commas (,).
  • Custom Header: You can enter CSS or JS content here. If you are unsure, do not fill this in.

Detailed Explanation of Custom Header

The custom header only takes effect on the user homepage and transition page. Some themes may not support this feature, but the default theme does.

For example, you can add Baidu Statistics code:

<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?xxx";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>

Or customize website CSS:

<style type="text/css">
			/* Whether to display link descriptions */
			
			.site-main .site-list .list .desc {
				/* none: do not display, block: display */
				display: none;
			}
		</style>

Transition Page Settings

Starting from version 0.9.18, transition page settings are added. When enabled, clicking a link will redirect to the transition page, wait for a set duration, and then jump to the target address.

Pros and Cons

Pros:

  1. Transition pages facilitate search engine crawling and benefit SEO optimization.
  2. You can customize content on the transition page, such as displaying advertisements.

Cons:

  1. User experience may be less friendly.

Enter OneNav Backend - System Settings - Transition Page to configure.

Parameter meanings are as follows:

  • If the transition page is disabled, users clicking a link will jump directly to the target address without a transition page, making visitor and administrator stay time invalid.
  • If the transition page is enabled, visitor and administrator stay time take effect:
    1. Visitor Stay Time: The duration the transition page stays for unlogged-in users before jumping to the target address.
    2. Administrator Stay Time: The duration the transition page stays for administrators before jumping to the target address.

Final Notes