Giter Site home page Giter Site logo

emmarshall / apls-org Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 1.1 GB

Website for the American Psychology-Law Society

Home Page: https://www.ap-ls.org

Lua 0.90% JavaScript 17.54% SCSS 1.30% CSS 1.70% R 1.29% HTML 77.12% TeX 0.05% EJS 0.10% Rez 0.01%

apls-org's Introduction

Logo for American Psychology-Law Society

AP-LS Website

Website Basics

This new ap-ls.org website is built in RStudio using Quarto. The content for the site is stored on the AP-LS Google Drive and on GitHub. The site is published using Netlify. The root directory that contains the published site is docs.

Netlify Status

Site file structure

The main content for the site is stored in the following files and directories:

  • _quarto.yml controls site-wide parameters and defines navbar/sidebar/footer content
  • _variables.yml controls site-wide variables that can be inserted using shortcodes
  • apls_functions.R in _site runs the r functions that are used to build aspects of the site including the image carousel. Do not change this.
  • index.qmd is the home page
  • about, conferences, publications, resources, and membership are folders that contain those respective pages for the site and other listing pages
    • The main page for each section is saved as index.qmd
    • For the pages that include listings, the index.qmd file in each folder specifies what is included
  • 404.qmd is the 404 page for the site
  • styles.css and theme.scss in the assets directory are used for additional CSS and SASS styling for the site's appearance, such as fonts and colors
    • index.css in conferences/ has additional styling for the conference page

Notes

Freeze

The pages are frozen so that the documents are not individually re-rendered during a global project render.

Quarto

The site is built using Quarto which provides an extensive guide and reference materials.

Editing content on the site

The project uses renv to ensure that all edits to the website use the same package versions. To edit the site, you need to:

  1. Clone the emarshall/apls-org repository
  2. Start a new R session in your new project directory and initialize renv. If you are not sure if you have the renv package installed you can run the following:
         # Install the 'renv' package if not already installed
if (!requireNamespace("renv", quietly = TRUE)) {
  install.packages("renv")
}

# Initialize 'renv' in your project directory
renv::init()

# Restore the project's packages (this installs packages from the 'renv.lock' file)
renv::restore()
  1. To preview the site from your terminal use:
quarto preview mlr-org

How to Change the website

Each page has its own .qmd file in the apls-org/ directory. However, many pages (i.e., job postings, image carousel, etc.) need to be updated by making changes to the accompanying .yml file. See below for instructions editing this type of content:

How to Change the Image Carousel

The content on the home is determined by the apls-org/index.qmd file. It is located in the main apls-org/ directory. The images for the carousel that appears at the top of the page are stored in apls-org/images/. The items in the carousel are determined by the content in the apls-org/carousel.yml file. To add (or remove) an item you need to:

  1. Save the image file in apls-org/images/.
  2. Create a new entry in the carousel.yml file, with the following information:
  • caption: Insert text to appear under image
  • image: path to image file
  • link: url to open when image is clicked (if no link is avialable, use "")
Example: 
- caption: "2024 AP-LS Call for Conference Proposals!"
  image: "images/2024_call_for_proposals.jpeg"
  link: "https://ap-ls.org/conferences/"
  1. Render new apls-org/index.qmd file

How to Add/Remove a Job Posting

The job postings content is located in the resources/job-postings/ directory. The index.qmd file sets the content for the job-postings page. The items that appear on the page are determined by the academic-jobs.yml and professional-jobs.yml files. To add or remove an item you need to:

  1. Locate the correct yml file for the posting (ie., academic vs professional)
  2. Create a new entry in the academic-jobs.yml or professional-jobs.yml file, with the following information:
  • title: name of position available
  • date: Current date (YYYY-MM-DD)
  • organization: Name of institution or business
  • location: Where position is located
  • url: External link to job posting
Example: 
- title: Assistant Professor of Psychology
  date: 2023-08-02
  organization: University of Nebraska, Department of Psychology
  location: Lincoln, Nebraska
url: https://unl.example.com/
  1. Render new apls-org/resources/job-postings/index.qmd file

To do:

  • Proofread content pages
  • Create r package to store functions
  • Newsletter archives - index and format listings (include pds)
  • TTC Education and Teaching materials
  • How to add a new post/page write up

apls-org's People

Contributors

emmarshall avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.