diff --git a/content/index.gmi b/content/index.gmi index 88224f2..7a90642 100644 --- a/content/index.gmi +++ b/content/index.gmi @@ -119,6 +119,7 @@ Agate will use this MIME type instead of what it would guess, if the file is fou If a line violates the format or looks like case 3, but is incorrect, it might be ignored. You should check your logs. Please know that this configuration file is first read when a file from the respective directory is accessed. So no log messages after startup does not mean the `.meta` file is okay. Such a configuration file might look like this: + ``` # This line will be ignored. **/*.de.gmi: ;lang=de @@ -129,6 +130,7 @@ gone.gmi: 52 This file is no longer here, sorry. ``` If this is the `.meta` file in the content root directory and the `-C` flag is used, this will result in the following response headers: + ``` `/` or `/index.gmi` -> `20 text/gemini;lang=en-GB` diff --git a/src/main.rs b/src/main.rs index 9e4cb5e..8df888c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -740,7 +740,7 @@ where .add(b'{') .add(b'}'); - // check if directory listing is enabled by geting preamble + // check if directory listing is enabled by getting preamble let preamble = if let Ok(txt) = std::fs::read_to_string(path.join(".directory-listing-ok")) { txt diff --git a/src/metadata.rs b/src/metadata.rs index 2d30d6a..401d110 100644 --- a/src/metadata.rs +++ b/src/metadata.rs @@ -218,7 +218,7 @@ impl FileOptions { /// Get the metadata for the specified file. This might need to (re)load a /// single sidecar file. /// The file path should consistenly be either absolute or relative to the - /// working/content directory. If inconsisten file paths are used, this can + /// working/content directory. If inconsistent file paths are used, this can /// lead to loading and storing sidecar files multiple times. pub fn get(&mut self, file: &Path) -> PresetMeta { self.update(file);