Footer Configuration

Footer Configuration

Table of Contents


Starting from version v3.1.0, our theme’s footer has been enhanced to allow customization of the second and third columns (col1 and col2) directly through the _config.yml file. Additionally, we provide configurable options for copyright notices and privacy policy links that were available in previous versions.

Configuration Example

To define the titles and link lists for col1 and col2, add the following YAML configuration in your _config.yml file:

# Footer Features
footer:
  col1:
    title: Resources
    items:
      - name: Design Guidelines
        url: /resources/design-guidelines/
      - name: Style Guide
        url: /resources/style-guide/
      - name: Media Library
        url: /resources/media-library/
  col2:
    title: Documentation
    items:
      - name: Getting Started
        url: /docs/getting-started/
      - name: API Reference
        url: /docs/api-reference/
      - name: Plugin Guide
        url: /docs/plugin-guide/
      - name: Configuration
        url: /docs/configuration/

Detailed Breakdown

  • col1 Configuration:
    • title: Sets the column title.
    • items: Defines a list of links for the column.
      • name: The display name of the link.
      • url: The target URL for the link.
  • col2 Configuration:
    • title: Sets the column title.
    • items: Defines a list of links for the column.
      • name: The display name of the link.
      • url: The target URL for the link.

Bottom Bar Configuration

In addition to configuring the footer columns, the following bottom bar settings are available for customization:

Attribute Property Description
copyright   Your custom setting of copyright notice:
  prepend v2.0
The text prepend to the year.
Default: Copyright © .
  owner The name of the copyright holder.
Default: site.name.
  link The URL to go when clicking on the copyright notice.
Default: /.
  append v2.0
The text at the end of the copyright notice.
Default: . All rights reserved..

Default format:


{{ prepend }}{{ CURRENT YEAR }} <a href="{{ link }}">{{ owner }}<a>{{ append }}

Copyright © 2024 Chris KY FUNG’s Blog. All rights reserved.

Example 1:

copyright:
   prepend: "© 2020-"
   owner: "Chris KY FUNG"
   link: https://github.com/chriskyfung/

© 2020-2024 Chris KY FUNG. All rights reserved.

Example 2:

copyright:
   prepend: "GitHub ©"
   owner: ""
   append: ""

Github © 2024

Attribute Property Description
privacy_policy url v2.8.1
The URL to go when clicking on the privacy policy link.
Default: /privacy-policy.
Loading Disqus Comments...
Please enable JavaScript to view the comments powered by Disqus.