add html to head of digital garden
Pin Tag
Pinterest Tags
Found this
https://github.com/Oliv131313/Threeeyesgarden/blob/main/src/site/_includes/components/pageheader.njk
Chat said to do this
- Create a New File:
- Click on the "Add file" button and select "Create new file."
- Specify the File Path:
In the "Name your file..." field, enter the path for your new file, including the desired folders. For example:
src/site/_includes/components/user/common/head/pinterest-tag.njk
This action tells GitHub to create the pinterest-tag.njk file inside the head directory, which is nested within common, user, and so on.
-
Add Content to the File:
-
In the file editor, add your interest tag. For example:
< meta name="interest" content="your-interest" >
Replace "your-pinterest" with the desired content.
- Commit the New File:
- Click on "Commit new file" section.
- Add a commit message describing your changes.
- Choose to commit directly to the main branch
- Click "Commit new file" to save your changes.
To verify that your interest tag has been successfully added to your digital garden's < head > section, follow these steps:
-
Deploy Your Changes: I did this by using the "digital garden; Publish multiple notes" Command in Obsidian
-
Ensure that your recent commits have been deployed to your live website.
- Access Your Website:
- Open your digital garden in a web browser.
- Inspect the Page Source:
-
Right-click anywhere on the page and select "View Page Source" or "Inspect" (depending on your browser).
- In the developer tools panel, navigate to the < head > section of the HTML document.
- Locate the Interest Tag:
Search for the < meta name="interest" content="your-pinterest" > tag within the < head > section.
If you find the tag with the correct content, it confirms that your addition was successful.