8000 Home · jacksalici/salinger-theme Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Giacomo Salici edited this page Aug 22, 2023 · 10 revisions

Salinger is a clean, minimalistic, mobile-first, blazing-fast, fancy and lightweight theme for the Hugo framework. Born as the theme for my website (demo), it has been completely rebuilt using Tailwind and DaisyUI.

Screenshot of the homepage

LICENSE GitHub tag (with filter) GitHub last commit (branch)

TOC

Front Matter

Layouts

Install the theme

  1. Prerequisites: Please, check to have installed a recent version of hugo, git, and npm.

  2. Add the repository to your Hugo Project repository as a submodule:

    git submodule add https://github.com/jacksalici/salinger-theme.git themes/salinger
  3. Configure your hugo.toml. I suggest copying the demo file present in the example site folder. Please note that some parameters are mandatory for the theme to work properly.

  4. Install the dependencies in the theme folder and the main folder.

    cd themes/salinger
    npm install
    cd ../..
    hugo mod npm pack 
    npm install
  5. You can build your site with hugo server and admire the result at http://localhost:1313/.

Update your installation

If you want to get the latest update of the Salinger theme please execute this command:

git submodule update --remote --merge

Please note that during the development of the new version (Jul 23) a rebase has been made and the commit history is not so clean. If you came from the legacy version, updating it can be a bit annoying. I suggest removing completely the submodule and adding it again.

Clone this wiki locally
0