Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
5a094a9
Edited README.md
andreondra Jun 27, 2020
4700ec9
tech update
petrkucerak Jul 23, 2020
b625041
Fix problems with blank characters
Vilican Jul 23, 2020
bef3829
Add changes
filiptronicek Aug 31, 2020
3152cc1
Merge pull request #1 from MicrosoftSTC/readme-updates
Vilican Sep 1, 2020
f32af64
Arrow functions and var declaring for text
filiptronicek Sep 29, 2020
36ebd47
Format script
filiptronicek Sep 29, 2020
f0a590b
Move declaration to bottom
filiptronicek Sep 29, 2020
bd79ce4
Create linter.yml
filiptronicek Sep 29, 2020
a7e9637
Update _404.scss
filiptronicek Sep 29, 2020
1d476af
Update _author.scss
filiptronicek Sep 29, 2020
520acc5
Update _canvas.scss
filiptronicek Sep 29, 2020
c290265
Update _cookiesBanner.scss
filiptronicek Sep 29, 2020
8b4038c
Update _feed.scss
filiptronicek Sep 29, 2020
e05c8b1
Update _footer.scss
filiptronicek Sep 29, 2020
498a07f
Update _global.scss
filiptronicek Sep 29, 2020
5e92046
Comment typos, fixes
filiptronicek Sep 29, 2020
1efaacd
Update _header.scss
filiptronicek Sep 29, 2020
56a1598
Update _mixins.scss
filiptronicek Sep 29, 2020
848675a
Update _normalize.scss
filiptronicek Sep 29, 2020
e7a7a55
Update _searchForm.scss
filiptronicek Sep 29, 2020
fde0580
Update _single.scss
filiptronicek Sep 29, 2020
efbbd25
Update _variables.scss
filiptronicek Sep 29, 2020
edd0112
Update _wp-embed.scss
filiptronicek Sep 29, 2020
958d1b1
Update style.scss
filiptronicek Sep 29, 2020
4ddf849
Merge pull request #19 from MicrosoftSTC/js-fixes
petrkucerak Sep 29, 2020
641db8a
Merge pull request #21 from MicrosoftSTC/css-format
Vilican Sep 29, 2020
4e349b8
edit cookies notice informations. Add link to more informations section.
petrkucerak Sep 29, 2020
c0f876b
Merge pull request #22 from MicrosoftSTC/Cookies-notifice
petrkucerak Sep 29, 2020
72af114
Merge pull request #20 from MicrosoftSTC/github-actions
petrkucerak Sep 29, 2020
72d52e2
Create codeql-analysis.yml
filiptronicek Oct 4, 2020
a99d33e
Create ossar.yml
filiptronicek Oct 4, 2020
f7ef36e
Merge pull request #23 from MicrosoftSTC/code-security-analysis
Vilican Oct 4, 2020
8b93c4e
Add CodeQL README.md badge
filiptronicek Oct 8, 2020
306dd78
Change badge positions
filiptronicek Oct 8, 2020
e1508b1
ALT texts
filiptronicek Oct 8, 2020
8d7c04b
Add validation for search query
filiptronicek Oct 8, 2020
034eb30
Merge pull request #26 from MicrosoftSTC/query-validation
Vilican Oct 10, 2020
323a43f
campaign banner
petrkucerak Oct 20, 2020
e660e3c
Add ES6 variables
filiptronicek Oct 20, 2020
8923892
Merge pull request #30 from MicrosoftSTC/campaignBanner
petrkucerak Oct 20, 2020
a8e4f46
Display dynamicly
filiptronicek Nov 2, 2020
8692d59
Merge pull request #24 from MicrosoftSTC/readme-badge
Vilican Nov 3, 2020
f7a5d24
Merge pull request #31 from MicrosoftSTC/update-date-deadline
petrkucerak Nov 3, 2020
f0ee91a
Update date
filiptronicek Nov 3, 2020
f0c1b7a
Merge pull request #32 from MicrosoftSTC/date-patch
petrkucerak Nov 5, 2020
29dda03
Update to match final day as well
filiptronicek Nov 9, 2020
a90b929
Update main.js
filiptronicek Nov 9, 2020
bcc2ede
Merge branch 'master' into update-date-deadline
filiptronicek Nov 9, 2020
888d155
Merge pull request #33 from MicrosoftSTC/update-date-deadline
petrkucerak Nov 9, 2020
3b78361
DevOps Pipelines
Vilican Nov 9, 2020
68bb8cb
Merge pull request #34 from MicrosoftSTC/azure-pipelines
Vilican Nov 9, 2020
df45a8d
Update build status
Vilican Nov 25, 2020
b3b3b9c
hotfix: Hide campaign bar (#40)
filiptronicek Nov 25, 2020
9b66f0b
update cookie notice and repair broken burger menu (#41)
petrkucerak Nov 29, 2020
bb42630
Small updates (#43)
petrkucerak Nov 29, 2020
42a76d0
Update _global.scss
filiptronicek Dec 14, 2020
736079a
Merge pull request #48 from MicrosoftSTC/heading-overflow
petrkucerak Dec 14, 2020
2644e24
Repair Microsoft Clarity cookies (#47)
petrkucerak Dec 14, 2020
60bc798
Allowed .mcworld, miscellaneous tweaks (#49)
Vilican Dec 14, 2020
7204b81
Update functions.php
Vilican Dec 16, 2020
1d1573d
Delete linter.yml (#51)
filiptronicek Dec 16, 2020
4b5af81
Update functions.php
Vilican Dec 16, 2020
cbd4ddb
JQuery update, fix caching of trackers (#54)
Vilican Dec 27, 2020
56513ed
Project firework (#55)
filiptronicek Dec 31, 2020
a8930f8
Auto year (#59)
filiptronicek Dec 31, 2020
954da54
Update backgorund-animations.php (#60)
filiptronicek Jan 4, 2021
aabd042
SCSS transpile fix (#61)
filiptronicek Jan 27, 2021
857566d
Remove Google Tag Manager
Vilican Feb 8, 2021
9ebb021
Setup GitPod (#56)
filiptronicek Feb 10, 2021
cda91d8
change word-break from break-all to break-word (#64)
petrkucerak Feb 11, 2021
63221c0
Pinned posts (#65)
petrkucerak Feb 11, 2021
c308077
Add the second Fabric UI change (#67)
filiptronicek Feb 14, 2021
edb2362
Set static width to avatar (#68)
filiptronicek Feb 14, 2021
51c6418
Set level of title from h1 to h2 for better SEO (#69)
petrkucerak Feb 15, 2021
d5b4cc7
Disable application passwords
Vilican Mar 31, 2021
d62ad21
Disable XML-RPC
Vilican Mar 31, 2021
1939fd7
Remove XML-RPC pingbacks
Vilican Mar 31, 2021
7c616bf
Remove XML-RPC header
Vilican Mar 31, 2021
fca8ae1
Comment out the firework scripts (#72)
filiptronicek Apr 9, 2021
a8dfaad
Update DevOps badge
Vilican Apr 11, 2021
624ce24
Removed .DS_Stores, added gitignore
Vilican Apr 11, 2021
a00d421
Add SCSS config for GitPod (#74)
filiptronicek Apr 28, 2021
6706228
Add WP config to the repo (#76)
filiptronicek May 10, 2021
51e2c7d
Added CODEOWNERS locking file (#80)
Vilican Jul 13, 2021
fc90e5e
Campaign banner 2021 (#82)
petrkucerak Sep 20, 2021
3ab03d7
Corrected the bad campaign date (#83)
petrkucerak Sep 24, 2021
d829c43
Advent event (#84)
petrkucerak Nov 30, 2021
0e81a2e
Update css & js functions. (#85)
petrkucerak Nov 30, 2021
309d8d7
Update border conditions (#86)
petrkucerak Nov 30, 2021
189b85a
Remove cookies notice components. (#87)
petrkucerak Jan 4, 2022
373fb7a
Fix cover image bug (#91)
petrkucerak Mar 9, 2022
a9b2bca
Cover image size (#95)
petrkucerak Mar 18, 2022
db71085
Problem with page responsive style (#99)
petrkucerak Apr 18, 2022
67dcdad
Campaign banner 2022 (#102)
petrkucerak Sep 12, 2022
5e9190a
Fix banner problem (#104)
petrkucerak Sep 13, 2022
57bfdfc
Extends deadline (#106)
petrkucerak Nov 13, 2022
1c84b9d
Increased slots for social icons in the footer (#109)
petrkucerak Feb 2, 2023
c06ee66
Enables auto-updating copyright year in the footer (#110)
petrkucerak Feb 2, 2023
72f5408
Added play button to the front of each article
FilBlack Jan 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence,
* @petrkucerak @Vilican
64 changes: 64 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: "CodeQL"

on:
push:
branches: [master, main]
pull_request:
# The branches below must be a subset of the branches above
branches: [master, main]
schedule:
- cron: '0 18 * * 5'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
language: ['javascript']

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
49 changes: 49 additions & 0 deletions .github/workflows/ossar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# This workflow integrates a collection of open source static analysis tools
# with GitHub code scanning. For documentation, or to provide feedback, visit
# https://github.com/github/ossar-action
name: OSSAR

on:
push:
pull_request:

jobs:
OSSAR-Scan:
# OSSAR runs on windows-latest.
# ubuntu-latest and macos-latest support coming soon
runs-on: windows-latest

steps:
# Checkout your code repository to scan
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Ensure a compatible version of dotnet is installed.
# The [Microsoft Security Code Analysis CLI](https://aka.ms/mscadocs) is built with dotnet v3.1.201.
# A version greater than or equal to v3.1.201 of dotnet must be installed on the agent in order to run this action.
# GitHub hosted runners already have a compatible version of dotnet installed and this step may be skipped.
# For self-hosted runners, ensure dotnet version 3.1.201 or later is installed by including this action:
# - name: Install .NET
# uses: actions/setup-dotnet@v1
# with:
# dotnet-version: '3.1.x'

# Run open source static analysis tools
- name: Run OSSAR
uses: github/ossar-action@v1
id: ossar

# Upload results to the Security tab
- name: Upload OSSAR results
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: ${{ steps.ossar.outputs.sarifFile }}
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Ignore Logs
logs
*.log

# The files containing environment variables
.env

# Ignore IDE specific files
.idea/

# Ignore MacOS DS_Stores
**/.DS_Store
67 changes: 67 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Gitpod docker image for WordPress | https://github.com/luizbills/gitpod-wordpress
# License: MIT (c) 2020 Luiz Paulo "Bills"
# Version: 0.8
FROM gitpod/workspace-mysql

### General Settings ###
ENV PHP_VERSION="7.4"
ENV APACHE_DOCROOT="public_html"

### Setups, Node, NPM ###
USER gitpod
ADD https://api.wordpress.org/secret-key/1.1/salt?rnd=152634 /dev/null
RUN git clone https://github.com/luizbills/gitpod-wordpress $HOME/gitpod-wordpress && \
cat $HOME/gitpod-wordpress/conf/.bashrc.sh >> $HOME/.bashrc && \
. $HOME/.bashrc && \
bash -c ". .nvm/nvm.sh && nvm install --lts"

### MailHog ###
USER root
ARG DEBIAN_FRONTEND=noninteractive
RUN go get github.com/mailhog/MailHog && \
go get github.com/mailhog/mhsendmail && \
cp $GOPATH/bin/MailHog /usr/local/bin/mailhog && \
cp $GOPATH/bin/mhsendmail /usr/local/bin/mhsendmail && \
ln $GOPATH/bin/mhsendmail /usr/sbin/sendmail && \
ln $GOPATH/bin/mhsendmail /usr/bin/mail &&\
### Apache ###
apt-get -y install apache2 && \
chown -R gitpod:gitpod /var/run/apache2 /var/lock/apache2 /var/log/apache2 && \
echo "include $HOME/gitpod-wordpress/conf/apache.conf" > /etc/apache2/apache2.conf && \
echo ". $HOME/gitpod-wordpress/conf/apache.env.sh" > /etc/apache2/envvars && \
### PHP ###
apt-get -qy purge php* && \
add-apt-repository ppa:ondrej/php && \
apt-get update && \
apt-get -qy install \
libapache2-mod-php \
php${PHP_VERSION} \
php${PHP_VERSION}-common \
php${PHP_VERSION}-cli \
php${PHP_VERSION}-mbstring \
php${PHP_VERSION}-curl \
php${PHP_VERSION}-gd \
php${PHP_VERSION}-intl \
php${PHP_VERSION}-mysql \
php${PHP_VERSION}-xml \
php${PHP_VERSION}-json \
php${PHP_VERSION}-zip \
php${PHP_VERSION}-soap \
php${PHP_VERSION}-bcmath \
php${PHP_VERSION}-opcache \
php-xdebug && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* && \
update-alternatives --set php /usr/bin/php${PHP_VERSION} && \
cat /home/gitpod/gitpod-wordpress/conf/php.ini >> /etc/php/${PHP_VERSION}/apache2/php.ini && \
### Setup PHP in Apache ###
a2dismod php* && \
a2dismod mpm_* && \
a2enmod mpm_prefork && \
a2enmod php${PHP_VERSION} && \
### WP-CLI ###
wget -q https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -O $HOME/wp-cli.phar && \
chmod +x $HOME/wp-cli.phar && \
mv $HOME/wp-cli.phar /usr/local/bin/wp && \
chown gitpod:gitpod /usr/local/bin/wp

USER gitpod
25 changes: 25 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
image:
file: .gitpod.Dockerfile

ports:
- port: 8080
onOpen: open-preview
- port: 3306
onOpen: ignore
- port: 8025
onOpen: ignore
- port: 1025
onOpen: ignore
- port: 9000
onOpen: ignore

tasks:
- init: gp await-port 3306 && wp-setup-theme && cd /workspace/stcblog/public_html && wp theme activate stcblog && wp option set blogname studuj.digital && wp option set blogdescription "Články, novinky, tipy a triky z dílny studentů Microsoft STC o moderních technologiích. Studuj s námi digitálně!" && wp post delete 1 && wp plugin install wordpress-importer --activate && wp plugin install syntaxhighlighter --activate && wp import dev/posts.xml --authors=create
command: apache2ctl start # start Apache server

# start MailHog (SMTP testing tool)
- command: mailhog -api-bind-addr 127.0.0.1:8025 -ui-bind-addr 127.0.0.1:8025 -smtp-bind-addr 127.0.0.1:1025

vscode:
extensions:
- glenn2223.live-sass@4.3.4:oSIVGGL6KX7O0jzLr2O0TA==
Empty file modified .vscode/settings.json
100644 → 100755
Empty file.
Empty file modified 404.php
100644 → 100755
Empty file.
Empty file modified COPYING
100644 → 100755
Empty file.
26 changes: 13 additions & 13 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
[![Build status](https://dev.azure.com/OndrejGolasowski/stcblog/_apis/build/status/stcblog-CI)](https://dev.azure.com/OndrejGolasowski/stcblog/_build/latest?definitionId=2)
# STCblog Wordpress theme
[![Build Status](https://dev.azure.com/microsoftstc/stcblog/_apis/build/status/template-deployment?branchName=main)](https://dev.azure.com/microsoftstc/stcblog/_build/latest?definitionId=7&branchName=main)
![CodeQL](https://github.com/MicrosoftSTC/stcblog/workflows/CodeQL/badge.svg)
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)

# STCblog Wordpress theme
Simple original Wordpress theme designed for Microsoft Student Trainee Center project [studuj.digital](https://studuj.digital/).
The theme was created as a graduation thesis of Andrew Golasowski. It is released as open-source to provide a learning tool for students not only at [SPS Karvina](http://spskarvina.cz/).
Wordpress theme of the STC blog [studuj.digital](https://studuj.digital/).

## About project
Whole theme respects individual requirements of the Microsoft STC and the Microsoft Fluent Design System.
The project depends on Fabric UI styles.
Based on [STCblog template](https://github.com/andreondra/stcblog).

## Features
### Responsive
![](docs/img/readme1.gif)
![responsivity showcase](docs/img/readme1.gif)

### Mobile-ready menu
![](docs/img/readme2.gif)
![menu on mobile](docs/img/readme2.gif)

### Animated search bar
![](docs/img/readme3.gif)
![search bar](docs/img/readme3.gif)

### Support for [Easy Table of Contents](https://cs.wordpress.org/plugins/easy-table-of-contents/)
![](docs/img/readme4.gif)
### Support for [Easy Table of Contents](https://wordpress.org/plugins/easy-table-of-contents/)
![TOC](docs/img/readme4.gif)

## License and copyright
Project is licensed under GNU GPLv3.
(C) Ondrej Golasowski, Petr Kucera and contributors.
(C) Ondrej Golasowski, Petr Kucera and [contributors](https://github.com/MicrosoftSTC/stcblog/graphs/contributors).

## Fabric UI changes
Edited _Animation.Mixins.scss - @mixin ms-motion-scaleDownIn doesn't retain state - set to none.
- [_Animation.Mixins.scss](https://github.com/MicrosoftSTC/stcblog/blob/63221c005b5d84a07a17b2a3bdeffef253cbe3a5/assets/scss/fabric/mixins/_Animation.Mixins.scss#L23-L30) - @mixin ms-motion-scaleDownIn doesn't retain state - set to none.
- [_Animation.Mixins.MDL2.scss](https://github.com/MicrosoftSTC/stcblog/blob/63221c005b5d84a07a17b2a3bdeffef253cbe3a5/assets/scss/fabric/mixins/_Animation.Mixins.MDL2.scss#L177) - change from an unqoted argument to an unchanged one. (see [#61](https://github.com/MicrosoftSTC/stcblog/pull/61))
Empty file removed a.json
Empty file.
Binary file removed assets/.DS_Store
Binary file not shown.
Empty file modified assets/fonts/fondos.eot
100644 → 100755
Empty file.
Empty file modified assets/fonts/fondos.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/fonts/fondos.ttf
100644 → 100755
Empty file.
Empty file modified assets/fonts/fondos.woff
100644 → 100755
Empty file.
Binary file added assets/fonts/minecraft.ttf
Binary file not shown.
Binary file removed assets/img/.DS_Store
Binary file not shown.
Binary file added assets/img/advent/01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/advent/04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/advent/08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/advent/09.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/advent/10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/advent/11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/advent/12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/advent/16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/advent/17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/advent/18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/advent/24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
97 changes: 97 additions & 0 deletions assets/img/advent_banner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading