mirror of
https://github.com/samsonjs/agate.git
synced 2026-03-25 09:05:50 +00:00
Fixes typos
This commit is contained in:
parent
578adab629
commit
7d88029e22
3 changed files with 4 additions and 2 deletions
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue