Skip to content

Commit

Permalink
custom css
Browse files Browse the repository at this point in the history
  • Loading branch information
MansoorMajeed committed Jan 6, 2024
1 parent 309b605 commit 5959b18
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions assets/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.centered-improve-link {
text-align: center;
margin-top: 15px;
}
3 changes: 3 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ style = "github-dark"

favicon_32 = "images/favicon.png"
# favicon_16 = "/img/favicon-16x16.png"
gitRepo = "https://github.com/MansoorMajeed/esc.sh"

customCSS = ["/css/custom.css"]

since = 2012

Expand Down
11 changes: 10 additions & 1 deletion layouts/posts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,18 @@ <h1 class="title">
{{ with .GetTerms "authors" }}{{ partial "taxonomy/authors.html" . }}{{ end }}
{{ with .GetTerms "categories" }}{{ partial "taxonomy/categories.html" . }}{{ end }}
{{ with .GetTerms "tags" }}{{ partial "taxonomy/tags.html" . }}{{ end }}
<!-- Improve this page link -->
<div class="centered-improve-link">
{{ if .Site.Params.gitRepo }}
<span class="improve-link">
<a href="{{ .Site.Params.gitRepo }}/edit/{{ .Site.Params.gitBranch | default "main" }}/content/{{ path.Clean .File.Path }}">
<i class="fa fa-github"></i> Improve this page
</a>
</span>
{{ end }}
</div>
</div>
</header>

<div class="post-content">
{{ if .Params.featuredImage }}
<img src="{{ .Params.featuredImage | relURL }}" alt="Featured image"/>
Expand Down

0 comments on commit 5959b18

Please sign in to comment.