Skip to content

Commit

Permalink
next blog feature
Browse files Browse the repository at this point in the history
  • Loading branch information
kendallstrautman committed Aug 19, 2019
1 parent 79eebc4 commit a36de63
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 15 deletions.
4 changes: 1 addition & 3 deletions src/assets/content/blog/on-the-geneology-of-morals.md
Expand Up @@ -21,6 +21,4 @@ Now, first of all, it’s obvious to me that from this theory the origin of the

In relation to such a hot pouring out of the highest rank-ordering, rank-setting judgments of value, the point of view which considers utility is as foreign and inappropriate as possible. Here the feeling has reached the opposite of that low level of warmth which is a condition for that calculating shrewdness, that calculation by utility—and not just for a moment, not for an exceptional hour, but permanently. The pathos of nobility and distance, as mentioned, the lasting and domineering feeling, something total and complete, of a higher ruling nature in relation to a lower nature, to an “beneath”—that is the origin of the opposition between “god” and “bad.” (The right of the master to give names extends so far that we could permit ourselves to grasp the origin of language itself as an expression of the power of the rulers: they say “that is such and such,” seal every object and event with a sound and, in so doing, take possession of it.)

Given this origin, the word “good” was not in any way necessarily tied up with “unegoistic” actions, as the superstitions of those genealogists of morality tell us. Rather, that occurs for the first time with the collapse of aristocratic value judgments, when this entire contrast between “egoistic” and “unegoistic” pressed itself ever more strongly into human awareness—it is, to use my own words, the instinct of the herd which, through this contrast, finally gets its word (and its words). And even so, it took a long time until this instinct in the masses became ruler, with the result that moral evaluation got downright hung up and bogged down on this opposition (as is the case, for example, in modern Europe: today the prejudice that takes “moralistic,” “unegoistic,” “_désintéressé__\[disinterested\]_ as equally valuable ideas already governs, with the force of a “fixed idea” and a disease of the brain).

##
Given this origin, the word “good” was not in any way necessarily tied up with “unegoistic” actions, as the superstitions of those genealogists of morality tell us. Rather, that occurs for the first time with the collapse of aristocratic value judgments, when this entire contrast between “egoistic” and “unegoistic” pressed itself ever more strongly into human awareness—it is, to use my own words, the instinct of the herd which, through this contrast, finally gets its word (and its words). And even so, it took a long time until this instinct in the masses became ruler, with the result that moral evaluation got downright hung up and bogged down on this opposition (as is the case, for example, in modern Europe: today the prejudice that takes “moralistic,” “unegoistic,” “_désintéressé__\[disinterested\]_ as equally valuable ideas already governs, with the force of a “fixed idea” and a disease of the brain).
61 changes: 49 additions & 12 deletions src/templates/Blog.vue
@@ -1,5 +1,5 @@
<template>
<Layout>
<Layout page="blog">
<article class="blog">
<figure class="blog__hero">
<g-image :src="$page.post.hero_image" :alt="$page.post.title"></g-image>
Expand All @@ -9,7 +9,14 @@
<h3>{{ $page.post.date }}</h3>
</div>
<div class="blog__body" v-html="$page.post.content"></div>
<h2 class="blog__footer">Written By: {{ $page.post.author }}</h2>
<div class="blog__footer">
<h2>Written By: {{ $page.post.author }}</h2>
<g-link :to="nextBlogPath">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0px" y="0px" viewBox="0 0 26 26" enableBackground="new 0 0 26 26" >
<path d="M23.021,12.294l-8.714-8.715l-1.414,1.414l7.007,7.008H2.687v2h17.213l-7.007,7.006l1.414,1.414l8.714-8.713 C23.411,13.317,23.411,12.685,23.021,12.294z"/>
</svg>
</g-link>
</div>
</article>
</Layout>
</template>
Expand All @@ -20,20 +27,43 @@
return {
title: this.$page.post.title
}
}
},
computed: {
nextBlogPath: function() {
const allBlogs = this.$page.all.edges
const firstBlogPath = allBlogs[0].node.path
const currentBlog = allBlogs.filter(node => node.node.title === this.$page.post.title)
function isNull(item) {
return item == null || item == undefined
}
return isNull(currentBlog[0].next) ? firstBlogPath : currentBlog[0].next.path
}
}
}
</script>

<page-query>
query getPostData ($path: String!) {
post: blog(path: $path) {
post: blog(path: $path) {
title
date (format: "MMMM DD YYYY")
author
content
hero_image (quality: 80)
}
all: allBlog {
edges {
node {
path
title
}
next {
path
}
}
}
}

</page-query>

<style lang="scss" >
Expand All @@ -49,12 +79,12 @@ query getPostData ($path: String!) {
height: 60vh;
width: 100%;
margin: 0;
img {
min-width: 100%;
min-height: 100%;
margin-bottom: 0;
object-fit: cover;
}
img {
min-width: 100%;
min-height: 100%;
margin-bottom: 0;
object-fit: cover;
}
}
.blog__info {
Expand All @@ -79,16 +109,23 @@ query getPostData ($path: String!) {
flex-direction: column;
justify-content: center;
a {
padding-bottom: 1.5rem;
padding-bottom: 1.45rem;
}
:last-child {
margin-bottom: 0;
}
h1, h2, h3, h4, h5, h6, p {
h1, h2, h3, h4, h5, h6 {
font-weight: normal;
padding: 1.5rem;
line-height: 1.2;
margin-bottom: 1.5rem;
}
p {
color: #464646;
font-weight: normal;
img {
margin: 1rem 0;
}
}
ul {
list-style: initial;
Expand Down

0 comments on commit a36de63

Please sign in to comment.