Added post history link (#14)
This commit is contained in:
parent
dc9b131e72
commit
1c8718b16c
|
@ -1,42 +1,3 @@
|
||||||
# dir name of your main content (default is `content/posts`).
|
# Used to generate the post history links
|
||||||
# the list of set content will show up on your index page (baseurl).
|
githubURL = "https://github.com/alejandro-angulo/alejandr0angul0.dev"
|
||||||
contentTypeName = "posts"
|
gitBranch = "main"
|
||||||
|
|
||||||
# ["orange", "blue", "red", "green", "pink"]
|
|
||||||
themeColor = "green"
|
|
||||||
|
|
||||||
# if you set this to 0, only submenu trigger will be visible
|
|
||||||
showMenuItems = 2
|
|
||||||
|
|
||||||
# show selector to switch language
|
|
||||||
showLanguageSelector = false
|
|
||||||
|
|
||||||
# set theme to full screen width
|
|
||||||
fullWidthTheme = false
|
|
||||||
|
|
||||||
# center theme with default width
|
|
||||||
centerTheme = true
|
|
||||||
|
|
||||||
# set a custom favicon (default is a `themeColor` square)
|
|
||||||
# favicon = "favicon.ico"
|
|
||||||
|
|
||||||
# set post to show the last updated
|
|
||||||
# If you use git, you can set `enableGitInfo` to `true` and then post will automatically get the last updated
|
|
||||||
showLastUpdated = false
|
|
||||||
# Provide a string as a prefix for the last update date. By default, it looks like this: 2020-xx-xx [Updated: 2020-xx-xx] :: Author
|
|
||||||
# updatedDatePrefix = "Updated"
|
|
||||||
|
|
||||||
# set all headings to their default size (depending on browser settings)
|
|
||||||
# it's set to `true` by default
|
|
||||||
# oneHeadingSize = false
|
|
||||||
|
|
||||||
[twitter]
|
|
||||||
# set Twitter handles for Twitter cards
|
|
||||||
# see https://developer.twitter.com/en/docs/tweets/optimize-with-cards/guides/getting-started#card-and-content-attribution
|
|
||||||
# do not include @
|
|
||||||
creator = "alejandr0angul0"
|
|
||||||
site = "alejandr0angul0"
|
|
||||||
|
|
||||||
[markup]
|
|
||||||
[markup.highlight]
|
|
||||||
codeFences = false
|
|
||||||
|
|
11461
themes/alejandro-angulo/assets/css/nerd-fonts-generated.css
Normal file
11461
themes/alejandro-angulo/assets/css/nerd-fonts-generated.css
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,5 +1,11 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
{{ partial "metadata.html" . }}
|
{{ partial "metadata.html" . }}
|
||||||
|
<a
|
||||||
|
class="glyph-link"
|
||||||
|
href="{{ $.Param "githubURL" }}/commits/{{ $.Param "gitBranch" }}/content/{{ .File.Dir }}/{{ .File.LogicalName }}"
|
||||||
|
>
|
||||||
|
View post history <i class="nf nf-fa-github_alt"></i>
|
||||||
|
</a>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -4,11 +4,12 @@
|
||||||
<link
|
<link
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
type="text/css"
|
type="text/css"
|
||||||
href="https://cdnjs.cloudflare.com/ajax/libs/hack-font/3.3.0/web/hack.min.css"
|
href="https://cdn.jsdelivr.net/npm/hack-font@3/build/web/hack.css"
|
||||||
/>
|
/>
|
||||||
{{ $main_style := resources.Get "css/main.css" | minify }}
|
{{ $main_style := resources.Get "css/main.css" | minify }}
|
||||||
{{ $highlight_style := resources.Get "css/highlight.css" | minify }}
|
{{ $highlight_style := resources.Get "css/highlight.css" | minify }}
|
||||||
{{ $css := slice $main_style $highlight_style | resources.Concat "css/style.css" | fingerprint }}
|
{{ $nerdfont_style := resources.Get "css/nerd-fonts-generated.css" | minify }}
|
||||||
|
{{ $css := slice $main_style $highlight_style $nerdfont_style | resources.Concat "css/style.css" | fingerprint }}
|
||||||
<link
|
<link
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
type="text/css"
|
type="text/css"
|
||||||
|
|
|
@ -9,9 +9,5 @@
|
||||||
{{ $href := print (absURL "tags/") (urlize .) }}
|
{{ $href := print (absURL "tags/") (urlize .) }}
|
||||||
<a href="{{ $href }}">#{{ . }}</a>
|
<a href="{{ $href }}">#{{ . }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue