This repository has been archived by the owner on Apr 4, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
72 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
- posts_by_day = posts.group_by { |p| p.created_at.not_nil!.to_s("%B %-d") } | ||
- posts_by_day.each do |day, posts| | ||
h2.day-header = day | ||
header role="posts" | ||
.container | ||
h2.day-header = day | ||
|
||
section.posts | ||
- posts.each do |post| | ||
== PostView._post(post) | ||
.container | ||
- posts.each do |post| | ||
== PostView._post(post) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Entrypoint for Crankypants' management app. | ||
|
||
import Vue from 'vue' | ||
|
||
# add some CSS we want | ||
import 'normalize.css' | ||
import '@/directives/v-prism' | ||
|
||
# Require the bits and pieces that form our app | ||
import App from '@/components/App' | ||
import store from '@/store' | ||
import router from '@/router' | ||
|
||
# CSS | ||
import "@/styles/app.scss" | ||
|
||
new Vue | ||
el: '#app' | ||
store: store | ||
router: router | ||
render: (h) -> h(App) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Entrypoint for Crankypants' user-facing blog. Much lighter than its | ||
# management app (see app.coffee.) | ||
|
||
import "normalize.css" | ||
import "@/styles/blog.scss" | ||
|
||
# Yes, we use Turbolinks. Crankypants would already be crazy fast without it, | ||
# but using Turbolinks also frees the browser from having to reevaluate all | ||
# JSS and CSS on every request. It's mighty fine! | ||
import Turbolinks from "turbolinks" | ||
Turbolinks.start() | ||
|
||
# Initialize syntax highlighting. | ||
import Prism from "@/lib/loadPrism" | ||
import 'prismjs/themes/prism-okaidia.css' | ||
|
||
document.addEventListener "turbolinks:load", -> | ||
Prism.highlightAll() |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* Code snippets */ | ||
|
||
code { | ||
font-family: "Source Code Pro", "Menlo", "Lucida Console", Monaco, monospace; | ||
font-size: 85%; | ||
border-radius: 5px; | ||
|
||
display: inline-block; | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters