Skip to content

Commit

Permalink
Add link to edit pages
Browse files Browse the repository at this point in the history
  • Loading branch information
fguillot committed Mar 17, 2024
1 parent cacef9d commit 5b19dba
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 13 deletions.
1 change: 1 addition & 0 deletions layouts/_default/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
<main>
{{ .Content }}
</main>
{{ partial "footer.html" . }}
</body>
</html>
1 change: 1 addition & 0 deletions layouts/_default/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ <h1>{{ .Title }}</h1>
{{ .Content }}
</article>
</main>
{{ partial "footer.html" . }}
</body>
</html>
1 change: 1 addition & 0 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ <h1>{{ .Title }}</h1>
{{ .Content }}
</article>
</main>
{{ partial "footer.html" . }}
</body>
</html>
1 change: 1 addition & 0 deletions layouts/docs/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ <h1>{{ .Title }}</h1>
</nav>
{{ .Content }}
</article>
{{ partial "footer.html" . }}
</body>
</html>
3 changes: 3 additions & 0 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<footer class="footer">
<a href="https://github.com/miniflux/website/edit/main/{{ path.Join (default "content" .Site.Params.contentDir) .File.Path }}">Edit this page</a>
</footer>
32 changes: 19 additions & 13 deletions static/stylesheet.css
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
:root {
--body-color: #555;
--body-background: #fff;

--title-color: #000;
--subtitle-color: #333;
--page-header-title-border-color: #333;

--link-color: #3366CC;
--link-focus-color: red;
--link-hover-color: #333;

--anchor-color: #ddd;
--anchor-color-hover: #444;

--table-border-color: #e1e1e1;

--code-background: rgba(27,31,35,.05);
--code-color: #555;

--pre-color: #555;
--pre-border-color: #687550;
--pre-background: #eeffcc;

--dt-color: #444;
--dd-border-color: #eee;
--dd-color: #666;

--configs-dt-color: #333;
--configs-dd-color: #555;

--img-border-color: #000;

--alert-color: #c09853;
Expand All @@ -54,27 +54,27 @@
:root {
--body-color: #9c9c9c;
--body-background: #222;

--title-color: #aaa;
--subtitle-color: #aaa;
--page-header-title-border-color: #333;

--link-color: #aaa;
--link-focus-color: #ddd;
--link-hover-color: #ddd;

--anchor-color: #aaa;
--anchor-color-hover: #ddd;

--table-border-color: #e1e1e1;

--code-background: rgb(68, 68, 68);
--code-color: #fffefe;

--pre-border-color: #ccc;
--pre-background: rgb(68, 68, 68);
--pre-color: #cacaca;

--dt-color: #aaa;
--dd-border-color: #aaa;
--dd-color: #aaa;
Expand Down Expand Up @@ -386,3 +386,9 @@ a.button {
.donations img {
border: none
}

.footer {
font-size: 0.85em;
text-align: center;
margin-top: 80px;
}

0 comments on commit 5b19dba

Please sign in to comment.