Comments (3)
honestly I don't come up with a good idea because I don’t use this theme personally
If you have a good solution, feel free to send a PR (I guess you already added a new commint to the PR related to this issue
from hugotex.
I've added a draft commit by mistake to that PR O:-)
The best option that I have in mind is:
from hugotex.
After some thought I've decided to move with following format:
--- a/layouts/partials/postmeta.html
+++ b/layouts/partials/postmeta.html
@@ -1,5 +1,11 @@
<span class="meta-post">
- <i class="fa fa-calendar-alt"></i>{{ .Lastmod.Format ( .Site.Params.dateformat | default "Jan 2, 2006") }}
+ {{- $lastmod := .Lastmod.Format ( .Site.Params.dateformat | default "Jan 2, 2006") }}
+ {{- $pubdate := .PublishDate.Format ( .Site.Params.dateformat | default "Jan 2, 2006") }}
+ <i class="fa fa-calendar-alt"></i>
+ {{ $pubdate }}
+ {{- if ne $lastmod $pubdate }}
+ ({{ $lastmod }})
+ {{- end }}
{{ if .Params.categories }}
<br><i class="fa fa-folder-open"></i>
{{ range .Params.categories }}
See example at https://kirill.korins.ky
I'll play with it for some time, and I satisfied I'll open PR.
from hugotex.
Related Issues (9)
- Adding an image from static folder HOT 1
- "darkmode" param doesn't do anything HOT 4
- Tags URL is invalid, when baseURL = "/" HOT 2
- Update to `latex.css-1.10.0`? HOT 1
- remove instagram iframe from example
- Custom CSS? HOT 2
- Add support for sidenotes HOT 5
- I can write more shortcodes to support more latex.css features HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugotex.