Making global feed discoverable
This commit is contained in:
parent
2fb6abf028
commit
bb64de09bd
5 changed files with 19 additions and 9 deletions
|
|
@ -32,6 +32,7 @@ a {
|
|||
|
||||
.status-content {
|
||||
margin: 0 1em 0.5em 1em;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.status nav {
|
||||
|
|
|
|||
|
|
@ -72,5 +72,6 @@ var TplCommonMap = map[string]string{
|
|||
<textarea class="edit-status" name="content" maxlength="140" placeholder="What's new?" required autofocus>{{ .Content }}</textarea>
|
||||
</div>
|
||||
<input type="submit" value="Submit">
|
||||
{{ end }}`,
|
||||
{{ end }}
|
||||
`,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -149,7 +149,11 @@ var TplMap = map[string]string{
|
|||
{{ template "status_form" .status }}
|
||||
</form>
|
||||
{{ end }}`,
|
||||
"index": `{{ define "content" }}
|
||||
"index": `{{ define "head" }}
|
||||
<link rel="alternate" type="application/atom+xml" title="Atom feed" href="/feed.atom" />
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
<div class="cols">
|
||||
<section>
|
||||
{{ if .logged }}
|
||||
|
|
@ -165,14 +169,14 @@ var TplMap = map[string]string{
|
|||
<a href="/about/status-updater">status updater</a> bookmarklet<br>
|
||||
<a href="/current-status">status widget</a> for your homepage
|
||||
</p>
|
||||
<p><a href="/feed.atom">Subscribe via Atom</a></p>
|
||||
<p><img src="/users/{{ .logged }}/badge.png"/><br><textarea style="width: 100%"><a href="https://status.cafe/users/{{ .logged }}"><img src="https://status.cafe/users/{{ .logged }}/badge.png" alt="Status Cafe Profile"/></a></textarea></p>
|
||||
<p><img src="/users/{{ .logged }}/badge.png"/><br><textarea style="width: 100%; max-width: 500px; box-sizing: border-box;"><a href="https://status.cafe/users/{{ .logged }}"><img src="https://status.cafe/users/{{ .logged }}/badge.png" alt="Status Cafe Profile"/></a></textarea></p>
|
||||
{{ else }}
|
||||
<h2>Welcome!</h2>
|
||||
<p>status.cafe is a place to share your current status.</p>
|
||||
<p><a href="/register">Register now!</a></p>
|
||||
{{ end }}
|
||||
<p><img src="/assets/button.png"/><br><textarea style="width: 100%"><a href="https://status.cafe"><img src="https://status.cafe/assets/button.png" alt="Status Cafe"/></a></textarea></p></p>
|
||||
<p><img src="/assets/button.png"/><br><textarea style="width: 100%; max-width: 500px; box-sizing: border-box;"><a href="https://status.cafe"><img src="https://status.cafe/assets/button.png" alt="Status Cafe"/></a></textarea></p></p>
|
||||
<p><a href="/feed.atom">Subscribe via Atom</a></p>
|
||||
</section>
|
||||
<section>
|
||||
<h2>Status stream</h2>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
{{ define "head" }}
|
||||
<link rel="alternate" type="application/atom+xml" title="Atom feed" href="/feed.atom" />
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
<div class="cols">
|
||||
<section>
|
||||
|
|
@ -14,14 +18,14 @@
|
|||
<a href="/about/status-updater">status updater</a> bookmarklet<br>
|
||||
<a href="/current-status">status widget</a> for your homepage
|
||||
</p>
|
||||
<p><a href="/feed.atom">Subscribe via Atom</a></p>
|
||||
<p><img src="/users/{{ .logged }}/badge.png"/><br><textarea style="width: 100%"><a href="https://status.cafe/users/{{ .logged }}"><img src="https://status.cafe/users/{{ .logged }}/badge.png" alt="Status Cafe Profile"/></a></textarea></p>
|
||||
<p><img src="/users/{{ .logged }}/badge.png"/><br><textarea style="width: 100%; max-width: 500px; box-sizing: border-box;"><a href="https://status.cafe/users/{{ .logged }}"><img src="https://status.cafe/users/{{ .logged }}/badge.png" alt="Status Cafe Profile"/></a></textarea></p>
|
||||
{{ else }}
|
||||
<h2>Welcome!</h2>
|
||||
<p>status.cafe is a place to share your current status.</p>
|
||||
<p><a href="/register">Register now!</a></p>
|
||||
{{ end }}
|
||||
<p><img src="/assets/button.png"/><br><textarea style="width: 100%"><a href="https://status.cafe"><img src="https://status.cafe/assets/button.png" alt="Status Cafe"/></a></textarea></p></p>
|
||||
<p><img src="/assets/button.png"/><br><textarea style="width: 100%; max-width: 500px; box-sizing: border-box;"><a href="https://status.cafe"><img src="https://status.cafe/assets/button.png" alt="Status Cafe"/></a></textarea></p></p>
|
||||
<p><a href="/feed.atom">Subscribe via Atom</a></p>
|
||||
</section>
|
||||
<section>
|
||||
<h2>Status stream</h2>
|
||||
|
|
|
|||
Loading…
Reference in a new issue