about summary refs log tree commit diff stats
path: root/src/main.rs
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-08-30 18:21:12 -0400
committerBen Morrison <ben@gbmor.dev>2019-08-30 18:21:40 -0400
commitcf2b9750ca87ed4fadee63606d8de6f109e84cb8 (patch)
tree7b8f778da28e6b981f45e5f42460f3bd1fd2e6d5 /src/main.rs
parent2a3d402fa58d9a4aa709ae74dac396b37f8ddf57 (diff)
downloadclinte-cf2b9750ca87ed4fadee63606d8de6f109e84cb8.tar.gz
moved display to 15 posts v0.3.2
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 9541176..b837d47 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -90,7 +90,7 @@ fn list_matches(db: &db::Conn) {
     });
 
     for (i, e) in postvec.iter().enumerate() {
-        if (postvec.len() >= 30 && i >= postvec.len() - 31) || postvec.len() < 30 {
+        if (postvec.len() > 14 && i >= postvec.len() - 15) || postvec.len() < 15 {
             print!("{}", e);
         }
     }
} /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
# `getwtxt/registry` 

### twtxt Registry Library for Go

`getwtxt/registry` helps you implement twtxt registries in Go.
It uses no third-party dependencies whatsoever, only the standard library,
and has no global state.
Specifying your own `http.Client` for requests is encouraged, with a sensible
default available by passing `nil` to the constructor.

## Using the Library

Just add it to your imports list in the file(s) where it's needed.

```go
import (
  "git.sr.ht/~gbmor/getwtxt/registry"
)
```

## Documentation

The code is commented, so feel free to browse the files themselves. 
Alternatively, the generated documentation can be found at:

[pkg.go.dev/git.sr.ht/~gbmor/getwtxt/registry](https://pkg.go.dev/git.sr.ht/~gbmor/getwtxt/registry)

## Contributions

All contributions are very welcome! Please specify that you are referring to `getwtxt/registry`
when using the following:

* Mailing list (patches, discussion)
  * [https://lists.sr.ht/~gbmor/getwtxt](https://lists.sr.ht/~gbmor/getwtxt)
* Ticket tracker
  * [https://todo.sr.ht/~gbmor/getwtxt](https://todo.sr.ht/~gbmor/getwtxt)

## Notes

* getwtxt - parent project:
  * [sr.ht/~gbmor/getwtxt](https://sr.ht/~gbmor/getwtxt) 

* twtxt repository:
  * [github.com/buckket/twtxt](https://github.com/buckket/twtxt)
* twtxt documentation: 
  * [twtxt.readthedocs.io/en/latest/](https://twtxt.readthedocs.io/en/latest/)
* twtxt registry documentation:
  * [twtxt.readthedocs.io/en/latest/user/registry.html](https://twtxt.readthedocs.io/en/latest/user/registry.html)