This file contains hidden or 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
| import { defineConfig } from 'astro/config'; | |
| import { fileURLToPath } from 'node:url'; | |
| import { rmSync, existsSync } from 'node:fs'; | |
| function excludePreviewPages() { | |
| return { | |
| name: 'exclude-preview-pages', | |
| hooks: { | |
| 'astro:build:done': ({ dir, logger }) => { | |
| const shouldExcludePreviewPages = ['production', 'staging'].includes(process.env.BUILD_CONTEXT) |
This file contains hidden or 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
| import moment from 'moment' | |
| import 'moment/locale/nb' | |
| const array = length => [...Array(length).keys()] | |
| const dayProps = (_moment, selectedDays=[]) => { | |
| return { | |
| _moment: _moment, | |
| date: _moment.format('YYYY-MM-DD'), | |
| isToday: _moment.isSame(moment(), 'day'), |
This file contains hidden or 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
| <?php | |
| /** | |
| * ACF flex content builder enhancements | |
| * | |
| * SETUP: | |
| * - set correct value for $builder_field_key | |
| * - set correct value for $theme_name | |
| * - set correct value for $flex_content_field_name | |
| * - create 'builder-cons' folder in your theme and put icons for all modules there (use FLEXIBLE_CONTENT_LAYOUT_NAME.svg [105x105px] for each icon) |
This file contains hidden or 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
| @mixin media_query($screen) { | |
| @if $screen == orange { | |
| @media only screen and (max-width: 1200px) { @content; } | |
| } | |
| @if $screen == red { | |
| @media only screen and (max-width: 992px) { @content; } | |
| } | |
| @if $screen == aqua { | |
| //All from portrait ipad down | |
| @media only screen and (max-width: 768px) { @content; } |