{% extends "layouts/default.html" %} {% block title %}Site Settings{% endblock %} {% block content %}

Site Settings

Dashboard View Dashboard My Account My Account {% if roles.owner %} Manage Accounts Manage Accounts {% endif %}

Site Name


Enable Meilisearch

Enable this setting to enable this site's integration with the specified Meilisearch instance. Make sure you have entered the correct details into the 'Search' sections below if you do enable this feature. When enabled, the navigation menu will provide a link to the Search page automatically.


Search URL

This is the URL for the search service used by this website. The default URL is http://localhost:7700. You would normally use that when on running this website on your local dev. machine.


Search Index

This is the name of the index used by the Meilisearch instance to store your recipes.


Search API Key

This is the API key used to access the Meilisearch database. Leave this blank if the Meilisearch service doesn't require an API key.


Site Logo

Site Logo

Log-In

Enabling this setting adds a 'Log-In' link to the Nav-Menu. The 'Log-In' URL will remain active if you disable this setting.


Sign-Up

Enabling this setting allows anyone to create account. If this setting is disabled you can still create accounts via the 'Manage Accounts' link above.


Navigation Menu

This is the list of links at the top of the page and is viewable by everyone. The nav. menu can only consist of 'Pages', no 'Archive Entries' can be selected for this menu.

{% for page in pages %}
{% comment %} The first 'hidden' input element is required, as a way to make sure the list is always processed. When no Nav-Menu items are selected, the code will not update the database. This is because it doesn't recieve any data -- as part of the HTTP POST request -- and it takes that as 'nothing has changed'. If the 'hidden checkbox item' is the only item returned, as part of the HTTP POST request, it will trigger the back-end to loop through all the pages and set their 'enable-nav-menu' values to 'false'. {% endcomment %}
{% endfor %}

Favicon

A Favicon is the little image in the browser tab. The site only accepts PNG files and, ideally, its dimensions should be square (E.G. 16 x 16 px or 150 x 150 px). You might need to press 'Shift + F5' if you cannot see the new file, after you've updated it.

Favicon

Site-Wide Code Snippet

Enter HTML and JavaScript in the text box below and it will be added to each Page and Archive Entry automatically. The intended use-case for this is adding a snippet provided by Umami to track page views, device types and which country the viewer is in. If you are unsure what any of that means, just ignore this section.


{% if roles.owner %}

Danger Zone

Be careful here. You can break the website and lose data.

This is a link -- nothing is deleted if you press this. Use this to rename/delete files which are out-of-sync. with the site's database.

Manage files Manage Files

This is a link -- nothing is deleted if you press this. Use this to delete Archive Entries and Pages stored in the database when the files it is tracking cannot be found.

Delete DB entries Delete Database Entries

If you find Archive Entry thumbnails are no longer loading or you're seeing '404' errors when clicking throught to an Archive Entry, click the button below to re-sync. this website's database with the 'Search Service' database.

This deletes all the User Accounts, Pages, Archive Entries and files you've uploaded to Storage. Use this if you want to wipe the site clean and start again. It, also, clears the 'Search Service' database.

This is a link -- nothing is deleted if you press this. Use this to manage the website's Snapshots (a versioned copy of the website's data). Do not treat these as back-ups until they are off the server.

Manage Snapshots Manage Snapshots
{% endif %}
{% endblock %}