From 0ac61aa115f3bf005f760b8199aef4e174ee11c8 Mon Sep 17 00:00:00 2001 From: Lynne Date: Tue, 14 Apr 2020 03:23:52 +1000 Subject: [PATCH] started work on writings page --- app.py | 16 ++++++++++++--- requirements.txt | 2 ++ templates/contact.html | 2 +- templates/writings.html | 13 ++++++++++++ writings/article/test.md | 6 ++++++ .../intro/essentialism and constructionism.md | 20 +++++++++++++++++++ 6 files changed, 55 insertions(+), 4 deletions(-) create mode 100644 templates/writings.html create mode 100644 writings/article/test.md create mode 100644 writings/intro/essentialism and constructionism.md diff --git a/app.py b/app.py index fadfdb3..d40c65b 100755 --- a/app.py +++ b/app.py @@ -1,9 +1,15 @@ -from flask import Flask, render_template -import json +from flask import Flask, render_template, json +from flask_misaka import markdown + +import glob app = Flask(__name__) - contact_data = json.load(open("data/contact.json")) +writings = [] + +for filename in glob.iglob("writings/**/*.md", recursive = True): + # TODO: split into parent dir and filename + writings.append(filename) @app.route("/") def render_home(): @@ -12,3 +18,7 @@ def render_home(): @app.route("/contact") def render_contact(): return render_template("contact.html", data = contact_data) + +@app.route("/writings") +def render_writings(): + return render_template("writings.html", writings = writings) diff --git a/requirements.txt b/requirements.txt index 46a48dd..bfa3b2e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,3 @@ Flask==1.1.2 +Flask-Misaka==1.0.0 +python-frontmatter==0.5.0 diff --git a/templates/contact.html b/templates/contact.html index 7628d56..a5e6fc8 100644 --- a/templates/contact.html +++ b/templates/contact.html @@ -1,5 +1,5 @@ {% extends 'base.html' %} -{% block title %}home{% endblock %} +{% block title %}contact{% endblock %} {% block content %}

Contact

diff --git a/templates/writings.html b/templates/writings.html new file mode 100644 index 0000000..a958d9c --- /dev/null +++ b/templates/writings.html @@ -0,0 +1,13 @@ +{% extends 'base.html' %} +{% block title %}writings{% endblock %} +{% block content %} +
+

My writings

+ + +
+{% endblock %} diff --git a/writings/article/test.md b/writings/article/test.md new file mode 100644 index 0000000..be1cbf4 --- /dev/null +++ b/writings/article/test.md @@ -0,0 +1,6 @@ +--- +title: Test +categories: [C, D] +--- + +henlo henlo testing! diff --git a/writings/intro/essentialism and constructionism.md b/writings/intro/essentialism and constructionism.md new file mode 100644 index 0000000..cf0d488 --- /dev/null +++ b/writings/intro/essentialism and constructionism.md @@ -0,0 +1,20 @@ +--- +title: Identity, Essentalism and Constructionism +categories: [A, B] +--- + +Identity is distinct from "self," which is the pure, subjective experience of one's being. Identity, while about individuals, is fundamentally social. HOW it is social however is debated- two broad theories of identity are essentialism and social constructionism. + +Essentialism, broadly, is the idea that identity (or some aspect of identity) is inherent, unchanging and set. The explanation of why is extraneous to the fundamental definition of essentialism, but common explanations are biology, or, frequently, some higher ontological or metaphysical definition of identity. + +For example, essentialist conceptions of race suggest that races naturally and fundamentally are more or less intelligent, more or less physically able et cetera than others, and this can be expressed in various ways. These include, for instance, the (awful) 19th century """scientific racism""" movement that aimed to measure race through things like phrenology, but also ideas like Julius Evola's "spiritual racism." + +Social constructionism, as the name implies, states that identity is constructed socially (ie, built by humans through the social world, attitudes and interactions). This is distinct from truly subjectivist ontologies where meaning is purely imposed on the object by the subject- social constructivism believes in identities that, while constructed, still partially emerge from biology or other "deep" facts of our natures.  + +A good example might be gender. Even though gender roles, performances and our ideas of gender vary hugely from culture to culture, sex (and its multitude variations) are an omnipresent factor in human societies. This has created a situation whereby there have been no societies discovered without any evidence of (some form of) sexed or gendered conceptions and roles, even though what those conceptions and roles *actually are* are highly varied and in large part disconnected from any "biological reality." + +In other words, there is an underlying reality, spark or impulse towards these sorts of categories, and these "trends" are usually strongly associated with the concepts more broadly even when the specifics of those categories are socially constructed.  + +Put another way, just as Simone de Beauvoir says "one is not born a woman, but rather one becomes one" and Julia Kristeva says "strictly speaking, 'women' cannot be said to exist," nevertheless the social constructs of womanhood and femininity in our society are strongly associated with things like menstruation and motherhood. And this association exists despite the logical, categorical separation and lack of universality of those experiences amongst women.  + +Most essentialist thinking in a society aligns with the ideas of that society on identity, sex, gender or whatever else category is in question. Thus, most of the time the operational difference between social constructionism and essentialism is whether or not a society's beliefs and collective constructs are taken as a face-value truth or not.