<commit_before><template>
  <Layout>
    <div class="container">
      <Hero />
      <div class="projects">

        <div class="project" v-for="item in $page.projects.edges" :key="item.node.id">
          <g-link :to="item.node.path" class="project-link">
            <g-image
              :src="item.node.thumbnail"
              :alt="item.node.title"
              class="thumbnail"
              width="100"
              height="100"
            />
            <h3 class="project-title">{{ item.node.title }}</h3>
            <div class="categories">
              <span class="category" v-for="(item, index) in item.node.categories" :key="index">{{ item }}</span>
            </div>
          </g-link>
        </div>

        <div class="latest-journals">
          4 latest journals will show up here...
        </div>

      </div>
    </div>
  </Layout>
</template>

<page-query>
query Posts {
	projects: allProjectPost {
    edges {
      node {
        id
        date (format: "D. MMMM YYYY")
        title
        categories
        thumbnail (width: 100, height: 100, quality: 90)
        path
      }
    }
  },
  journals: allJournalPost {
    edges {
      node {
        title
      }
    }
  }
}
</page-query>

<script>
import Hero from "@/components/Hero"

export default {
  components: {
    Hero
  },
  data() {
    return {
      settings: require("../../data/theme.json")
    }
  }
}
</script>

<style scoped>
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 4rem;
}
.project {
  grid-column: auto / span 1;
  text-align: center;
}
.project:nth-child(3n) {
  grid-column: auto / span 2;
}
.project-link {
  text-decoration: none;
}
.project-title {
  font-size: 1rem;
  margin: 2rem 0 1rem 0;
}
.categories {
  font-size: 0.8rem;
  opacity: 0.6;
}
.category {
  margin-right: 0.8rem;
}
.category:last-of-type {
  margin: 0;
}
</style>
<commit_msg>fixed project structure and image fitting<commit_after><template>
  <Layout>
    <div class="container">
      <Hero />
      <div class="projects">

        <div class="project" v-for="item in $page.projects.edges" :key="item.node.id">
          <g-link :to="item.node.path" class="project-link">
            <g-image
              :src="item.node.thumbnail"
              :alt="item.node.title"
              class="thumbnail"
            />
            <h3 class="project-title">{{ item.node.title }}</h3>
            <div class="categories">
              <span class="category" v-for="(item, index) in item.node.categories" :key="index">{{ item }}</span>
            </div>
          </g-link>
        </div>

      </div>

      <div class="latest-journals">
          4 latest journals will show up here...
      </div>

    </div>
  </Layout>
</template>

<page-query>
query Posts {
	projects: allProjectPost {
    edges {
      node {
        id
        date (format: "D. MMMM YYYY")
        title
        categories
        thumbnail (quality: 90)
        path
      }
    }
  },
  journals: allJournalPost {
    edges {
      node {
        title
      }
    }
  }
}
</page-query>

<script>
import Hero from "@/components/Hero"

export default {
  components: {
    Hero
  },
  data() {
    return {
      settings: require("../../data/theme.json")
    }
  }
}
</script>

<style scoped>
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 4rem;
}
.project {
  grid-column: auto / span 1;
  text-align: center;
}
.project:nth-child(3n+1) {
  grid-column: auto / span 2;
}
.project-link {
  text-decoration: none;
}
.thumbnail {
  height: 560px;
  object-fit: cover;
}
.project-title {
  font-size: 1rem;
  margin: 2rem 0 1rem 0;
}
.categories {
  font-size: 0.8rem;
  opacity: 0.6;
}
.category {
  margin-right: 0.8rem;
}
.category:last-of-type {
  margin: 0;
}
</style>

{'fraction_non_alphanumeric': 0.1605359957961114, 'fraction_numerical': 0.0162900683131897, 'mean_word_length': 1.9105504587155964, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1314301', 'n_tokens_mistral': 1372, 'n_tokens_neox': 1309, 'n_words': 288}