3 Commits

  1. 11
      CHANGELOG.md
  2. 10
      assets/css/app.scss
  3. 8
      lib/mirage_web/templates/note/index.html.eex
  4. 2
      mix.exs

11
CHANGELOG.md

@ -5,6 +5,17 @@ See [Conventional Commits](Https://conventionalcommits.org) for commit guideline
<!-- changelog -->
## [v0.6.0](https://git.inhji.de/inhji/mirage/compare/v0.5.0...v0.6.0) (2021-02-05)
### Features:
* fuzzy time on note index
* minor tweaks for fonts
## [v0.5.0](https://git.inhji.de/inhji/mirage/compare/v0.4.0...v0.5.0) (2021-02-05)

10
assets/css/app.scss

@ -46,7 +46,6 @@ body {
}
h1, h2, h3 {
font-family: $font-heading;
margin-bottom: 1rem;
}
@ -172,6 +171,7 @@ button[type=submit], a.button {
h1 {
margin: 0 0 1rem 0;
font-family: $font-heading;
&:last-child {
margin: 0;
@ -197,6 +197,10 @@ button[type=submit], a.button {
article {
margin-bottom: 4rem;
.title {
font-family: $font-heading;
}
&:last-child {
margin-bottom: 0;
}
@ -215,6 +219,10 @@ article {
h1, h2, h3, h4, h5, h6 {
margin-top: 2rem;
&:first-child {
margin-top: 0;
}
}
p {

8
lib/mirage_web/templates/note/index.html.eex

@ -5,16 +5,16 @@
<section class="notes">
<%= for note <- @notes do %>
<article class="width-full bg-content">
<h2><%= note.title %></h2>
<h2 class="title">
<%= link note.title, to: Routes.note_path(@conn, :show, note) %>
</h2>
<div class="content html">
<%= Earmark.as_html!(note.content) |> raw %>
</div>
<aside>
<%= link to: Routes.note_path(@conn, :show, note) do %>
<time datetime="<%= note.inserted_at %>"><%= note.inserted_at %></time>
<% end %>
<time datetime="<%= note.inserted_at %>"><%= Timex.from_now(note.inserted_at) %></time>
</aside>
</article>
<% end %>

2
mix.exs

@ -1,7 +1,7 @@
defmodule Mirage.MixProject do
use Mix.Project
@version "0.5.0"
@version "0.6.0"
def project do
[

Loading…
Cancel
Save