-
Notifications
You must be signed in to change notification settings - Fork 0
Config
Constantine Chukhlomin edited this page Jul 26, 2025
·
1 revision
When building the site, finder's generator will look for config.yml file in the root of info directory.
Fields defined in structs/config.go file. Some config values used by generator directly, some – used in templates using config template function, e.g.: {{ (config).SearchHost }}
You may find their description below.
| Field | Type | Description | Example |
|---|---|---|---|
| Title | string | Site main title, used in HTML title, and meta tags | Also, see |
| Description | string | Site description, used in meta tags | |
| Lang | string | Site language, used in <html> tag |
en |
| Repo | string | Link to info repository |
https://github.com/alsosee/info |
| URL | string | Link to site, used in meta tags | https://alsosee.info |
| MediaHost | string | URL where images are served from | https://media.alsosee.info |
| SearchHost | string | Link to Meilisearch server. If left empty, INPUT_SEARCH_HOST will be used |
https://search.alsosee.info |
| SearchAPIKey | string | Public Meilisearch key | |
| SearchIndexName | string | Meilisearch index name | info |
| OpenGraph | object | OpenGraph configuration, used in templates | See below |
| LogoShiftY | string | In static/logo.pmg sprite, Y shift of the logo |
-44px |
| HomeLabel | string | Label for home link in breadcrumbs | Home |
| SearchLabel | string | Search input placeholder text | Search |
| NotFoundHeader | string | Not found | |
| NotFoundDEscription | string | Banner text for "not found" page | The requested content was not found. |
| NotFoundButDescription | string | Banner text for "not found" page, but if there are search results | The requested content was not found. Closest available results are listed below. |
| ViewsLabel | string | Views | |
| ViewsTooltip | string | View switcher hover tooltip text | Show items as icons, in a list or in columns |
| ViewIcons | string | Icons | |
| ViewList | string | List | |
| ViewColumns | string | Columns | |
| Menu | object | Site main menu downdown configuration, used in templates | See below |
| LabelCancel | string | Uploader "Cancel" button label | Cancel |
| LabelUpload | string | Uploader "Upload" button label | Upload |
| NoResultsLabel | string | Banner text when search returned no results. | No results found. |
| ColumnName | string | Text used in column header in list view | Name |
| ColumnKind | string | Text used in column header in list view in search results | Kind |
| OfLabel | string | Text used in list of connections | of |
| AndLabel | string | Text used in list of references between last two items | and |
OpenGraph configuration is an object with the following fields:
| Field | Type | Description | Example |
|---|---|---|---|
| Image | string | URL to OpenGraph image, used in meta tags | https://media.alsosee.info/opengraph.png |
| Width | int | Width of OpenGraph image, used in meta tags | 1920 |
| Height | int | Height of OpenGraph image, used in meta tags | 1080 |
| TwitterImage | string | URL to Twitter image, used in meta tags | https://media.alsosee.info/twitter.png |
Menu configuration is an object with the following fields:
| Field | Type | Description | Example |
|---|---|---|---|
| Title | string | Menu element text | alsosee.info |
| URL | string | Menu element link | https://alsosee.info |
| LogoShiftY | string | In static/logo.png sprite, Y shift of the logo used in menu element |
-44px |